/* WooCommerce My Account page */

.woocommerce-account .page-header,
.woocommerce-account .woocommerce {
    max-width: 1320px;
    width: 100%;
    padding-inline: 20px;
    margin-inline: auto;
}

.woocommerce-account .page-header {
    padding-top: 40px;
    padding-bottom: 20px;
    color: #3A3735;
}

.woocommerce-account .page-header .entry-title {
    margin: 0;
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.3px;
}

.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-top: 20px;
    padding-bottom: 80px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 240px;
    width: 240px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #E3DDD5;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid #E3DDD5;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 18px;
    font-family: 'Gilroy', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #2b2119;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #2b2119;
    color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #2b2119;
    padding-left: 53px;
}

.woocommerce-account .woocommerce-MyAccount-content p {
    margin: 0 0 16px;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: #B1886F;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: #2b2119;
}

.woocommerce-account .woocommerce-MyAccount-content strong {
    font-weight: 600;
    color: #2b2119;
}

.woocommerce-account table.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
    padding: 12px 14px;
    border-bottom: 1px solid #E3DDD5;
    text-align: left;
}

.woocommerce-account table.shop_table th {
    font-weight: 600;
    color: #2b2119;
    background: #F6F1E9;
}


:where(.woocommerce) .select2-container .select2-selection--single { height: auto; width: 100%; background: #fff; border: 1px solid #D8D2CA !important; border-radius: 50px !important; color: #3A3735; font-size: 14px; padding: 8px 14px; outline: none; box-sizing: border-box; }
/* Address Wrapper */
.woocommerce-account .woocommerce-Addresses {
    gap: 30px;
    margin-top: 30px;
}

.addresses .title::before{display: none !important;}

/* Address Card */
.woocommerce-account .woocommerce-Address {
    background: #fff;
    border: 1px solid #e8e2d9;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: all .3s ease;
}

.woocommerce-account .woocommerce-Address:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

/* Header */
.woocommerce-account .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.woocommerce-account .woocommerce-Address-title h2 {
    margin: 0;
    font-family: "Jost", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #2B2119;
}

/* Edit Button */
.woocommerce-account .woocommerce-Address-title .edit {
    position: relative;
    display: inline-block;
    padding: 10px 22px;
    background: #D6B174;
    color: #2B2119;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
    font-family: "Jost", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: color .3s ease;
}

.woocommerce-account .woocommerce-Address-title .edit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #2B2119;
    transform: translateX(-100%);
    transition: transform .4s ease;
    z-index: -1;
    border-radius: inherit;
}

.woocommerce-account .woocommerce-Address-title .edit:hover::before {
    transform: translateX(0);
}

.woocommerce-account .woocommerce-Address-title .edit:hover {
    color: #fff;
}

/* Address Text */
.woocommerce-account .woocommerce-Address address {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    font-style: normal;
}

/* Responsive */
@media (max-width: 767px) {
    .woocommerce-account .woocommerce-Addresses {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .woocommerce-account .woocommerce-Address {
        padding: 20px;
    }

    .woocommerce-account .woocommerce-Address-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.woocommerce-account table.shop_table .button,
.woocommerce-account .woocommerce-Button,
.woocommerce-account button.button,
.woocommerce-account input.button{
    position: relative;
    background: #2B2119;
    color: #fff !important;
    border: none;
    padding: 12px 24px;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: capitalize;
    cursor: pointer;
    border-radius: 50px;
    overflow: hidden;
    z-index: 1;
    transition: color .3s ease;
}

.woocommerce-account table.shop_table .button::before,
.woocommerce-account .woocommerce-Button::before,
.woocommerce-account button.button::before,
.woocommerce-account input.button::before{
    content: "";
    position: absolute;
    inset: 0;
    background: #E3A56B;
    border-radius: inherit;
    transform: translateX(-100%);
    transition: transform .5s ease;
    z-index: -1;
}

.woocommerce-account table.shop_table .button:hover::before,
.woocommerce-account .woocommerce-Button:hover::before,
.woocommerce-account button.button:hover::before,
.woocommerce-account input.button:hover::before{
    transform: translateX(0);
}

.woocommerce-account table.shop_table .button:hover,
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account button.button:hover,
.woocommerce-account input.button:hover{
    color: #fff !important;
}

.woocommerce-account form .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #8d745e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.woocommerce-account form .form-row input.input-text,
.woocommerce-account form .form-row select,
.woocommerce-account form .form-row textarea {
    width: 100%;
    background: #fff;
    border: 1px solid #D8D2CA;
    border-radius: 50px;
    color: #3A3735;
    font-size: 14px;
    padding: 15px 14px;
    outline: none;
    box-sizing: border-box;
}

.woocommerce-account form .form-row input.input-text:focus,
.woocommerce-account form .form-row select:focus,
.woocommerce-account form .form-row textarea:focus {
    border-color: #B1886F;
}

.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info,
.woocommerce-account .woocommerce-error {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 14px;
}

.woocommerce-account .woocommerce-message {
    background: #F6F1E9;
    border-top: 3px solid #B1886F;
}

.woocommerce-account .woocommerce-info {
    background: #F6F1E9;
    border-top: 3px solid #4D4946;
}

@media (max-width: 767px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
        gap: 24px;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation {
        flex: 1 1 100%;
        width: 100%;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding-left: 0;
    }
}

/* Auth pages: login / register / forgot */

.topikal-auth-layout header#masthead,
.topikal-auth-layout footer,
.topikal-auth-layout .elementor-location-header,
.topikal-auth-layout .elementor-location-footer,
.topikal-auth-layout header.ehf-header,
.topikal-auth-layout footer.ehf-footer {
    display: none !important;
}

.topikal-login-page .page-header,
.topikal-register-page .page-header,
.topikal-forgot-page .page-header,
.topikal-reset-password-page .page-header,
.topikal-auth-layout .page-header {
    display: none;
}

.topikal-auth-layout #primary {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #fff;
}

.topikal-auth-layout #primary .site-main,
.topikal-auth-layout #primary .page-content,
.topikal-auth-layout #primary .entry-content,
.topikal-login-page #primary .woocommerce,
.topikal-register-page #primary .woocommerce,
.topikal-forgot-page #primary .woocommerce,
.topikal-reset-password-page #primary .woocommerce {
    display: block;
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

.topikal-auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
}

.topikal-auth-split__media {
    position: relative;
    min-height: 100%;
    background-color: #362c24;
    background-image: linear-gradient(135deg, #362c24 0%, #4d4946 45%, #8D6A4F 100%);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.topikal-auth-split--has-image .topikal-auth-split__media {
    background-color: #362c24;
}

.topikal-auth-split__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(43, 33, 25, 0.08) 0%, rgba(43, 33, 25, 0.28) 100%);
    pointer-events: none;
}

.topikal-auth-split__content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    background: #fff;
    min-height: 100vh;
}

.topikal-auth-page {
    width: 100%;
    max-width: 420px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.topikal-auth-page__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.topikal-auth-page__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #3A3735;
}

.topikal-auth-page__logo-image {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 64px;
    height: auto;
    object-fit: contain;
}

.topikal-auth-page__logo-text {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #3A3735;
}

.topikal-reset-password-page .topikal-auth-page__logo {
    margin-bottom: 24px;
}

.topikal-auth-page__header {
    margin-bottom: 28px;
    text-align: left;
}

.topikal-auth-page__eyebrow {
    margin: 0 0 10px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #B1886F;
}

.topikal-auth-page__title { margin: 0 0 8px; font-family: Arial; font-weight: 400; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; color: #3A3735; }

.topikal-auth-page__subtitle {
    margin: 0;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #8A857E;
}

.topikal-auth-page__notices {
    margin-bottom: 20px;
}

.topikal-auth-page__notices .woocommerce-message,
.topikal-auth-page__notices .woocommerce-info,
.topikal-auth-page__notices .woocommerce-error,
.topikal-auth-layout .woocommerce-MyAccount-content .woocommerce-message,
.topikal-auth-layout .woocommerce-MyAccount-content .woocommerce-info,
.topikal-auth-layout .woocommerce-MyAccount-content .woocommerce-error {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 0;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    list-style: none;
}

.topikal-auth-page__notices .woocommerce-message,
.topikal-auth-layout .woocommerce-MyAccount-content .woocommerce-message {
    background: #F6F1E9;
    border-left: 3px solid #B1886F;
}

.topikal-auth-page__notices .woocommerce-info,
.topikal-auth-layout .woocommerce-MyAccount-content .woocommerce-info {
    background: #F6F1E9;
    border-left: 3px solid #4D4946;
}

.topikal-auth-page__notices .woocommerce-error,
.topikal-auth-layout .woocommerce-MyAccount-content .woocommerce-error {
    background: #FFF5F5;
    border-left: 3px solid #D71920;
    color: #8A2B2B;
}

.topikal-auth-form .form-row {
    margin: 0 0 18px;
    padding: 0;
}

.topikal-auth-form .form-row label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8A857E;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topikal-auth-form .form-row label .required {
    color: #B1886F;
    text-decoration: none;
}

.topikal-auth-form .form-row input.input-text,
.topikal-auth-form .form-row select,
.topikal-auth-form .form-row textarea {
    width: 100%;
    min-height: 50px;
    background: #F3F6F9;
    border: 1px solid #D8E0E8;
    border-radius: 999px;
    color: #3A3735;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    padding: 12px 20px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.topikal-auth-form .form-row input.input-text:focus,
.topikal-auth-form .form-row select:focus,
.topikal-auth-form .form-row textarea:focus {
    background: #fff;
    border-color: #B1886F;
    box-shadow: 0 0 0 3px rgba(177, 136, 111, 0.15);
}

.topikal-auth-form__hint {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #F6F1E9;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: #6F6A63;
}

.topikal-auth-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.topikal-auth-form__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4D4946;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
}

.topikal-auth-form__remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #4D4946;
}

.topikal-auth-form__forgot {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #B1886F;
    text-decoration: none;
    white-space: nowrap;
}

.topikal-auth-form__forgot:hover {
    color: #4D4946;
}

.topikal-auth-form__submit-row {
    margin: 0;
}

.topikal-auth-form__submit,
.topikal-auth-layout .woocommerce-ResetPassword .button,
.topikal-reset-password-page .woocommerce-ResetPassword .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #b0846a;
    color: #fff !important;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.topikal-auth-form__submit:hover,
.topikal-auth-layout .woocommerce-ResetPassword .button:hover,
.topikal-reset-password-page .woocommerce-ResetPassword .button:hover {
    background: #8D6A4F;
    color: #fff !important;
}

.topikal-auth-page__switch {
    margin: 28px 0 0;
    padding-top: 22px;
    border-top: 1px solid #ECE5DB;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: #8A857E;
    text-align: center;
}

.topikal-auth-page__switch a {
    color: #B1886F;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topikal-auth-page__switch a:hover {
    color: #4D4946;
}

/* Register extras — keep shared auth UI; only field helpers */
.topikal-auth-form__terms {
    margin: 0 0 22px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #6F6A63;
}

.topikal-auth-form__terms a {
    color: #B1886F;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topikal-auth-form__terms a:hover {
    color: #4D4946;
}

.topikal-auth-page__divider {
    display: flex;
    align-items: center;
    margin: 28px 0 22px;
    color: #8A857E;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
}

.topikal-auth-page__divider::before,
.topikal-auth-page__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ECE5DB;
}

.topikal-auth-page__divider span {
    padding: 0 14px;
    background: #fff;
}

.topikal-auth-form__secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid #D8E0E8;
    border-radius: 999px;
    background: #fff;
    color: #B1886F !important;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.topikal-auth-form__secondary:hover {
    border-color: #B1886F;
    color: #4D4946 !important;
}

.topikal-auth-form--register .woocommerce-privacy-policy-text {
    display: none;
}

/* Password reset form (email link lands on My Account) */

.topikal-reset-password-page .woocommerce-MyAccount-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 40px 32px !important;
    border: 1px solid #ECE5DB;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(54, 44, 36, 0.08);
}

.topikal-reset-password-page .woocommerce-MyAccount-navigation {
    display: none;
}

.topikal-reset-password-page .woocommerce {
    display: block !important;
    padding: 48px 20px 80px !important;
}

.topikal-reset-password-page .woocommerce-ResetPassword {
    margin: 0;
}

.topikal-reset-password-page .woocommerce-ResetPassword > p:first-child {
    margin: 0 0 24px;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #8A857E;
    text-align: center;
}

.topikal-reset-password-page .woocommerce-ResetPassword .form-row {
    margin-bottom: 18px;
}

.topikal-reset-password-page .woocommerce-ResetPassword label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8A857E;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.topikal-reset-password-page .woocommerce-ResetPassword input.input-text {
    width: 100%;
    min-height: 48px;
    background: #FAF8F4;
    border: 1px solid #E3DDD5;
    border-radius: 8px;
    color: #3A3735;
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    padding: 12px 14px;
    box-sizing: border-box;
}

.topikal-reset-password-page .woocommerce-ResetPassword input.input-text:focus {
    background: #fff;
    border-color: #B1886F;
    box-shadow: 0 0 0 3px rgba(177, 136, 111, 0.15);
    outline: none;
}

@media (max-width: 991px) {
    .topikal-auth-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .topikal-auth-split__media {
        min-height: 240px;
    }

    .topikal-auth-split__content {
        min-height: auto;
        padding: 40px 24px 56px;
    }
}

@media (max-width: 767px) {
    .topikal-auth-split__media {
        min-height: 200px;
    }

    .topikal-auth-split__content {
        padding: 32px 20px 48px;
    }

    .topikal-auth-page__title {
        font-size: 28px;
    }

    .topikal-auth-form__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .topikal-reset-password-page .woocommerce-MyAccount-content {
        padding: 28px 22px 24px !important;
    }
}
