﻿/* ========================================
   Custom WooCommerce My Account Page Styles
   Chargentum Website Theme
   ======================================== */

/* ── WooCommerce Notices wrapper ── */
.woocommerce-notices-wrapper {
    max-width: 820px;
    margin: 20px auto 0;
    padding: 0 20px;
}

/* ── WooCommerce Notices — theme-consistent styling ── */

/* All WooCommerce notices — theme style: dark navy + copper border */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner.is-error,
.wc-block-components-notice-banner.is-success,
.wc-block-components-notice-banner.is-info,
ul.woocommerce-error,
ul.woocommerce-message,
ul.woocommerce-info {
    background: #051C36 !important;
    border: none !important;
    border-left: 4px solid #A16132 !important;
    border-radius: 8px !important;
    padding: 13px 18px !important;
    color: #ffffff !important;
    font-family: "Oak Sans", sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    list-style: none !important;
    margin: 0 0 20px auto !important;
    max-width: 786px !important;
    box-sizing: border-box !important;
}
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li,
.wc-block-components-notice-banner.is-error li,
.wc-block-components-notice-banner.is-success li,
.wc-block-components-notice-banner.is-info li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff !important;
}
/* Hide WooCommerce notice icons */
.woocommerce-error::before,
.woocommerce-error li::before,
.woocommerce-message::before,
.woocommerce-message li::before,
.woocommerce-info::before,
.woocommerce-info li::before {
    display: none !important;
    content: none !important;
}
.wc-block-components-notice-banner svg,
.wc-block-components-notice-banner .wc-block-components-notice-banner__icon {
    display: none !important;
}
/* Links inside notices */
.woocommerce-error a,
.woocommerce-message a,
.woocommerce-info a {
    color: #A16132 !important;
    text-decoration: underline !important;
}

/* Placeholder — keep closing bracket aligned */
.woocommerce-info li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Close button on notices */
.wc-block-components-notice-banner__dismiss,
.woocommerce-error .dismiss,
.woocommerce-message .dismiss {
    color: #94a3b8 !important;
    opacity: 1 !important;
}
.wc-block-components-notice-banner__dismiss:hover {
    color: #334155 !important;
}

/* ── Reset Password Form (show-reset-form=true via Elementor/WC default) ── */
/* Fix 2-column → 1-column layout */
body.woocommerce-account .lost_reset_password .form-row-first,
body.woocommerce-account .lost_reset_password .form-row-last,
body.woocommerce-account .woocommerce-ResetPassword .form-row-first,
body.woocommerce-account .woocommerce-ResetPassword .form-row-last {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    padding: 0 !important;
}
/* Remove "Enter a new password below." default text */
body.woocommerce-account .lost_reset_password > p:first-of-type:not(.form-row),
body.woocommerce-account .woocommerce-ResetPassword > p:first-of-type:not(.form-row) {
    display: none !important;
}
/* Style submit button */
body.woocommerce-account .lost_reset_password button[type="submit"],
body.woocommerce-account .woocommerce-ResetPassword button[type="submit"] {
    background: #051C36 !important;
    color: #ffffff !important;
    font-family: "Oak Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    letter-spacing: 0.02em !important;
    transition: background 0.2s ease !important;
    margin-top: 8px !important;
}
body.woocommerce-account .lost_reset_password button[type="submit"]:hover,
body.woocommerce-account .woocommerce-ResetPassword button[type="submit"]:hover {
    background: #A16132 !important;
}
/* Heading injected by JS */
.chg-reset-heading {
    font-family: "Oak Sans", sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #051C36 !important;
    margin: 0 0 8px !important;
}

/* ── Add Payment Method: kill WooCommerce triangle arrow ── */
.woocommerce-Payment .payment_box::before,
#payment .payment_box::before,
.payment_methods .payment_box::before,
.woocommerce ul.payment_methods .payment_box::before {
	display: none !important;
	content: none !important;
	border: none !important;
}

/* ── Add Payment Method: style the gateway box ── */
.woocommerce-Payment .payment_box,
#payment .payment_box {
	background: #F0E6E0 !important;
	border: 1.5px solid #e2e8f0 !important;
	border-radius: 12px !important;
	box-shadow: 0 2px 10px rgba(5,28,54,0.07) !important;
	margin-top: 0 !important;
}
.custom-account-links br {
    display: none;
}



.custom-login-form br {
    display: none;
}
.custom-login-form p {
     margin: 0;
}
.custom-account-wrapper {
    font-family: "Oak Sans", Sans-serif;
    max-width: 786px;
    margin: 0 auto;
}
div#registerModal br {
    display: none;
}

div#registerModal p {
    margin: 0;
}
.custom-account-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 45px;
    border: 1px solid #e5e7eb;
}

.custom-login-form h2 {
      margin: 0 0 35px 0;
    font-family: "Oak Sans", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #A16132;
    text-align: center;
}

/* Form Fields */
.custom-login-form .woocommerce-form-row {
    margin-bottom: 20px;
}

.custom-login-form label {
    font-family: "Oak Sans", Sans-serif;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #5A5A67 !important;
}

.custom-login-form .required {
    color: #e74c3c;
}

.custom-login-form input[type="text"],
.custom-login-form input[type="email"],
.custom-login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 18px;
    font-family: "Oak Sans", Sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #5A5A67;
}

.custom-login-form input[type="text"]:focus,
.custom-login-form input[type="email"]:focus,
.custom-login-form input[type="password"]:focus {
    outline: none;
    border-color: #ac6d3b;
    box-shadow: 0 0 0 3px rgba(172, 109, 59, 0.1);
}

/* Remember Me & Submit */


.custom-login-form .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
}

.custom-login-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}


.custom-login-form button[type="submit"] {

      border: none;
    color: #FFFFFF;
    background-color: #051C36;
    border-color: #A16132;
    font-family: "Oak Sans", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-style: solid;
       border-radius: 8px 8px 8px 8px;
    padding: 23px 23px 23px 23px;
    width: 100%;
}

.custom-login-form button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #ffffff;
}

/* Custom Links Section */
.custom-account-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e8e8e8;
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.password-label-row label {
    margin: 0 !important;
}

.login-forgot-password {
    font-family: "Oak Sans", sans-serif;
    font-size: 13px;
    color: #A16132;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.login-forgot-password:hover {
    text-decoration: underline;
    color: #A16132;
}

.no-account-text {
    text-align: center;
    font-family: "Oak Sans", sans-serif;
    font-size: 15px;
    color: #5A5A67;
    margin: 0 0 20px 0;
}

.custom-account-links .lost_password {
    text-align: center;
    margin-bottom: 20px;
}

.custom-account-links .lost_password a {
   margin: 0 0 35px 0;
    font-family: "Oak Sans", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #A16132 !important;
    text-align: center;
}

.custom-account-links .lost_password a:hover {
    color: #051C36;
    text-decoration: underline;
}

.custom-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.custom-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}

.custom-divider span {
    background: #ffffff;
    padding: 0 15px;
    color: #5A5A67;
    font-size: 18px;
    font-weight: 400;
    position: relative;
    z-index: 1;
    font-family: "Oak Sans", Sans-serif;
}

.custom-action-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #5A5A67;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    font-family: "Oak Sans", Sans-serif;
}

.custom-link:hover {
    background: #f1f5f9;
    border-color: #ac6d3b;
    color: #ac6d3b;
    transform: translateY(-1px);
}

.custom-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.custom-link.register-link {
        border: none;
    color: #FFFFFF;
    background-color: #051C36;
    border-color: #A16132;
    font-family: "Oak Sans", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-style: solid;
    padding: 15px 15px 15px 15px;
}

.custom-link.register-link:hover {
    color: #A16132;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.custom-link.guest-link {
    color: #374151;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.custom-link.guest-link:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
}

.custom-link svg {
    width: 18px;
    height: 18px;
}

/* Register Modal */
.custom-register-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    animation: modalSlideIn 0.3s ease;
    font-family: "Oak Sans", Sans-serif;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #999;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.custom-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.custom-modal-content h2 {
        margin: 0 0 35px 0;
    text-align: center;
    font-family: "Oak Sans", Sans-serif;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: #A16132;
}

.custom-modal-content .woocommerce-form-row {
    margin-bottom: 20px;
}

.custom-modal-content label {
    font-family: "Oak Sans", Sans-serif;
    font-size: 18px !important;
    font-weight: 400 !important;
    color: #5A5A67 !important;
}

.custom-modal-content input[type="text"],
.custom-modal-content input[type="password"],
.custom-modal-content input[type="email"] {
    width: 100%;
    height: auto;
    padding: 10px 16px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #ffffff;
    font-family: "Oak Sans", Sans-serif;
    color: #5A5A67;
}

.custom-modal-content input:focus {
    outline: none;
    border-color: #ac6d3b;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(172, 109, 59, 0.1);
}

/* .custom-modal-content button[type="submit"] {
    width: 100%;
    font-family: "Oak Sans", Sans-serif;
    font-size: 19px;
    font-weight: 800;
    border-radius: 8px 8px 8px 8px;
    padding: 23px 23px 23px 23px;
    background: url(/wp-content/uploads/2025/09/contact-btn.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-color: #ac6d3b !important;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
} */
.custom-modal-content button[type="submit"] {
      border: none;
    color: #FFFFFF;
    background-color: #051C36;
    border-color: #A16132;
    font-family: "Oak Sans", Sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    border-style: solid;
       border-radius: 8px 8px 8px 8px;
    padding: 23px 23px 23px 23px;
    width: 100%;
}
.custom-modal-content button[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.custom-modal-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.custom-modal-footer p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
}

.custom-modal-footer a {
    color: #ac6d3b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.custom-modal-footer a:hover {
    color: #ac6d3b;
    text-decoration: underline;
}

/* WooCommerce Messages */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
}

.woocommerce-error {
    background: #fee;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.woocommerce-message {
    background: #efe;
    border-left: 4px solid #27ae60;
    color: #229954;
}

.woocommerce-info {
    background: #eff8ff;
    border-left: 4px solid #3498db;
    color: #2874a6;
}

/* Loading state for buttons */
.custom-login-form button.loading,
.custom-modal-content button.loading {
    position: relative;
    pointer-events: none;
}

.custom-login-form button.loading::after,
.custom-modal-content button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide temporary password notice specifically */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info {
    display: none !important;
}

/* Alternative: Hide only messages containing specific text */
.woocommerce-MyAccount-content .woocommerce-message:has(:contains("temporary password")),
.woocommerce-MyAccount-content .woocommerce-info:has(:contains("temporary password")),
.woocommerce-MyAccount-content .woocommerce-message:has(:contains("change your password")),
.woocommerce-MyAccount-content .woocommerce-info:has(:contains("change your password")) {
    display: none !important;
}

/* Responsive */
@media (max-width: 600px) {
    .custom-account-container {
        padding: 30px 20px;
    }
    
    .custom-modal-content {
        padding: 30px 20px;
    }
    
    .custom-login-form h2,
    .custom-modal-content h2 {
        font-size: 24px;
    }
    
    .custom-login-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .custom-login-form button[type="submit"] {
        width: 100%;
    }
}

/* Hide default WooCommerce registration form on login page */
.woocommerce-account .col2-set {
    display: none;
}

/* ========================================
   My Account Dashboard â€” Figma Design
   ======================================== */

/* Global font for entire account section */
body.woocommerce-account {
    font-family: "Oak Sans", sans-serif !important;
}

body.woocommerce-account *,
body.woocommerce-account h1,
body.woocommerce-account h2,
body.woocommerce-account h3,
body.woocommerce-account p,
body.woocommerce-account a,
body.woocommerce-account li,
body.woocommerce-account span,
body.woocommerce-account label,
body.woocommerce-account input,
body.woocommerce-account button {
    font-family: "Oak Sans", sans-serif !important;
}

/* Page background */
.woocommerce-account.woocommerce-page:not(.woocommerce-lost-password) .entry-content,
.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce,
.woocommerce-lost-password .entry-content,
.woocommerce-lost-password .woocommerce {
    background: #f5ede8;
    min-height: 60vh;
    padding: 50px 20px;
}

/* Outer wrapper */
.woocommerce-MyAccount-content-wrapper,
.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > .woocommerce-notices-wrapper ~ *,
.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce {
    max-width: 900px;
    margin: 0 auto;
}

/* White card wrapping sidebar + content */
.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > .woocommerce-MyAccount-navigation,
.account-sidebar,
.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce-MyAccount-navigation {
    /* handled by card below */
}

.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce {
    background: transparent;
    padding: 0;
}

/* Card */
.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > form,
.woocommerce-account.logged-in:not(.woocommerce-lost-password) > .woocommerce {
    background: transparent;
}

/* Main account page layout */
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce {
    display: block;
    background: #f5ede8;
    padding: 50px 20px;
    min-height: 60vh;
}

body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > .woocommerce-notices-wrapper {
    max-width: 860px;
    margin: 0 auto;
}

/* Lost password — confirmation notice styling */
body.woocommerce-lost-password .woocommerce-message,
body.woocommerce-lost-password .woocommerce-info,
body.woocommerce-lost-password .woocommerce-error,
body.woocommerce-lost-password ul.woocommerce-message,
body.woocommerce-lost-password ul.woocommerce-info,
body.woocommerce-lost-password .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-lost-password .woocommerce-notices-wrapper .woocommerce-info {
    max-width: 786px !important;
    margin: 20px auto !important;
    background: #051C36 !important;
    color: #ffffff !important;
    border: none !important;
    border-left: 4px solid #A16132 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(5, 28, 54, 0.18) !important;
    padding: 14px 20px !important;
    font-family: "Oak Sans", sans-serif !important;
    font-size: 14px !important;
    list-style: none !important;
}
body.woocommerce-lost-password .woocommerce-message::before,
body.woocommerce-lost-password .woocommerce-info::before,
body.woocommerce-lost-password ul.woocommerce-message::before,
body.woocommerce-lost-password ul.woocommerce-info::before {
    color: #A16132 !important;
    font-weight: 700 !important;
}
body.woocommerce-lost-password .woocommerce-message a,
body.woocommerce-lost-password .woocommerce-info a,
body.woocommerce-lost-password .woocommerce-message li,
body.woocommerce-lost-password .woocommerce-info li {
    color: #ffffff !important;
}

/* Main layout: CSS Grid so avatar-wrap + nav stack in column 1, content in column 2 */
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce {
    display: grid !important;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 30px;
    align-items: stretch;
    max-width: 1490px;
    margin: 0 auto;
    padding: 60px 30px !important;
    background: #f5ede8 !important;
}

body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

/* Avatar wrap â€” grid column 1, row 1 */
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > .account-avatar-wrap {
    grid-column: 1;
    grid-row: 1;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 36px 24px 24px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: -1px;
    z-index: 1;
    position: relative;
}

/* Nav â€” grid column 1, row 2 */
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce-MyAccount-navigation {
    grid-column: 1;
    grid-row: 2;
    float: none !important;
    width: auto !important;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    padding: 0;
    align-self: stretch;
}

/* One unified shadow on the sidebar column */
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > .account-avatar-wrap,
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce-MyAccount-navigation {
    box-shadow: 4px 0 24px rgba(0,0,0,0.08), -4px 0 24px rgba(0,0,0,0.04);
}
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > .account-avatar-wrap {
    box-shadow: 4px 0 0 rgba(0,0,0,0.03), -4px 0 0 rgba(0,0,0,0.02), 0 -8px 24px rgba(0,0,0,0.08);
}
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce-MyAccount-navigation {
    box-shadow: 4px 0 0 rgba(0,0,0,0.03), -4px 0 0 rgba(0,0,0,0.02), 0 8px 24px rgba(0,0,0,0.08);
}

/* Content â€” grid column 2, rows 1+2 */
body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce-MyAccount-content {
    grid-column: 2;
    grid-row: 1 / 3;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 35px 30px;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Sidebar avatar section */
.account-avatar-wrap {
    text-align: center;
    padding: 30px 24px 28px;
    border-bottom: 1px solid #f0f0f0;
}

.account-avatar {
    width: 140px;
    height: 140px;
    border: 2px solid #A16132;
    border-radius: 50%;
    margin: 0 auto 16px;
    padding: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-sizing: border-box;
}

.account-avatar img,
.account-avatar img.avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    margin: 0 !important;
}

.account-welcome {
    font-family: "Oak Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 5px;
    color: #A16132;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.account-username {
    font-family: "Oak Sans", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #051C36;
    margin: 0;
}

/* Nav menu */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    font-family: "Oak Sans", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #051C36 !important;
    text-decoration: none;
    border-left: 0 !important;
    border-right: 0 !important;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a .nav-label {
    flex: 1;
}

.woocommerce-MyAccount-navigation ul li a .nav-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.woocommerce-MyAccount-navigation ul li a .nav-icon img {
    width: 22px;
    height: 22px;
    filter: brightness(0) saturate(100%) invert(9%) sepia(52%) saturate(800%) hue-rotate(195deg) brightness(90%);
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover .nav-icon img,
.woocommerce-MyAccount-navigation ul li.is-active a .nav-icon img,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--active a .nav-icon img {
    filter: brightness(0) saturate(100%) invert(38%) sepia(55%) saturate(600%) hue-rotate(358deg) brightness(88%);
    opacity: 1;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    color: #A16132 !important;
    background: #fdf8f5;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--active a {
    color: #A16132 !important;
    border-left: 4px solid #A16132 !important;
    font-weight: 600;
    background: #fdf8f5;
}

/* Dashboard cards icon â€” #051C36 for inactive, copper for active */
.dashboard-card-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) saturate(100%) invert(9%) sepia(52%) saturate(800%) hue-rotate(195deg) brightness(90%);
}

.dashboard-card--active .dashboard-card-icon img {
    filter: brightness(0) saturate(100%) invert(38%) sepia(55%) saturate(600%) hue-rotate(358deg) brightness(88%);
}

/* Dashboard content */
.account-dashboard-header {
    margin-bottom: 16px;
}

.account-dashboard-title {
    font-family: "Oak Sans", sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #051C36;
    margin: 0 0 6px;
}

.chg-welcome-banner {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #ffffff;
    background: #051C36;
    border-left: 4px solid #A16132;
    border-radius: 8px;
    padding: 13px 18px;
    margin: 8px 0 0;
    line-height: 1.6;
}
.chg-welcome-banner__icon { margin-right: 4px; }

.account-dashboard-subtitle {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #5A5A67 !important;
    margin: 0;
}

.account-dashboard-divider {
    border: none !important;
    background-color: #e8e8e8 !important;
    height: 1px !important;
    display: block !important;
    margin: 16px 0 24px !important;
    color: transparent !important;
}

/* Dashboard cards â€” flow horizontally, wrap as many as fit per row, fixed box size */
.account-dashboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
}

.dashboard-card {
    flex: 0 0 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 14px 20px;
    border: 1px solid rgba(5, 28, 54, 0.25);
    border-radius: 20px;
    text-decoration: none;
    min-height: 130px;
    transition: all 0.3s ease;
    background: #ffffff no-repeat center center;
    background-size: cover;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

.dashboard-card--active {
    background-color: #ffffff;
    border-color: rgba(5, 28, 54, 0.25);
}

/* Testimonial-card hover: navy gradient background, all text/icons turn white */
.dashboard-card:hover,
.dashboard-card--active:hover {
    background-image: url('https://www.chargentum.com/wp-content/uploads/2025/09/testi-bg.png');
    background-size: cover;
    background-position: center center;
    border-color: #A16132;
    transform: translateY(-2px);
    box-shadow: none !important;
}

.dashboard-card-icon {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
    color: #051C36;
}

.dashboard-card-icon svg {
    color: #051C36;
}

.dashboard-card--active .dashboard-card-icon {
    color: inherit;
}

.dashboard-card:hover .dashboard-card-icon,
.dashboard-card:hover .dashboard-card-icon svg {
    color: #ffffff;
}

.dashboard-card:hover .dashboard-card-icon img {
    filter: brightness(0) invert(1) !important;
}

.dashboard-card .dashboard-card-label {
    font-family: "Oak Sans", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #051C36 !important;
    margin-top: auto;
    padding-top: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dashboard-card--active .dashboard-card-label {
    color: #051C36 !important;
}

.dashboard-card:hover .dashboard-card-label {
    color: #ffffff !important;
}

/* Tablet: sidebar narrows */
@media (max-width: 1024px) {
    body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce {
        grid-template-columns: 240px 1fr;
        gap: 0 20px;
        padding: 40px 24px !important;
    }
}

/* Mobile: stack vertically */
@media (max-width: 767px) {
    body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px 0;
        padding: 24px 16px !important;
    }

    body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce > .account-avatar-wrap {
        grid-column: 1;
        grid-row: 1;
        border-radius: 12px 12px 0 0;
    }

    body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce-MyAccount-navigation {
        grid-column: 1;
        grid-row: 2;
        border-radius: 0 0 12px 12px;
        margin-bottom: 0;
    }

    body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce-MyAccount-content {
        grid-column: 1;
        grid-row: 3;
        margin-top: 16px;
    }

    .account-dashboard-grid {
        gap: 12px;
    }

    .dashboard-card {
        flex: 1 1 calc(50% - 6px);
        width: auto;
        min-height: 120px;
        padding: 16px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .dashboard-card {
        flex: 1 1 100%;
    }

    body.woocommerce-account.logged-in:not(.woocommerce-lost-password) .woocommerce-MyAccount-content {
        padding: 24px 20px;
    }
}

/* Adjust spacing if WooCommerce notices appear */
.woocommerce-notices-wrapper {
    max-width: 500px;
    margin: 20px auto 0;
    padding: 0 20px;
}

/* ========================================
   Orders Page â€” Figma Design
   ======================================== */

/* Reset WooCommerce default table styles */
.woocommerce-MyAccount-content .orders-table,
.woocommerce-MyAccount-content table.shop_table {
    all: unset;
    display: table;
    width: 100%;
    border-collapse: collapse;
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #051C36;
}

/* Table header row */
.orders-table thead tr {
    background: #f5ede8;
}

.orders-table thead th {
    padding: 12px 10px;
    font-family: "Oak Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #A16132;
    text-align: left;
    white-space: nowrap;
    border: none;
}

.orders-table thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.orders-table thead th:last-child {
    border-radius: 0 10px 10px 0;
    text-align: center;
}

/* Table body rows */
.orders-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.orders-table tbody tr:last-child {
    border-bottom: none;
}

.orders-table tbody tr:hover {
    background: #fdf8f5;
}

.orders-table tbody td {
    padding: 14px 10px;
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #051C36;
    border: none;
    vertical-align: middle;
}

.orders-table tbody td:last-child {
    text-align: center;
}

/* Order number */
.order-number {
    font-weight: 600;
    color: #051C36;
}

/* Status badges */
.order-status-badge {
    display: inline-block;
    padding: 5px 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    font-family: "Oak Sans", sans-serif;
    white-space: nowrap;
    border: 1.5px solid;
    background: transparent;
    width: 100px;
    text-align: center;
}

.order-status-pending,
.order-status-processing,
.order-status-completed,
.order-status-complete,
.order-status-cancelled,
.order-status-cancel,
.order-status-on-hold,
.order-status-failed,
.order-status-refunded {
    color: #5A5A67;
    border-color: #5A5A67;
    background: rgba(90, 90, 103, 0.10);
}

/* Action buttons */
.order-actions-cell {
    display: table-cell !important;
    text-align: center;
    white-space: nowrap;
}

.order-actions-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.order-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(90, 90, 103, 0.10) !important;
    color: #5A5A67 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    flex-shrink: 0;
}

.order-action-btn:hover {
    background: rgba(90, 90, 103, 0.20) !important;
    color: #5A5A67 !important;
    text-decoration: none;
}

.order-action-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Currency symbol in price cells */
.orders-table .woocommerce-Price-amount {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #051C36;
}

/* No orders message */
.no-orders-msg {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid #A16132;
    border-radius: 8px;
    background: #ffffff;
    margin-top: 8px;
    font-family: "Oak Sans", sans-serif;
}

.no-orders-cta {
    display: inline-block;
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #A16132 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-right: 10px;
}

.no-orders-cta:hover { color: #051C36 !important; }

.no-orders-text {
    font-size: 14px;
    color: #051C36;
}

.no-orders-msg .button {
    display: inline-block;
    padding: 12px 28px;
    background: #051C36;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-family: "Oak Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.no-orders-msg .button:hover {
    background: #A16132;
    color: #ffffff;
}

/* Pagination */
.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border-radius: 8px;
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5A5A67 !important;
    text-decoration: none;
    border: 0 !important;
    background: #faf7f4 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.page-btn br {
    display: none;
}

.page-btn p {
    display: flex !important;
}

.orders-pagination p {
    display: flex !important;
    margin: 0 !important;
    gap: 5px;
}

.page-btn:hover {
    background-color: #A16132 !important;
    color: #fff !important;
}

.page-btn.active {
    background: #A16132 !important;
    border-color: #A16132 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-btn.page-next {
    background: #A16132 !important;
    border-color: #A16132 !important;
    color: #ffffff !important;
}

.page-btn.page-next:hover:not(.disabled) {
    background: #8a5028 !important;
    color: #ffffff !important;
}

.page-btn.page-next.disabled {
    background: #d0b8a0 !important;
    color: #ffffff !important;
}

.page-btn.page-prev {
    background: #faf7f4 !important;
    color: #5A5A67 !important;
}

.page-btn.page-prev:hover {
    background: #A16132 !important;
    color: #fff !important;
}

.page-ellipsis {
    padding: 8px 4px;
    font-size: 14px;
    color: #9ca3af;
    line-height: 1;
}

/* Orders table wrap â€” horizontal scroll on small screens */
.orders-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   Addresses Page â€” Figma Design
   ======================================== */

.address-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Address Book — plain layout matching reference */
.chg-addrbook-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.chg-addrbook-col-title {
    font-family: "Oak Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #051C36;
    margin: 0 0 12px;
}
.chg-addrbook-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}
.chg-addrbook-text span {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
}
.chg-addrbook-phone {
    color: #A16132 !important;
    font-weight: 600 !important;
    margin-top: 4px;
}
.chg-addrbook-edit {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #A16132;
    text-decoration: none;
}
.chg-addrbook-edit:hover { text-decoration: underline; }
.chg-addrbook-empty {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 12px;
}
@media (max-width: 600px) {
    .chg-addrbook-grid { grid-template-columns: 1fr; }
}

.address-card {
    border: 1px solid rgba(5, 28, 54, 0.15);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.address-card-header {
    background: #f5ede8;
    padding: 14px 20px;
    font-family: "Oak Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #A16132;
}

.address-card-body {
    padding: 0;
}

/* Address rows */
.address-rows {
    padding: 4px 0;
}

.address-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    gap: 16px;
}

.address-row:last-child {
    border-bottom: none;
}

.address-row-label {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #5A5A67;
    white-space: nowrap;
    flex-shrink: 0;
}

.address-row-value {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #051C36;
    font-weight: 500;
    text-align: right;
}

/* Inline address format */
.address-inline p {
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    color: #051C36;
    margin: 0 0 4px;
    line-height: 1.5;
}
.address-inline .address-phone {
    color: #A16132;
    font-weight: 600;
    margin-top: 8px;
}

/* Edit link */
.address-edit-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 20px;
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #A16132;
    text-decoration: none;
    border-top: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.address-edit-link:hover {
    background: #fdf8f5;
    color: #A16132;
    text-decoration: none;
}

.address-edit-link svg {
    flex-shrink: 0;
}

/* Empty state */
.address-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 36px;
    text-align: center;
    min-height: 180px;
}

.address-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #A16132;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 14px;
    transition: background 0.2s ease;
}

.address-add-btn:hover {
    background: #8a5028;
    color: #ffffff;
    text-decoration: none;
}

.address-empty-title {
    font-family: "Oak Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #A16132;
    text-decoration: none;
    margin-bottom: 6px;
    display: block;
}

.address-empty-title:hover {
    text-decoration: underline;
    color: #A16132;
}

.address-empty-desc {
    font-family: "Oak Sans", sans-serif;
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

@media (max-width: 767px) {
    .address-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Account Details Form â€” Figma Design
   ======================================== */

/* ---- Edit Address Form ---- */
.chg-address-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 48px;
}
.chg-addr-col-title {
    font-family: "Oak Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #051C36;
    margin: 0 0 10px;
}
.chg-addr-col-divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.chg-address-cols .form-row {
    margin-bottom: 16px !important;
    padding: 0 !important;
}
.chg-address-cols .form-row label {
    font-family: "Oak Sans", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    display: block !important;
    margin-bottom: 5px !important;
    float: none !important;
    width: auto !important;
}
.chg-address-cols .form-row input[type="text"],
.chg-address-cols .form-row input[type="email"],
.chg-address-cols .form-row input[type="tel"],
.chg-address-cols .form-row select {
    width: 100% !important;
    padding: 12px 16px !important;
    font-family: "Oak Sans", sans-serif !important;
    font-size: 15px !important;
    color: #051C36 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    height: auto !important;
    outline: none !important;
    transition: border-color 0.2s ease;
}
.chg-address-cols .form-row input:focus,
.chg-address-cols .form-row select:focus {
    border-color: #A16132 !important;
    box-shadow: 0 0 0 3px rgba(161, 97, 50, 0.08) !important;
}
.chg-addr-footer {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}
@media (max-width: 680px) {
    .chg-address-cols { grid-template-columns: 1fr; }
}

/* ---- Account Details Grid ---- */
.edit-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-bottom: 32px;
}

hr.chg-edit-divider {
    margin-top: 10px !important;
    margin-bottom: 28px !important;
}

.chg-edit-section p {
    display: none;
}

.edit-account-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-account-field br,
.save-info-btn br,
.save-info-icon br,
.account-edit-account br,
.order-actions-cell br,
.order-status-badge br,
.orders-pagination br {
    display: none !important;
}

.edit-account-field label,
.account-edit-account label,
.woocommerce-MyAccount-content .edit-account-form label {
    font-family: "Oak Sans", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
}

.edit-account-field input[type="text"],
.edit-account-field input[type="email"],
.edit-account-field input[type="tel"],
.edit-account-field input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-family: "Oak Sans", sans-serif;
    font-size: 15px;
    color: #051C36;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.edit-account-field input:focus {
    border-color: #A16132;
    box-shadow: 0 0 0 3px rgba(161, 97, 50, 0.08);
}

.chg-edit-select,
.account-edit-account select,
.woocommerce-MyAccount-content .edit-account-form select {
    width: 100% !important;
    padding: 12px 16px !important;
    font-family: "Oak Sans", sans-serif !important;
    font-size: 15px !important;
    color: #051C36 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    height: auto !important;
    appearance: auto;
    transition: border-color 0.2s ease;
}

.chg-edit-select:focus,
.account-edit-account select:focus {
    border-color: #A16132 !important;
    box-shadow: 0 0 0 3px rgba(161, 97, 50, 0.08) !important;
}

.chg-toggle-wrap input[type="email"],
.chg-toggle-wrap input[type="password"] {
    width: 100% !important;
    padding: 12px 16px !important;
    font-family: "Oak Sans", sans-serif !important;
    font-size: 15px !important;
    color: #051C36 !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    outline: none !important;
    box-sizing: border-box !important;
    height: auto !important;
    transition: border-color 0.2s ease;
}

.chg-toggle-wrap input[type="email"]:focus,
.chg-toggle-wrap input[type="password"]:focus {
    border-color: #A16132 !important;
    box-shadow: 0 0 0 3px rgba(161, 97, 50, 0.08) !important;
}

.edit-account-field input::placeholder {
    color: #b0b0b0;
    font-family: "Oak Sans", sans-serif;
}

/* Footer: button right-aligned */
.edit-account-footer {
    display: flex;
    justify-content: flex-end;
}

.edit-account-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* SAVE INFO button */
.save-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 28px;
    background: #051C36;
    color: #ffffff;
    font-family: "Oak Sans", sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-info-btn:hover {
    background: #0a2d52;
}

.save-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #A16132;
    color: #ffffff;
    flex-shrink: 0;
}

.forgot-password-link {
    font-family: "Oak Sans", sans-serif;
    font-size: 13px;
    color: #5A5A67;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #A16132;
    text-decoration: underline;
}

/* Hide WooCommerce default form styles inside our form */
.edit-account-form .woocommerce-form-row,
.edit-account-form fieldset {
    display: none !important;
}

@media (max-width: 600px) {
    .edit-account-grid {
        grid-template-columns: 1fr;
    }
    .edit-account-footer {
        justify-content: center;
    }
    .edit-account-actions {
        align-items: center;
        width: 100%;
    }
    .save-info-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Orders Responsive
   ======================================== */

@media (max-width: 767px) {
    .orders-table thead {
        display: none;
    }

    .orders-table tbody tr {
        display: block;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 12px;
    }

    .orders-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 4px;
        border-bottom: 1px solid #f5f5f5;
        font-size: 13px;
    }

    .orders-table tbody td:last-child {
        border-bottom: none;
        justify-content: center;
    }

    .orders-table tbody td::before {
        content: attr(data-title);
        font-weight: 600;
        font-size: 12px;
        color: #9ca3af;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        margin-right: 12px;
    }

    .order-actions-cell::before {
        display: none;
    }
}

/* =========================================
   Cart Snackbar / Notice — Top position + Brand Colors
   ========================================= */
.wc-block-components-notices__snackbar {
    top: 90px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    min-width: 320px !important;
    max-width: 600px !important;
    z-index: 99999 !important;
}

.wc-block-components-notice-snackbar {
    background-color: #051C36 !important;
    color: #ffffff !important;
    border-left: 4px solid #A16132 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(5, 28, 54, 0.25) !important;
    padding: 14px 18px !important;
    font-family: "Oak Sans", sans-serif !important;
    font-size: 14px !important;
}

.wc-block-components-notice-snackbar__content {
    color: #ffffff !important;
}

.wc-block-components-notice-snackbar a,
.wc-block-components-notice-snackbar button {
    color: #A16132 !important;
}

/* ========================================
   Additional Emails Section
   ======================================== */
.chg-additional-emails-section {
    margin-top: 28px;
}

.chg-email-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.chg-email-row-fields {
    display: flex;
    flex: 1;
    gap: 12px;
}

.chg-email-row-fields input[type="email"],
.chg-email-row-fields input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    font-family: "Oak Sans", sans-serif;
    font-size: 15px;
    color: #051C36;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    width: auto !important;
    height: auto !important;
}

.chg-email-row-fields input:focus {
    border-color: #A16132 !important;
    box-shadow: 0 0 0 3px rgba(161, 97, 50, 0.08) !important;
}

.chg-remove-email-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    color: #9ca3af;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.chg-remove-email-btn:hover {
    border-color: #A16132;
    color: #A16132;
    background: #fdf8f5;
}

#chg-add-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 0;
    background: none;
    border: none;
    color: #A16132;
    font-family: "Oak Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
}

#chg-add-email-btn:hover {
    color: #051C36;
}

@media (max-width: 600px) {
    .chg-email-row-fields {
        flex-direction: column;
        gap: 8px;
    }
}


/* ════════════════════════════════════════════════════════════════
   ── Checkout Policy Checkboxes (T&C + Refund Confirm) ──
   ════════════════════════════════════════════════════════════════ */

/* Hide WooCommerce built-in terms wrapper — we use custom ones */
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-checkout .woocommerce-privacy-policy-text {
    display: none !important;
}

/* Hide old Checkout Field Editor Pro terms checkbox — replaced by custom ones */
.thwcfd-field-checkbox {
    display: none !important;
}

.chg-policy-checkboxes {
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chg-policy-item {
    background: #fdf8f5;
    border: 1.5px solid #A16132;
    border-radius: 8px;
    padding: 14px 16px;
    transition: border-color 0.2s, background 0.2s;
}

.chg-policy-item:has(.chg-policy-check:checked) {
    background: #fff7f2;
    border-color: #051C36;
}

.chg-policy-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer;
    margin: 0 !important;
    font-family: 'Oak Sans', sans-serif !important;
    font-size: 14px !important;
    color: #051C36 !important;
    line-height: 1.55 !important;
    font-weight: 400 !important;
}

.chg-policy-check {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    accent-color: #A16132;
    margin-top: 2px !important;
    cursor: pointer;
    flex-shrink: 0;
}

.chg-policy-label a {
    color: #A16132 !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.chg-policy-label a:hover {
    color: #051C36 !important;
}

.chg-policy-label .required {
    color: #A16132;
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════════
   ── Checkout — Full-Width Notices ──
   ════════════════════════════════════════════════════════════════ */

/* Notices wrapper — full width */
body.woocommerce-checkout .woocommerce-notices-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Notice elements — full width (covers both inside and outside wrapper) */
body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout ul.woocommerce-error,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout ul.woocommerce-message,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout ul.woocommerce-info {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 12px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
}

/* Also target the .woocommerce wrapper itself on checkout */
body.woocommerce-checkout .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ════════════════════════════════════════════════════════════════
   ── Premium Search Popup — Safari Pagination Fix ──
   ════════════════════════════════════════════════════════════════ */

/* Fix: posts-wrap overflow-y:scroll without height clips pagination in Safari */
.premium-search__posts-wrap {
    overflow-y: visible !important;
    max-height: 60vh;
    overflow-y: auto !important;
}

/* Ensure query-wrap doesn't clip pagination */
.premium-search__query-wrap {
    overflow: visible !important;
}

/* Pagination footer always visible */
.premium-search__footer {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
    clear: both !important;
    width: 100% !important;
}

.premium-search-form__pagination-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ════════════════════════════════════════════════════════════════
   ── My Account — View Order Page Fixes ──
   ════════════════════════════════════════════════════════════════ */

/* Fix: links inside order details table — all:unset strips color */
.woocommerce-MyAccount-content table.shop_table a,
.woocommerce-MyAccount-content table.shop_table td a,
.woocommerce-MyAccount-content .woocommerce-table a {
    color: #051C36 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.woocommerce-MyAccount-content table.shop_table a:hover,
.woocommerce-MyAccount-content table.shop_table td a:hover {
    color: #A16132 !important;
    text-decoration: underline !important;
}

/* Fix: table headings (Product, Total, etc.) — left align */
.woocommerce-MyAccount-content table.shop_table th,
.woocommerce-MyAccount-content table.shop_table thead th,
.woocommerce-MyAccount-content .woocommerce-table th {
    text-align: left !important;
}

/* Fix: page headings on view-order (Order details, Billing address, etc.) — left align */
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-MyAccount-content .woocommerce-column__title {
    text-align: left !important;
}

/* Fix: tfoot rows in order details table */
.woocommerce-MyAccount-content table.shop_table tfoot th,
.woocommerce-MyAccount-content table.shop_table tfoot td {
    text-align: left !important;
    color: #051C36 !important;
}

/* Fix: addresses section links */
.woocommerce-MyAccount-content address a,
.woocommerce-MyAccount-content .woocommerce-customer-details a {
    color: #051C36 !important;
    text-decoration: none !important;
}
.woocommerce-MyAccount-content address a:hover {
    color: #A16132 !important;
}

/* Safari-specific: force layout recalc */
@supports (-webkit-appearance: none) {
    .premium-search__query-wrap {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}
