/* =========================================================
   COFFEE GENAVEH
   LIGHTWEIGHT MY ACCOUNT
   BASALAM INSPIRED
   MOBILE FIRST
   ========================================================= */

.cg-account-page {
    direction: rtl;
    width: 100%;
    background: #f7f7f7;
    color: #222;
    font-family: inherit;
}

.cg-account-page *,
.cg-account-page *::before,
.cg-account-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.cg-account-container {
    width: min(1180px, calc(100% - 30px));
    margin: 0 auto;
    padding: 28px 0 60px;
}


/* =========================================================
   HEADER
   ========================================================= */

.cg-account-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.cg-account-profile-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #edf8f4;
    color: #15966c;
}

.cg-account-profile-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.cg-account-header h1 {
    margin: 0;
    font-size: 23px;
    line-height: 1.5;
    font-weight: 700;
}

.cg-account-header p {
    margin: 3px 0 0;
    color: #777;
    font-size: 13px;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.cg-account-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.cg-account-sidebar {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
    overflow: hidden;
}

.cg-account-user-card {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px;
    border-bottom: 1px solid #eee;
}

.cg-user-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #edf8f4;
}

.cg-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cg-user-info {
    min-width: 0;
}

.cg-user-info strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cg-user-info span {
    display: block;
    font-size: 10px;
    color: #888;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.cg-account-nav {
    padding: 8px;
}

.cg-account-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cg-account-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cg-account-nav li a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 13px;
    border-radius: 9px;
    color: #555;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition:
        background .2s ease,
        color .2s ease;
}

.cg-account-nav li a:hover {
    background: #f5faf8;
    color: #15966c;
}

.cg-account-nav li.is-active a,
.cg-account-nav li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
    background: #edf8f4;
    color: #15966c;
    font-weight: 700;
}

.cg-account-nav li.is-active a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 3px 0 0 3px;
    background: #15966c;
}


/* =========================================================
   CONTENT
   ========================================================= */

.cg-account-content {
    min-width: 0;
}

.cg-account-content-card {
    min-height: 300px;
    padding: 22px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 16px;
}


/* =========================================================
   WOOCOMMERCE CONTENT
   ========================================================= */

.cg-account-content-card h2 {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.6;
    color: #222;
}

.cg-account-content-card h3 {
    margin: 20px 0 12px;
    font-size: 15px;
}

.cg-account-content-card p {
    font-size: 13px;
    line-height: 1.9;
    color: #666;
}

.cg-account-content-card a {
    color: #15966c;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.cg-account-content-card .woocommerce-MyAccount-content > p:first-child {
    margin-top: 0;
}


/* =========================================================
   TABLES
   ========================================================= */

.cg-account-content-card table.shop_table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border: 0;
}

.cg-account-content-card table.shop_table th,
.cg-account-content-card table.shop_table td {
    padding: 13px 10px;
    border-bottom: 1px solid #eee;
    font-size: 12px;
    text-align: right;
}

.cg-account-content-card table.shop_table th {
    color: #555;
    font-weight: 700;
}

.cg-account-content-card table.shop_table td {
    color: #666;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.cg-account-content-card .button,
.cg-account-content-card a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: #15966c;
    color: #fff !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        background .2s ease,
        box-shadow .2s ease;
}

.cg-account-content-card .button:hover,
.cg-account-content-card a.button:hover {
    background: #117c5a;
    box-shadow: 0 5px 14px rgba(21,150,108,.15);
}


/* =========================================================
   FORMS
   ========================================================= */

.cg-account-content-card form .form-row {
    margin: 0 0 15px;
    padding: 0;
}

.cg-account-content-card form label {
    display: block;
    margin-bottom: 7px;
    color: #333;
    font-size: 12px;
    font-weight: 500;
}

.cg-account-content-card input.input-text,
.cg-account-content-card input[type="text"],
.cg-account-content-card input[type="email"],
.cg-account-content-card input[type="tel"],
.cg-account-content-card input[type="password"],
.cg-account-content-card select,
.cg-account-content-card textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font-family: inherit;
    font-size: 12px;
    outline: none;
}

.cg-account-content-card textarea {
    min-height: 100px;
    padding-top: 10px;
}

.cg-account-content-card input:focus,
.cg-account-content-card select:focus,
.cg-account-content-card textarea:focus {
    border-color: #15966c;
    box-shadow: 0 0 0 3px rgba(21,150,108,.08);
}


/* =========================================================
   LOGIN
   ========================================================= */

.cg-login-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0 20px;
}

.cg-login-card {
    width: min(460px, 100%);
    padding: 30px;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 17px;
    box-shadow: 0 3px 18px rgba(0,0,0,.025);
}

.cg-login-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #edf8f4;
    color: #15966c;
}

.cg-login-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.cg-login-card > h2 {
    margin: 0;
    text-align: center;
    font-size: 19px;
}

.cg-login-card > p {
    margin: 6px 0 22px;
    color: #888;
    font-size: 12px;
    text-align: center;
}

.cg-login-form .woocommerce-form-login,
.cg-login-form .woocommerce-form-register {
    margin: 0;
    padding: 0;
    border: 0;
}

.cg-login-form .form-row {
    margin-bottom: 14px;
}

.cg-login-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
}

.cg-login-form input.input-text {
    width: 100%;
    min-height: 46px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 13px;
    font-family: inherit;
    font-size: 13px;
}

.cg-login-form input.input-text:focus {
    border-color: #15966c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(21,150,108,.08);
}

.cg-login-form .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
}

.cg-login-form input[type="checkbox"] {
    accent-color: #15966c;
}

.cg-login-form button {
    width: 100%;
    min-height: 47px;
    margin-top: 5px;
    border: 0;
    border-radius: 10px;
    background: #15966c;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.cg-login-form button:hover {
    background: #117c5a;
}

.cg-login-form .lost_password {
    margin: 12px 0 0;
    text-align: center;
    font-size: 11px;
}


/* =========================================================
   NOTICES
   ========================================================= */

.cg-account-page .woocommerce-message,
.cg-account-page .woocommerce-info,
.cg-account-page .woocommerce-error {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    background: #fff;
    font-size: 12px;
    line-height: 1.8;
}

.cg-account-page .woocommerce-message {
    border-color: #c7e6da;
    background: #f7fcfa;
}

.cg-account-page .woocommerce-error {
    border-color: #efc6ca;
    background: #fff8f8;
}


/* =========================================================
   ADDRESS
   ========================================================= */

.cg-account-content-card .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.cg-account-content-card .woocommerce-Address {
    padding: 17px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fff;
}

.cg-account-content-card .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cg-account-content-card .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 14px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .cg-account-container {
        width: calc(100% - 20px);
        padding: 18px 0 35px;
    }

    .cg-account-layout {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cg-account-sidebar,
    .cg-account-content {
        width: 100%;
    }

    .cg-account-sidebar {
        border-radius: 13px;
    }

    .cg-account-user-card {
        padding: 14px;
    }

    .cg-account-nav {
        padding: 6px;
        overflow-x: auto;
    }

    .cg-account-nav ul {
        display: flex;
        gap: 5px;
        min-width: max-content;
    }

    .cg-account-nav li {
        flex: 0 0 auto;
    }

    .cg-account-nav li a {
        min-height: 40px;
        padding: 0 13px;
        border-radius: 8px;
        font-size: 11px;
        white-space: nowrap;
    }

    .cg-account-nav li.is-active a::before {
        display: none;
    }

    .cg-account-content-card {
        padding: 16px;
        border-radius: 13px;
    }

    .cg-account-content-card .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }

    .cg-account-header {
        margin-bottom: 14px;
    }

    .cg-account-profile-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .cg-account-header h1 {
        font-size: 19px;
    }

    .cg-account-header p {
        font-size: 11px;
    }

    .cg-account-content-card table.shop_table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .cg-account-container {
        width: calc(100% - 14px);
        padding-top: 12px;
    }

    .cg-account-header {
        gap: 9px;
    }

    .cg-account-profile-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 10px;
    }

    .cg-account-profile-icon svg {
        width: 20px;
        height: 20px;
    }

    .cg-account-header h1 {
        font-size: 17px;
    }

    .cg-account-header p {
        font-size: 10px;
    }

    .cg-account-user-card {
        padding: 12px;
    }

    .cg-user-avatar {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .cg-account-nav ul {
        gap: 4px;
    }

    .cg-account-nav li a {
        min-height: 38px;
        padding: 0 11px;
        font-size: 10px;
    }

    .cg-account-content-card {
        padding: 13px;
    }

    .cg-login-card {
        padding: 22px 16px;
        border-radius: 14px;
    }

}