/* ==========================================================================
   8. CART, CHECKOUT & ACCOUNT (MINIMAL & PREMIUM)
   ========================================================================== */
.woocommerce-cart-form {
    margin-bottom: 50px;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.shop_table th {
    font-family: var(--font-subheading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    text-align: left;
    color: var(--text-primary);
}

.shop_table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.product-thumbnail {
    width: 100px;
}

.product-thumbnail img {
    width: 80px !important;
    height: auto !important;
    display: block;
    border: 1px solid var(--border-color);
}

.product-remove {
    width: 50px;
    text-align: center;
}

.product-name a {
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--accent);
}

.product-price,
.product-subtotal {
    font-family: var(--font-subheading);
    color: var(--text-primary) !important;
    font-weight: 600;
}

.product-remove a.remove {
    color: var(--error) !important;
    font-size: 24px !important;
    text-decoration: none !important;
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 28px;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.product-remove a.remove:hover {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: var(--error);
}

.cart-actions-row {
    background-color: var(--bg-primary);
}

.coupon-container {
    display: flex;
    gap: 10px;
}

.coupon-container input {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
}

.coupon-container input:focus {
    border-color: var(--accent);
}

/* ---- WooCommerce Native Cart Overrides ---- */

/* Coupon row: fix layout, label hidden, input full-width */
.woocommerce table.shop_table td.actions .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

.woocommerce table.shop_table td.actions .coupon label {
    display: none !important;
}

.woocommerce table.shop_table td.actions .coupon #coupon_code {
    flex: 1 !important;
    min-width: 180px !important;
    max-width: 280px !important;
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 12px 15px !important;
    font-size: 13px !important;
    outline: none !important;
    height: 46px !important;
}

.woocommerce table.shop_table td.actions .coupon #coupon_code:focus {
    border-color: var(--accent) !important;
}

/* Cart actions buttons */
.woocommerce table.shop_table td.actions .button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-cart .cart_totals .checkout-button {
    background-color: var(--text-primary) !important;
    color: #ffffff !important;
    border: 1px solid var(--text-primary) !important;
    font-family: var(--font-subheading) !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    height: 46px !important;
    cursor: pointer !important;
    transition: background-color var(--transition-fast) !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.woocommerce table.shop_table td.actions .button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: var(--text-primary) !important;
    color: #ffffff !important;
}

/* Proceed to Checkout full-width */
.woocommerce-cart .wc-proceed-to-checkout {
    padding: 0 !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100% !important;
    height: 52px !important;
    font-size: 13px !important;
    margin-top: 10px !important;
}

/* Cart Collaterals — override WooCommerce float layout with grid */
.woocommerce .cart-collaterals,
.woocommerce-page .cart-collaterals {
    display: grid !important;
    grid-template-columns: 1fr 420px !important;
    gap: 40px !important;
    align-items: start !important;
    float: none !important;
    width: 100% !important;
    margin-top: 50px !important;
}

.woocommerce .cart_totals,
.woocommerce-page .cart_totals {
    float: none !important;
    width: 100% !important;
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 30px !important;
}

.woocommerce .cart_totals h2,
.woocommerce-page .cart_totals h2 {
    font-family: var(--font-subheading) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 25px !important;
    border-bottom: 2px solid var(--accent) !important;
    padding-bottom: 10px !important;
    color: var(--text-primary) !important;
}

/* Totals table rows */
.woocommerce .cart_totals table.shop_table,
.woocommerce-page .cart_totals table.shop_table {
    border: none !important;
    background: transparent !important;
    margin-bottom: 25px !important;
}

.woocommerce .cart_totals table.shop_table th,
.woocommerce-page .cart_totals table.shop_table th {
    font-family: var(--font-subheading) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--text-secondary) !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none !important;
    white-space: nowrap !important;
    width: 120px !important;
}

.woocommerce .cart_totals table.shop_table td,
.woocommerce-page .cart_totals table.shop_table td {
    font-family: var(--font-subheading) !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none !important;
}

/* Total row — accent color */
.woocommerce .cart_totals table.shop_table tr.order-total td,
.woocommerce-page .cart_totals table.shop_table tr.order-total td {
    color: var(--text-primary) !important;
    font-size: 18px !important;
}

/* Shipping row fix — prevent "SHIPMENT" clipping */
.woocommerce .cart_totals table.shop_table .shipping td,
.woocommerce-page .cart_totals table.shop_table .shipping td {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
    line-height: 1.6 !important;
}

/* Update Cart button alignment fix */
.woocommerce table.shop_table td.actions {
    background: transparent !important;
    border-bottom: none !important;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
}

@media (min-width: 768px) {
    .woocommerce table.shop_table td.actions {
        display: table-cell !important;
        text-align: right !important;
        vertical-align: middle !important;
    }

    .woocommerce table.shop_table td.actions .coupon {
        float: left !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .woocommerce table.shop_table td.actions button[name="update_cart"] {
        float: right !important;
    }
}

/* Mobile cart overrides */
@media (max-width: 767px) {

    .woocommerce .cart-collaterals,
    .woocommerce-page .cart-collaterals {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-top: 30px !important;
    }

    .woocommerce table.shop_table td.actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .woocommerce table.shop_table td.actions .coupon {
        width: 100% !important;
    }

    .woocommerce table.shop_table td.actions .coupon #coupon_code {
        min-width: 120px !important;
        max-width: none !important;
        flex: 1 !important;
    }
}

/* Cart Collaterals */
.cart-collaterals {
    display: grid;
}

@media (min-width: 992px) {
    .cart-collaterals {
        grid-template-columns: 1fr 450px;
        gap: 40px;
        margin-top: 50px;
    }
}

.cart_totals {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 30px;
}

.cart_totals h2 {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.cart_totals table {
    width: 100%;
    margin-bottom: 30px;
}

.cart_totals table tr {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart_totals table th {
    font-weight: 600;
    color: var(--text-secondary);
}

.cart_totals table td {
    font-family: var(--font-subheading);
    font-weight: 700;
    color: var(--accent);
}

.checkout-button-container .btn {
    width: 100%;
    height: 56px;
}

/* Checkout Page */
.checkout-layout {
    display: grid;
}

@media (min-width: 992px) {
    .checkout-layout {
        grid-template-columns: 1.2fr 1fr;
        gap: 50px;
    }
}

.checkout-section-title {
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.form-row {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-row input,
.form-row select,
.form-row textarea {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--accent);
}

/* Order Review (Checkout Sidebar) */
.order-review-summary {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 40px;
    align-self: start;
}

.review-item-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.review-item-name {
    font-weight: 500;
}

.review-item-price {
    font-family: var(--font-subheading);
    font-weight: 700;
    color: var(--accent);
}

.payment-methods-list {
    margin-top: 30px;
    background-color: var(--bg-primary);
    padding: 20px;
    border: 1px solid var(--border-color);
}

.payment-method-item {
    margin-bottom: 15px;
}

.payment-method-item:last-child {
    margin-bottom: 0;
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.payment-method-desc {
    margin-top: 10px;
    padding-left: 25px;
    font-size: 12px;
    color: var(--text-secondary);
    display: none;
}

.payment-method-item.active .payment-method-desc {
    display: block;
}

.place-order-btn {
    width: 100%;
    margin-top: 30px;
    height: 56px;
}

/* Account Login / Registration Form Toggling & Styling */
.toggle-account-view {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #6B6B6B;
}

.toggle-account-view a {
    color: #1F3D2B;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 8px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.toggle-account-view a:hover {
    color: #1A1A1A;
}

/* Initially hide registration wrapper when toggle system is active */
.account-toggle-active #register-form-wrapper {
    display: none;
}

/* Swap visibility when toggle active is active and show-register is added */
.account-toggle-active.show-register #login-form-wrapper {
    display: none;
}

.account-toggle-active.show-register #register-form-wrapper {
    display: block;
}

/* Align and center the login/register forms on page when toggled */
.account-toggle-active #login-form-wrapper,
.account-toggle-active #register-form-wrapper {
    float: none;
    margin: 0 auto;
    max-width: 500px;
}

/* Hide page title header on my-account page for logged-out users */
body.woocommerce-account:not(.logged-in) .entry-header {
    display: none;
}

/* Add vertical spacing to customer login forms on my-account page when logged out */
body.woocommerce-account:not(.logged-in) #customer_login {
    margin-top: 65px;
    margin-bottom: 80px;
}

/* ==========================================================================
   8b. MY ACCOUNT PAGE — ENTRY HEADER (WordPress page title area)
   ========================================================================== */

/* Desktop: style the WordPress page title above the dashboard grid */
body.woocommerce-account .entry-header {
    margin: 19px 0px 0px 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

body.woocommerce-account .entry-header .entry-title {
    font-family: 'Futura PT', var(--font-subheading), sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #9e9e9e !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    display: inline-block !important;
}

/* Remove the default link styling from the h1 anchor */
body.woocommerce-account .entry-header .entry-title a {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
    /* Not a clickable link */
    cursor: default !important;
}

/* Mobile: hide the WordPress page title entirely.
   On mobile the profile card + back button provide all the context needed. */
@media (max-width: 991px) {
    body.woocommerce-account .entry-header {
        display: none !important;
    }
}

/* ==========================================================================
   9. LOGGED-IN MY ACCOUNT CUSTOMER AREA (PREMIUM REDESIGN)
   ========================================================================== */

/* Grid layout for logged-in My Account dashboard */
body.logged-in.woocommerce-account .woocommerce {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 40px !important;
    align-items: start !important;
    margin-top: 17px !important;
    margin-bottom: 80px !important;
}

/* Fix clearfix grid grid-item conflicts */
body.logged-in.woocommerce-account .woocommerce::before,
body.logged-in.woocommerce-account .woocommerce::after {
    display: none !important;
}

/* Sidebar wrapper: profile header + nav — is the grid child on desktop */
body.woocommerce-account .myaccount-mobile-sidebar {
    width: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    background-color: transparent !important;
    border: none !important;
    padding: 12px 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.woocommerce-account .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    background-color: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    padding: 40px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

/* Navigation List Overrides */
.woocommerce-MyAccount-navigation ul.list-group {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.woocommerce-MyAccount-navigation li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-MyAccount-navigation .list-group-item {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 24px !important;
    font-family: 'Futura PT', var(--font-subheading), sans-serif !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    color: #4a4a4a !important;
    background-color: transparent !important;
    border: none !important;
    border-left: 4px solid transparent !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Icons inside menu items */
.woocommerce-MyAccount-navigation .list-group-item .menu-icon {
    font-size: 18px !important;
    color: #7e7e7e !important;
    width: 24px !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Navigation Hover states */
.woocommerce-MyAccount-navigation .list-group-item:hover {
    background-color: #faf6f6 !important;
    color: var(--text-primary) !important;
    padding-left: 24px !important;
}

.woocommerce-MyAccount-navigation .list-group-item:hover .menu-icon {
    color: var(--text-primary) !important;
}

/* Active item state */
.woocommerce-MyAccount-navigation li.is-active .list-group-item,
.woocommerce-MyAccount-navigation .list-group-item[aria-current="page"] {
    background-color: #fff5f5 !important;
    color: var(--accent) !important;
    border-left: 4px solid var(--accent) !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.woocommerce-MyAccount-navigation li.is-active .list-group-item .menu-icon,
.woocommerce-MyAccount-navigation .list-group-item[aria-current="page"] .menu-icon {
    color: var(--accent) !important;
}

/* Title Header in Right Content Panel */
.myaccount-endpoint-header {
    margin-bottom: 30px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 24px !important;
}

.myaccount-endpoint-title {
    font-family: 'Futura PT', var(--font-subheading), sans-serif !important;
    font-weight: 700 !important;
    font-size: 32px !important;
    color: #111111 !important;
    margin: 0 0 10px 0 !important;
    position: relative !important;
    display: inline-block !important;
    padding-bottom: 8px !important;
}

.myaccount-endpoint-title::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 60px !important;
    height: 3px !important;
    background-color: #e3a857 !important;
    /* Orange/Gold divider line */
}

.myaccount-endpoint-subtitle {
    font-family: 'Futura PT', sans-serif !important;
    font-size: 15px !important;
    color: #7e7e7e !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* Form Styles */
.woocommerce-EditAccountForm label {
    font-family: 'Futura PT', sans-serif !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #333333 !important;
    text-transform: none !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.woocommerce-EditAccountForm label .required {
    color: #d3122a !important;
    text-decoration: none !important;
}

.woocommerce-EditAccountForm label .info-icon-label {
    font-size: 14px !important;
    color: #9e9e9e !important;
    cursor: pointer !important;
}

.woocommerce-EditAccountForm input.input-text {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-family: 'Futura PT', sans-serif !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    outline: none !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    height: auto !important;
}

.woocommerce-EditAccountForm input.input-text:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(211, 18, 42, 0.08) !important;
}

.woocommerce-EditAccountForm .display-name-hint {
    display: block !important;
    font-size: 12px !important;
    color: #7e7e7e !important;
    margin-top: 6px !important;
    line-height: 1.4 !important;
}

.form-row-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin-bottom: 20px !important;
}

.form-row-grid-2 .form-row {
    margin-bottom: 0 !important;
    width: 100% !important;
}

/* Save Account Details Button */
.woocommerce-MyAccount-content .save-changes-row {
    margin-top: 30px !important;
    margin-bottom: 0 !important;
}

.woocommerce-MyAccount-content .save-account-button {
    width: 100% !important;
    background-color: var(--accent) !important;
    border: 1px solid var(--accent) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 16px 32px !important;
    font-family: 'Futura PT', var(--font-subheading), sans-serif !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    /* Hide sliding hover background offset */
}

.woocommerce-MyAccount-content .save-account-button:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
    box-shadow: 0 4px 15px var(--accent-glow) !important;
}

/* Secure Info Notice Box */
.secure-info-notice {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background-color: #faf6f0 !important;
    /* Soft warm beige */
    border: 1px solid #f0e6d8 !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-top: 30px !important;
    width: 100% !important;
}

.secure-info-icon {
    font-size: 24px !important;
    color: #c28b47 !important;
    /* Warm gold/brown */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.secure-info-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.secure-info-title {
    font-family: 'Futura PT', var(--font-subheading), sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #332211 !important;
    margin: 0 !important;
}

.secure-info-desc {
    font-family: 'Futura PT', sans-serif !important;
    font-size: 13px !important;
    color: #7e7266 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Addresses Section styling */
.woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    margin-top: 30px !important;
}

.woocommerce-Address {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    padding: 25px !important;
    border-radius: 8px !important;
}

.woocommerce-Address-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 10px !important;
}

.woocommerce-Address-title h3 {
    font-family: 'Futura PT', var(--font-subheading), sans-serif !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    color: var(--text-primary) !important;
    letter-spacing: 0.05em !important;
}

/* Profile header style for mobile */
.myaccount-profile-header {
    display: none !important;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    body.logged-in.woocommerce-account .woocommerce {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Mobile profile card container styling */
    .myaccount-profile-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-bottom: 30px !important;
        margin-top: 20px !important;
    }

    .profile-avatar-wrapper {
        position: relative !important;
        display: inline-block !important;
        margin-bottom: 16px !important;
        border-radius: 50% !important;
        padding: 4px !important;
        background-color: #ffffff !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    }

    .profile-avatar-wrapper img,
    .profile-avatar-wrapper .avatar {
        width: 90px !important;
        height: 90px !important;
        border-radius: 50% !important;
        object-fit: cover !important;
        display: block !important;
    }

    .profile-verified-badge {
        position: absolute !important;
        bottom: 2px !important;
        right: 2px !important;
        background-color: #ffffff !important;
        color: #ff5b5b !important;
        /* Mobile verified check badge color */
        border-radius: 50% !important;
        width: 22px !important;
        height: 22px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 14px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid #f0f0f0 !important;
    }

    .profile-name {
        font-family: 'Futura PT', var(--font-subheading), sans-serif !important;
        font-weight: 700 !important;
        font-size: 20px !important;
        color: #111111 !important;
        margin: 0 0 4px 0 !important;
    }

    .profile-email {
        font-family: 'Futura PT', sans-serif !important;
        font-size: 14px !important;
        color: #7e7e7e !important;
        margin: 0 !important;
    }

    /* Hide Downloads and Payment Methods from navigation menu on mobile list */
    .woocommerce-MyAccount-navigation-link--downloads,
    .woocommerce-MyAccount-navigation-link--payment-methods {
        display: none !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation {
        background-color: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        border-radius: 0 !important;
    }

    .woocommerce-MyAccount-navigation ul.list-group {
        flex-direction: column !important;
        gap: 12px !important;
    }

    .woocommerce-MyAccount-navigation .list-group-item {
        background-color: #ffffff !important;
        border: 1px solid #f2f2f2 !important;
        border-radius: 12px !important;
        padding: 18px 20px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
        border-left: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 16px !important;
        color: #333333 !important;
        font-weight: 500 !important;
        font-size: 15px !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        transition: all 0.2s ease !important;
    }

    /* Chevron right for mobile list items */
    .woocommerce-MyAccount-navigation .list-group-item::after {
        content: "\f054" !important;
        /* fa-chevron-right */
        font-family: "Font Awesome 6 Free" !important;
        font-weight: 900 !important;
        font-size: 11px !important;
        color: #7e7e7e !important;
        margin-left: auto !important;
        transition: all 0.2s ease !important;
    }

    /* Active state on mobile */
    .woocommerce-MyAccount-navigation li.is-active .list-group-item,
    .woocommerce-MyAccount-navigation .list-group-item[aria-current="page"] {
        background-color: #ffffff !important;
        color: #111111 !important;
        border-left: none !important;
        font-weight: 600 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    }

    .woocommerce-MyAccount-navigation li.is-active .list-group-item .menu-icon,
    .woocommerce-MyAccount-navigation .list-group-item[aria-current="page"] .menu-icon {
        color: var(--accent) !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        padding: 30px 24px !important;
    }

    .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .form-row-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Hide "Settings" (dashboard) item on mobile — not needed on the list view */
    .woocommerce-MyAccount-navigation-link--dashboard {
        display: none !important;
    }

    /* 1. On the Base Dashboard: sidebar visible, content panel hidden */
    .myaccount-mobile-sidebar:not(.is-subpage)~.woocommerce-MyAccount-content {
        display: none !important;
    }

    /* 2. On any Subpage (.is-subpage set via PHP): hide the entire sidebar */
    .myaccount-mobile-sidebar.is-subpage {
        display: none !important;
    }
}

/* Hide back button on desktop only (must come before the mobile rule to not override it) */
@media (min-width: 992px) {
    .myaccount-mobile-back-button {
        display: none !important;
    }

    .myaccount-mobile-topbar {
        display: none !important;
    }
}

/* Mobile topbar — appears above the content card on subpages */
.myaccount-mobile-topbar {
    display: flex;
    align-items: center;
    padding: 12px 4px 8px;
    margin-bottom: 4px;
}

.myaccount-mobile-back-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Futura PT', var(--font-subheading), sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-bottom: 20px;
    display: inline-flex;
}

.myaccount-mobile-back-button i {
    font-size: 14px;
}

.myaccount-mobile-back-button:hover {
    color: var(--accent);
}