// -----------------------------------------------------------------------------
// This file contains styles that are specific to the User Profile page.
// -----------------------------------------------------------------------------
@import "../../main.scss";

.profileMain {
    margin-top: 192px;
    .ProfileSection{
        padding: 0 70px 0 70px;
        input[type="date"]::-webkit-calendar-picker-indicator {
            display: none;
            -webkit-appearance: none;
            appearance: none;
        }
        .MuiInputAdornment-positionStart{
            position: absolute;
            right: 15px;
        }
    }
  
  .ProfileSection .topHeaderSection {
    display: flex;
    align-items: center;
  }
  
  .ProfileSection .myprofileHeader {
    margin: 0px auto 0px 0px;
    text-align: left;
    font: normal normal 600 24px/44px "Inter";
    letter-spacing: 0px;
    color: #000000;
  }
  .ProfileSection .logout-btn {
    background: #ffffff 0% 0% no-repeat padding-box;
    border: 1px solid #2874f0;
    border-radius: 8px;
    width: 119px;
    height: 40px;
    text-align: center;
    font: normal normal 600 16px/24px "Inter";
    letter-spacing: 0px;
    color: #2874f0;
    text-transform: capitalize;
    box-shadow: none;
  }
  
  .ProfileSection .sidebar-container {
    margin: 45px 0px 0px 0px;
  }
  
  .ProfileSection .sidebar-item {
    display: flex;
    align-items: center;
    background-color: #fff;
    height: 56px;
    margin-top: 20px;
    max-width: 320px;
    border-left: 4px solid white;
    cursor: pointer;
  }
  .ProfileSection .sidebar-item.active {
    
    border-radius: 2px 0px 0px 2px;
    border-left: 4px solid #2874F0;
    background-color: rgba(40, 116, 240, 0.08);
  }
  
  .ProfileSection .sidebarIcons{
     margin: 0px 16px 0px 20px; 
     width: 24px;
     height: 24px;
  }
  
  .ProfileSection .item-content{
    text-align: left;
  font-family: "Inter";
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0px;
  color: #000000;
  
  }
  .ProfileSection .item-arrow{
  margin: 0px 31px 0px auto; 
  
  }
  
  
  
  
  
  
  .ProfileSection .form-container {
    margin: 45px 0px 0px 32px;
  }
  .ProfileSection .section-heading {
    text-align: left;
    font: normal normal 600 20px/26px "Inter";
    letter-spacing: 0px;
    color: #131;
  }
  
  .ProfileSection .img-section {
    display: flex;
    align-items: center;
    margin: 30px 0px 31px 0px;
  }
  .ProfileSection .btn-upload {
    background: #000000 0% 0% no-repeat padding-box;
    border-radius: 8px;
    color: #fff;
    box-shadow: none !important;
    width: 136px;
    height: 38px;
    text-align: center;
    font: normal normal medium 14px/18px "Inter";
    letter-spacing: 0px;
    color: #ffffff;
    text-transform: capitalize;
    margin-right: 16px;
  }
  .ProfileSection .btn-delete {
    background: #ffffff 0% 0% no-repeat padding-box;
    border: 2px solid #b00020;
    border-radius: 8px;
    width: 136px;
    height: 44px;
    text-align: center;
    font: normal normal medium 14px/18px "Inter";
    letter-spacing: 0px;
    color: #b00020;
    text-transform: capitalize;
    box-shadow: none !important;
  }
  .ProfileSection .img-div {
    margin-right: 16px;
  }
  .ProfileSection .form-labels {
    text-align: left;
    font-family: "Inter" !important;
    letter-spacing: 0px;
    color: #171520 !important;
    font-weight: 500 !important;
    font-size: 16px;
    margin-bottom: 7px;
  }
  .MuiInput-underline::before {
    border-bottom: none !important;
  }
  
  .ProfileSection .submit-div {
    float: right;
  }
  .ProfileSection .btn-submit {
    background: #2874f0 0% 0% no-repeat padding-box;
    border-radius: 8px;
    box-shadow: none !important;
    text-transform: capitalize;
    text-align: center;
    margin-top: 50px;
    font-size: 16px;
    font-family: "Inter";
    font-weight: 500;
    letter-spacing: 0px;
    color: #ffffff;
  }
  
  .ProfileSection .formtextfields{
    width: 100%;
    background: #F1F1F1;
    border-radius: 4px;
    border: 0;
    color: #626262;
    font-family: "Inter";
    font-weight: 500;
    font-size: 16px;
    margin: 7px 0px 16px 0px;
  
  
  }
  .ProfileSection .MuiInputBase-input {
    padding: 17px 23px 14px 16px;
    // width: 550px;
  }
  .ProfileSection .newpassword-container .MuiInputBase-input {
    padding: 17px 23px 14px 16px;
   width: 100%;
  }
  
  .ProfileSection .MuiFormHelperText-root.Mui-error {
    color: red;
    background: white;
    margin: 0;
  }
  .ProfileSection .formsection{
    width: 100%;
  }
  .ProfileSection .passworddiv{
    margin-top: 50px;
  }
  .PersonalSection{
  width: 100%;
  }
  .ProfileSection .deleteIconsvg{
    width:24px;
    height: 24px;
  }
}
.profile {
    margin-bottom: 11.375rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 87.5rem;

    .grid-container {
        grid-template-columns: 1fr;

        @media (min-width: $mq-m) {
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.4fr 1fr;
            grid-template-rows: 25rem;
            grid-auto-rows: auto;
            grid-column-gap: 1.5rem;
            grid-row-gap: 5rem;
            grid-template-areas: "profile-card aside" "history aside";

            .profile-card {
                grid-area: profile-card;
            }

            .history {
                grid-area: history;
            }

            .aside {
                grid-area: aside;
            }
        }
    }

    &__data {
        &--empty {
            margin-right: $margin-m;
            margin-left: $margin-m;
            box-shadow: $box-shadow-l;
            padding-left: $grid-gap-m;
            padding-right: $grid-gap-m;
            padding-bottom: $grid-gap-m;
            padding-top: $grid-gap-m;

            @media (min-width: $mq-m) {
                margin-right: $margin-m;
                margin-left: 0;
            }
        }
    }

    &__heading {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .btn {
            padding-left: $padding-m;
            padding-right: $padding-m;
            margin-right: $margin-m;

            @media (min-width: $mq-s) {
                padding-left: $padding-l;
                padding-right: $padding-l;
            }
        }

        &-title {
            @include text-xl;

            color: $color-text-primary;
            text-align: center;
            margin-top: 2.5rem;
            margin-bottom: 2.5rem;
            margin-left: $margin-l;
            text-align: left;
        }

        &-history {
            margin-left: -4rem;
            padding-left: $padding-m;
        }

        &-recommended {
            margin-bottom: 5rem;

            @media (min-width: $mq-m) {
                margin-bottom: 5.25rem;
            }
        }
    }

    &-wapper {
        margin: $margin-m;
        box-shadow: $box-shadow-l;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        padding-bottom: 1.5rem;

        @media (min-width: $mq-m) {
            display: flex;
            flex-direction: row;
            align-items: center;
            padding-top: 1.5rem;
        }
    }

    &__image {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        padding-top: $padding-l;
        padding-bottom: $padding-m;

        width: auto;
        text-align: center;
        margin: 0 auto;

        

        @media (min-width: $mq-s) {
            margin: 0 auto;
            width: 10rem;
        }

        @media (min-width: $mq-m) {
            margin-right: $margin-m;
            margin-left: 0;
        }

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

    &__info {
        color: $color-text-primary;
        font-size: $font-big;
    }

    &__title {
        margin-top: 0;
        margin-bottom: .5rem;
        font-weight: $font-weight-light;
    }

    &__subtitle {
        margin: 0;
        margin-bottom: $margin-m;
    }

    .mycoupons {
        &__grid {
            max-width: 100%;
            margin-left: $margin-m;
            margin-right: $margin-m;

            .coupon {
                grid-column: span 12;

                &__img {
                    background-size: cover;
                    background-position: center;
                }
            }
        }
    }

    .history {
        padding-left: 4rem;
        padding-right: $padding-m;

        @media (min-width: $mq-s) {
            padding-left: 6rem;
        }

        &__data {
            display: flex;
            align-items: center;
            margin-left: -2.875rem;

            @media (min-width: $mq-s) {
                margin-left: -4.875rem;
            }
        }

        &__item {
            background: #fff;
            box-shadow: $box-shadow-l;
            width: 100%;
            margin-bottom: $margin-m;
        }

        &__image {
            border-radius: 4.875rem;
            width: 6rem;
            height: 6rem;
            z-index: 1;

            @media (min-width: $mq-s) {
                width: 9.75rem;
                height: 9.75rem;
            }
        }

        &__info {
            @include text-m;

            font-weight: $font-weight-medium;
            color: $color-text-primary;
            min-height: 6.875rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            line-height: 2rem;
            margin-left: $margin-m;

            @media (min-width: $mq-s) {
                height: 9.5rem;
                margin-left: 0;
                padding-left: $padding-m;
                font-size: 1.5rem;
            }

            &-name {
                margin: 0;

                @media (min-width: $mq-s) {
                    margin-bottom: .5rem;
                }
            }

            &-price {
                margin: 0;
            }
        }
    }

    .cards {
        margin-bottom: 0;

        @media (min-width: $mq-m) {
            margin-bottom: 5rem;
        }

        .btn {
            box-shadow: 10px 10px 52px 0 rgba(0, 0, 0, 0.2);
            display: block;
            margin-bottom: -$margin-m;
            margin-left: auto;
            margin-right: auto;
        }

        .card {
            &__description {
                max-width: 11.25rem;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;

                @media (min-width: $mq-s) {
                    max-width: 11.25rem;
                    line-height: 2rem;
                }
            }
        }
    }

    .favorite {
        display: flex;
        flex-direction: column;

        @media (min-width: $mq-s) {
            flex-direction: row;
        }

        &__item {
            background-size: cover;
            background-repeat: no-repeat;
            align-items: center;
            display: flex;
            grid-column-end: span 4;
            justify-content: center;
            min-height: 14.5rem; // 232px
            background-position: center;
            margin-bottom: $margin-m;
            margin-left: $margin-m;
            margin-right: $margin-m;

            @media (min-width: $mq-s) {
                width: 100%;

                &:last-child {
                    display: none;
                }
            }

            @media (min-width: $mq-m) {
                &:last-child {
                    display: flex;
                }
            }
        }
    }
}
@media screen and (min-width : 320px) and (max-width : 767px) {
    .profileMain .ProfileSection {
        padding: 0 35px;
    }
    .profileMain .ProfileSection .form-container{
        margin-left: 0
    }
    .profile-name{
        margin: 0 !important;
    }
}

@media screen and (min-width : 900px) and (max-width : 1350px) {
    .profile-div{
        -ms-flex: 1 1 auto!important;
        flex: 1 1 auto!important;
    }
}

@media screen and (min-width : 768px) and (max-width : 899px) {
    .profile-div{
        -ms-flex: 1 1 auto!important;
        flex: 1 1 auto!important;
    }
}