@import 'cropper';

.customer-page {
    margin-bottom: 30px;

    .profile-sidebar {
        color: #e4e4e4;
        height: 100%;
        padding: 20px;

        .nav-link {
            border-bottom: 1px dashed #cecece;

            &.active {
                font-weight: 700;
            }
        }
    }

    h1.card-title.h3 {
        font-size: var(--h3-size) !important;
    }

    .card {
        border: none;
    }

    .btn-secondary {
        border-radius: 12px;
        font-size: 14px !important;
    }
}

.profile-image {
    cursor: pointer;
    position: relative;

    .mt-card-avatar {
        cursor: pointer;
        border-radius: 50%;
        width: 150px;
        height: 150px;
        margin: 0 auto;
        position: relative;

        .avatar-bg-overlay {
            position: absolute;
            z-index: 1;
            width: 150px;
            height: 150px;
            top: 0;
            left: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
        }

        img {
            max-width: 100%;
            border-radius: 50%;
        }
    }

    &:hover {
        .mt-card-avatar {
            .avatar-bg-overlay {
                display: block;
            }
        }

        svg {
            opacity: 1;
        }
    }

    svg {
        position: absolute;
        top: 45%;
        left: 45%;
        color: #fff;
        opacity: 0;
    }
}

.mt-card-avatar-circle {
    border-radius: 50%;
}

.mt-card-avatar {
    -webkit-mask-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);
    overflow: hidden;
    position: relative;
    text-align: center;
}


.mt-card-avatar-circle .mt-overlay {
    border-radius: 50%;
}

.mt-card-avatar .mt-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.7);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    border-radius: 50%;
}

.mt-card-avatar .mt-overlay > span {
    color: #fff;
    position: absolute;
    top: 40%;
    font-size: 20px;
}

.mt-card-avatar:hover .mt-overlay {
    opacity: 1;
    filter: alpha(opacity=100);
    transform: translateZ(0);
}

.avatar-preview {
    margin-top: 15px;
    margin-right: 15px;
    border: 1px solid #eeeeee;
    background-color: #ffffff;
    overflow: hidden;
    border-radius: 4px;
}

.preview-lg {
    width: 185px;
    height: 185px;
    margin-top: 15px;
}

.avatar-preview-wrapper img {
    max-width: 100%;
    margin-bottom: 15px;
}

.avatar-wrapper {
    height: 364px;
    width: 100%;
    margin-top: 15px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25);
    background-color: #fcfcfc;
    overflow: hidden;
}

.avatar-upload {
    text-align: left;
    overflow: hidden;
}

.avatar-body {
    padding-right: 15px;
    padding-left: 15px;
}

.modal-body {
    position: relative;
}

.crop-avatar .modal-title {
    text-align: left;
}

@media screen and (max-width: 768px){
    .customer-page {
        .wrapper-profile {
            row-gap: 20px;

            .profile-content {
                padding: 0 !important;
            }
        }
    }
}
