/**
 * WSMS Auth Theme Styles
 *
 * A modern, refined customer dashboard experience.
 */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Primary Colors - Warm Orange Palette */
    --color-primary: #EA580C;
    --color-primary-hover: #C2410C;
    --color-primary-dark: #9A3412;
    --color-primary-light: #FFF7ED;
    --color-primary-100: #FFEDD5;
    --color-primary-50: #FEF3E8;

    /* Status Colors */
    --color-success: #137840;
    --color-success-light: #D1FAE5;
    --color-error: #DC2626;
    --color-error-light: #FEE2E2;
    --color-warning: #D97706;
    --color-warning-light: #FEF3C7;
    --color-info: #2563EB;
    --color-info-light: #DBEAFE;

    /* Text Colors */
    --color-text: #121926;
    --color-text-light: #525357;
    --color-text-muted: #898A8E;

    /* Background & Border Colors */
    --color-border: #E5E7EB;
    --color-border-dark: #D1D5DB;
    --color-bg: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-bg-dark: #F3F4F6;
    --color-bg-warm: #FFFBF7;

    /* Typography - DM Sans for headings, Roboto for body */
    --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
    --container-dashboard: 1200px;
    --header-height: 72px;

    /* Effects */
    --transition: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   2. Font Face
   ========================================================================== */

/* DM Sans - Display Font */
@font-face {
    font-display: swap;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    src: url('https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriCZa4ET-DNl0.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 600;
    src: url('https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriCZa4ET-DNl0.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    src: url('https://fonts.gstatic.com/s/dmsans/v15/rP2tp2ywxg089UriCZa4ET-DNl0.woff2') format('woff2');
}

/* Roboto - Body Font */
@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/roboto-v47-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/roboto-v47-latin-500.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/roboto-v47-latin-600.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/roboto-v47-latin-700.woff2') format('woff2');
}

/* ==========================================================================
   3. Reset & Base
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: #111827;
    background-color: #f9fafb;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: #111827;
}

h1 { font-size: var(--font-size-3xl); font-weight: 700; }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: #ea580c;
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: #c2410c;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding: 2rem 1rem;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.content-area {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

/* ==========================================================================
   5. Header
   ========================================================================== */

.site-header {
    background: #111827;
    border-bottom: 3px solid #EB6A26;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__branding a {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.site-header__branding a:hover {
    opacity: 0.85;
}

.site-header__branding img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-header__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.site-header__back-link:hover {
    color: #fff;
    background: #EB6A26;
    border-color: #EB6A26;
    transform: translateX(-2px);
}

.site-header__back-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.site-header__back-link:hover svg {
    transform: translateX(-3px);
}

/* Checkout Header - Secure indicator */
.site-header__secure {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 500;
}

.site-header__secure svg {
    width: 16px;
    height: 16px;
    color: #22c55e;
}

/* Checkout Header - Centered logo */
.site-header--checkout .site-header__container {
    justify-content: center;
}

.site-header--checkout .site-header__branding {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.site-header--checkout .site-header__secure {
    position: absolute;
    right: 1.5rem;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */

.site-footer {
    background: #111827;
    border-top: 3px solid #EB6A26;
    padding: 3.5rem 0 2rem;
}

.site-footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
}

/* Big Logo */
.site-footer__brand {
    margin-bottom: 0.5rem;
}

.site-footer__logo {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.site-footer__logo:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.site-footer__logo img {
    height: 48px;
    width: auto;
}

/* Heart Message */
.site-footer__heart {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.site-footer__heart-icon {
    color: #EB6A26;
    font-size: 1.125rem;
    display: inline-block;
}

/* Navigation Menu */
.site-footer__nav {
    padding-top: 0.5rem;
}

.site-footer__menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__menu a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.375rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.site-footer__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #EB6A26;
    transition: width 0.25s ease;
}

.site-footer__menu a:hover {
    color: #fff;
}

.site-footer__menu a:hover::after {
    width: 100%;
}

/* Copyright */
.site-footer__copyright {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

/* Checkout Footer - Simplified minimal footer */
.site-footer--checkout {
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__container--checkout {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
}

.site-footer--checkout .site-footer__copyright {
    padding-top: 0;
    border-top: none;
    width: auto;
    font-size: 0.75rem;
}

.site-footer__nav--checkout {
    padding-top: 0;
}

.site-footer__menu--checkout {
    gap: 1rem;
}

.site-footer__menu--checkout a {
    font-size: 0.75rem;
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.button,
.woocommerce-button,
.woocommerce-Button,
button[type="submit"],
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: var(--line-height-normal);
    color: white;
    background-color: #ea580c;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.button:hover,
.woocommerce-button:hover,
.woocommerce-Button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #c2410c;
    color: white;
}

.button--secondary {
    background-color: white;
    color: #111827;
    border: 1px solid #d1d5db;
}

.button--secondary:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.button.alt,
.woocommerce-button.alt {
    background-color: #ea580c;
}

/* ==========================================================================
   8. Forms
   ========================================================================== */

.woocommerce-form,
.woocommerce-EditAccountForm,
.woocommerce-ResetPassword {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.woocommerce-form-row,
.form-row {
    margin-bottom: 1rem;
}

.woocommerce-form-row label,
.form-row label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.woocommerce-Input,
.input-text,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: #111827;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.woocommerce-Input:focus,
.input-text:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.required {
    color: #ef4444;
}

/* Checkbox & Radio */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.25rem;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* ==========================================================================
   9. WooCommerce Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-notice {
    position: relative;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Hide the default WooCommerce icon that overlaps text */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
}

.woocommerce-message,
.woocommerce-message--success {
    background-color: var(--color-success-light);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.woocommerce-info,
.woocommerce-message--info {
    background-color: var(--color-info-light);
    color: var(--color-info);
    border-left: 4px solid var(--color-info);
}

.woocommerce-error {
    background-color: #fef2f2;
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.woocommerce-error li {
    list-style: none;
}

/* Notice button styling */
.woocommerce-message a.button,
.woocommerce-info a.button {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: white;
    color: #111827;
    border: 1px solid #d1d5db;
}

.woocommerce-message a.button:hover,
.woocommerce-info a.button:hover {
    background: #f3f4f6;
}

/* ==========================================================================
   10. Tables
   ========================================================================== */

.shop_table,
.woocommerce-orders-table,
.woocommerce-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.shop_table th,
.woocommerce-orders-table th,
.woocommerce-table th {
    background: #f3f4f6;
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
}

.shop_table td,
.woocommerce-orders-table td,
.woocommerce-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.shop_table tbody tr:last-child td,
.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.shop_table tfoot th,
.shop_table tfoot td {
    background: #f9fafb;
}

/* ==========================================================================
   11. My Account
   ========================================================================== */

.woocommerce-account .woocommerce {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }

    .woocommerce-MyAccount-navigation {
        grid-column: auto;
        grid-row: auto;
        display: none;
    }

    .woocommerce-MyAccount-navigation.is-open {
        display: block;
    }

    .woocommerce-MyAccount-content {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ==========================================================================
   Account Navigation - Dark Theme Sidebar
   ========================================================================== */

.woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    background: #111827;
    border-radius: 0.5rem;
    padding: 0.5rem;
    border: none;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 2px;
}

.woocommerce-MyAccount-navigation li:last-child {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.woocommerce-MyAccount-navigation li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.woocommerce-MyAccount-navigation li a svg {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.woocommerce-MyAccount-navigation li a:hover svg {
    color: rgba(255, 255, 255, 0.9);
}

.woocommerce-MyAccount-navigation li a[href*="customer-logout"]:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.woocommerce-MyAccount-navigation li a[href*="customer-logout"]:hover svg {
    color: #fca5a5;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background: rgba(234, 88, 12, 0.15);
    color: #fb923c;
    font-weight: 600;
}

.woocommerce-MyAccount-navigation li.is-active a svg {
    color: #fb923c;
}

/* Navigation Icons */
.c-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.c-nav-icon svg {
    width: 18px;
    height: 18px;
}

.c-nav-label {
    flex: 1;
}

/* Account Content */
.woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    grid-column: 2;
    grid-row: 1;
    background: #fff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Sidebar Help Section - Dark Theme */
.wsms-sidebar-help {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.375rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wsms-sidebar-help__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.375rem;
    letter-spacing: 0.02em;
}

.wsms-sidebar-help__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.wsms-sidebar-help__link:hover {
    color: #fb923c;
}

.wsms-sidebar-help__link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.wsms-sidebar-help__link:hover svg {
    transform: translateX(2px);
}

/* Primary link variant - bolder, orange */
.wsms-sidebar-help__link--primary {
    color: #fb923c;
    font-weight: 600;
    margin-top: 0.25rem;
}

.wsms-sidebar-help__link--primary:hover {
    color: #f97316;
}

/* Mobile Navigation Toggle - Dark Theme */
.js-account-nav-toggle {
    background: #111827;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.js-account-nav-toggle svg {
    color: rgba(255, 255, 255, 0.5);
}

.c-account-nav-toggle {
    display: none;
    width: 100%;
    padding: 0.875rem 1rem;
    background: #111827;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.c-account-nav-toggle svg {
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .c-account-nav-toggle {
        display: flex;
    }
}

/* ==========================================================================
   12. Login Page
   ========================================================================== */

/* Hide default page elements on login for full-screen experience */
.woocommerce-account:not(.logged-in) .site-header,
.woocommerce-account:not(.logged-in) .site-footer,
.woocommerce-account:not(.logged-in) .entry-header,
.woocommerce-account:not(.logged-in) h1.entry-title,
.woocommerce-account:not(.logged-in) .site-main > .container > .content-area > article > .entry-content > h1:first-child {
    display: none;
}

.woocommerce-account:not(.logged-in) .site-main {
    padding: 0;
}

.woocommerce-account:not(.logged-in) .container {
    max-width: 100%;
    padding: 0;
}

.woocommerce-account:not(.logged-in) .content-area {
    max-width: 100%;
}

.woocommerce-account:not(.logged-in) .entry-content {
    margin: 0;
    padding: 0;
}

.woocommerce-account:not(.logged-in) article {
    margin: 0;
    padding: 0;
}

/* Override woocommerce grid for login page */
.woocommerce-account:not(.logged-in) .woocommerce {
    display: block;
    max-width: 100%;
    padding: 0;
}

/* Login Page Layout */
.c-login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 50%, #FEF3E8 100%);
}

/* Logo above card */
.c-login-page__logo {
    display: block;
    margin-bottom: 24px;
    transition: opacity 0.2s ease;
}

.c-login-page__logo:hover {
    opacity: 0.8;
}

.c-login-page__logo img {
    width: 100px;
    height: auto;
}

/* Login Card */
.c-login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-2xl);
}

.c-login-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.c-login-card__title {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem;
}

.c-login-card__subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Login Form */
.c-login-form {
    margin: 0;
}

.c-login-form, .c-register-form{
    border:none!important;
    padding:0!important;
    box-shadow:none!important;
}

.c-login-form__field {
    margin-bottom: 1rem;
}

.c-login-form__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.c-login-form__input {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--font-size-base);
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.c-login-form__input:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(255, 119, 48, 0.1);
}

.c-login-form__input::placeholder {
    color: var(--color-text-muted);
}

/* Options row */
.c-login-form__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.c-login-form__checkbox {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.c-login-form__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ea580c;
}

.c-login-form__forgot {
    font-size: 0.875rem;
    color: #ea580c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.c-login-form__forgot:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* Submit button */
.c-login-form__submit {
    width: 100%;
    padding: 14px 24px;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #fff;
    background: #ea580c;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.c-login-form__submit:hover {
    background: var(--color-primary-dark);
}

.c-login-form__submit:active {
    transform: scale(0.98);
}

/* Card footer */
.c-login-card__footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.c-login-card__footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.c-login-card__link {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
}

.c-login-card__link:hover {
    text-decoration: underline;
}

/* Page footer */
.c-login-page__footer {
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.c-login-page__footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin: 0 0 0.5rem;
}

.c-login-page__links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.c-login-page__links a {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-decoration: none;
}

.c-login-page__links a:hover {
    color: #ea580c;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .c-login-page {
        padding: 1rem;
    }

    .c-login-card {
        padding: 2rem;
    }

    .c-login-form__options {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   13. Dashboard - Enhanced Customer Portal
   ========================================================================== */
.c-dashboard {
    max-width: var(--container-dashboard);
    margin: 0 auto;
}

/* Dashboard Header */
.c-dashboard__header {
    margin-bottom: var(--spacing-2xl);
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.c-dashboard__greeting {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.c-dashboard__title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #111827 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.c-dashboard__subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0;
}

.c-dashboard__subtitle a {
    color: #ea580c;
    font-weight: 500;
}

/* Dashboard Quick Actions Grid */
.c-dashboard__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .c-dashboard__actions {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .c-dashboard__actions {
        grid-template-columns: 1fr;
    }
}

/* Action Card */
.c-action-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.c-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ea580c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.c-action-card:hover {
    border-color: var(--color-primary-100);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.c-action-card:hover::before {
    transform: scaleX(1);
}

.c-action-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    color: #ea580c;
    transition: all var(--transition-smooth);
}

.c-action-card:hover .c-action-card__icon {
    background: #ea580c;
    color: white;
    transform: scale(1.05);
}

.c-action-card__icon svg {
    width: 24px;
    height: 24px;
}

.c-action-card__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.c-action-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.625;
}

.c-action-card__arrow {
    margin-top: auto;
    padding-top: 1.5rem;
    color: #ea580c;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-smooth);
}

.c-action-card:hover .c-action-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Stats Section */
.c-dashboard__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .c-dashboard__stats {
        grid-template-columns: 1fr;
    }
}

.c-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-stat-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.c-stat-card__icon--subscriptions {
    background: var(--color-success-light);
    color: var(--color-success);
}

.c-stat-card__icon--orders {
    background: var(--color-info-light);
    color: var(--color-info);
}

.c-stat-card__icon--downloads {
    background: var(--color-primary-light);
    color: #ea580c;
}

.c-stat-card__content {
    flex: 1;
    min-width: 0;
}

.c-stat-card__value {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.c-stat-card__label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Section Headers */
.c-dashboard__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.c-dashboard__section-title {
    font-size: 1.25rem;
    margin: 0;
}

.c-dashboard__section-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.c-dashboard__section-link:hover {
    color: #c2410c;
}

/* Legacy Dashboard Styles */
.c-dashboard__welcome {
    margin-bottom: 1rem;
}

.c-dashboard__intro {
    color: #6b7280;
    margin-bottom: 2rem;
}

.c-dashboard__orders-title {
    margin-top: 2rem;
}

/* Dashboard Page Headers */
.c-dashboard-page {
    margin-bottom: 2rem;
}

.c-dashboard-page__title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.c-dashboard-page__desc {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: var(--font-size-base);
    line-height: 1.625;
}

/* Addresses Grid */
.woocommerce-Addresses.col2-set {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .woocommerce-Addresses.col2-set {
        grid-template-columns: 1fr;
    }
}

.woocommerce-Address {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 1.125rem;
}

.woocommerce-Address-title .edit {
    font-size: 0.875rem;
    font-weight: 500;
}

.woocommerce-Address address {
    font-style: normal;
    color: #6b7280;
    line-height: 1.625;
}

/* Subscription Status Badges */
.order-status--active,
.woocommerce-orders-table__row--status-active .subscription-status {
    color: var(--color-success);
}

.order-status--on-hold,
.woocommerce-orders-table__row--status-on-hold .subscription-status {
    color: var(--color-warning);
}

.order-status--cancelled,
.order-status--expired,
.woocommerce-orders-table__row--status-cancelled .subscription-status,
.woocommerce-orders-table__row--status-expired .subscription-status {
    color: #ef4444;
}

.order-status--pending,
.woocommerce-orders-table__row--status-pending .subscription-status {
    color: var(--color-info);
}

/* ==========================================================================
   12. Login & Register
   ========================================================================== */

#customer_login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #customer_login {
        grid-template-columns: 1fr;
    }
}

.c-login-form,
.c-register-form {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.c-account-page__desc {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.form-row-login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.woocommerce-LostPassword {
    margin-top: 1rem;
}

.c-account-page__back-to-login {
    display: block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.c-account-page__back-to-login:hover {
    border-color: #ea580c;
    color: #ea580c;
}

/* ==========================================================================
   13. Checkout
   ========================================================================== */

/* Main checkout wrapper */
.wsms-checkout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Checkout Notices */
.wsms-checkout .woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

.wsms-checkout .woocommerce-message,
.wsms-checkout .woocommerce-info,
.wsms-checkout .woocommerce-error {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    border-left: none;
    display: block;
}

.wsms-checkout .woocommerce-message::before,
.wsms-checkout .woocommerce-info::before,
.wsms-checkout .woocommerce-error::before {
    display: none;
}

.wsms-checkout .woocommerce-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.wsms-checkout .woocommerce-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.wsms-checkout .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wsms-checkout .woocommerce-error li {
    list-style: none;
    margin: 0;
}

/* Coupon Toggle */
.wsms-checkout .woocommerce-form-coupon-toggle {
    margin-bottom: 1.5rem;
}

.wsms-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #374151;
    padding: 0.875rem 1rem;
}

.wsms-checkout .woocommerce-form-coupon-toggle .showcoupon {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
}

.wsms-checkout .woocommerce-form-coupon-toggle .showcoupon:hover {
    text-decoration: underline;
}

/* Coupon Form */
.wsms-checkout .checkout_coupon {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.wsms-checkout .checkout_coupon p:first-child {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.wsms-checkout .checkout_coupon .form-row {
    display: flex;
    gap: 0.75rem;
    margin: 0;
}

.wsms-checkout .checkout_coupon input[type="text"] {
    flex: 1;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.wsms-checkout .checkout_coupon .button {
    padding: 0.625rem 1.25rem;
    background: #374151;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.wsms-checkout .checkout_coupon .button:hover {
    background: #1f2937;
}

/* Two-column layout */
.checkout-columns {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1.5rem;
}

/* Checkout cards */
.checkout-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.checkout-order-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Order Review Table */
.wsms-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.wsms-checkout .woocommerce-checkout-review-order-table thead th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 0 0 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.wsms-checkout .woocommerce-checkout-review-order-table thead th:last-child {
    text-align: right;
}

.wsms-checkout .woocommerce-checkout-review-order-table tbody td,
.wsms-checkout .woocommerce-checkout-review-order-table tfoot td,
.wsms-checkout .woocommerce-checkout-review-order-table tfoot th {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.wsms-checkout .woocommerce-checkout-review-order-table .product-name {
    color: #374151;
}

.wsms-checkout .woocommerce-checkout-review-order-table .product-total,
.wsms-checkout .woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
    font-weight: 500;
    color: #111827;
}

.wsms-checkout .woocommerce-checkout-review-order-table tfoot th {
    font-weight: 500;
    color: #6b7280;
}

.wsms-checkout .woocommerce-checkout-review-order-table .order-total th,
.wsms-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    padding-top: 1rem;
    border-bottom: none;
}

.wsms-checkout .woocommerce-checkout-review-order-table .cart-discount td {
    color: #16a34a;
}

/* Refund note */
.checkout-refund-note {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
}

.checkout-refund-note a {
    color: #ea580c;
    font-weight: 500;
}

/* Trust Badges */
.checkout-trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
}

.checkout-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
}

.checkout-trust-badge svg {
    width: 18px;
    height: 18px;
    color: #9ca3af;
}

.checkout-trust-badge span {
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Guarantee Box */
.checkout-guarantee {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.checkout-guarantee__icon {
    flex-shrink: 0;
}

.checkout-guarantee__icon svg {
    width: 22px;
    height: 22px;
    color: #16a34a;
}

.checkout-guarantee__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #166534;
    margin: 0 0 0.125rem;
}

.checkout-guarantee__desc {
    font-size: 0.75rem;
    color: #15803d;
    line-height: 1.5;
    margin: 0;
}

.checkout-guarantee__desc strong {
    font-weight: 600;
}

/* Payment Section */
.wsms-checkout #payment {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
}

.wsms-checkout #payment::before {
    content: 'Payment Method';
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.875rem;
}

.wsms-checkout .wc_payment_methods {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.wsms-checkout .wc_payment_method {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    background: white;
    transition: border-color 0.15s ease;
}

.wsms-checkout .wc_payment_method:hover {
    border-color: #d1d5db;
}

.wsms-checkout .wc_payment_method:has(input:checked) {
    border-color: #ea580c;
    background: #fffbf7;
}

.wsms-checkout .wc_payment_method > label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.875rem;
    margin: 0;
    color: #374151;
}

.wsms-checkout .wc_payment_method input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #ea580c;
}

.wsms-checkout .wc_payment_method > label img {
    max-height: 20px;
    width: auto;
    margin-left: auto;
}

.wsms-checkout .payment_box {
    margin-top: 0.75rem;
    padding: 0.875rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.5;
}

.wsms-checkout .payment_box p {
    margin: 0;
}

.wsms-checkout .payment_box fieldset {
    border: none;
    margin: 0;
    padding: 0;
}

/* Terms & Privacy */
.wsms-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 1rem 0;
}

.wsms-checkout .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1.4;
}

.wsms-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: #ea580c;
    flex-shrink: 0;
}

.wsms-checkout .woocommerce-terms-and-conditions-link {
    color: #ea580c;
    font-weight: 500;
}

.wsms-checkout .woocommerce-privacy-policy-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.wsms-checkout .woocommerce-privacy-policy-text a {
    color: #ea580c;
}

/* Hide Return to Cart button */
.wsms-checkout .woocommerce-button--previous,
.wsms-checkout a.button[href*="cart"] {
    display: none !important;
}

/* Place Order Button */
.wsms-checkout #place_order {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #ea580c;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

.wsms-checkout #place_order:hover {
    background: #c2410c;
}

.wsms-checkout #place_order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Stripe Elements */
.wsms-checkout .wc-stripe-elements-field,
.wsms-checkout .wc-stripe-iban-element-field {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    transition: border-color 0.15s ease;
}

.wsms-checkout .wc-stripe-elements-field:focus-within {
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .checkout-columns {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
        order: -1;
    }
}

@media (max-width: 640px) {
    .wsms-checkout {
        padding: 1rem;
    }

    .checkout-card {
        padding: 1.25rem;
    }

    .checkout-trust-badges {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .checkout-guarantee {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .wsms-checkout .checkout_coupon .form-row {
        flex-direction: column;
    }

    .wsms-checkout .checkout_coupon .button {
        width: 100%;
    }
}

/* ==========================================================================
   13b. WooCommerce Blocks Checkout
   ========================================================================== */

/* CRITICAL: Override parent container width constraints for checkout */
.woocommerce-checkout .content-area,
.woocommerce-checkout .container,
.woocommerce-checkout .site-main {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.woocommerce-checkout .entry-content {
    max-width: none !important;
    width: 100% !important;
}

/* Hide default page title */
.woocommerce-checkout .entry-header,
.woocommerce-checkout .page-title {
    display: none !important;
}

/* Main checkout wrapper */
.wp-block-woocommerce-checkout {
    max-width: 1140px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: var(--spacing-2xl) var(--spacing-xl) !important;
    background: var(--color-bg-light) !important;
    min-height: calc(100vh - 200px);
}

/* Main checkout layout - Two-column grid */
.wc-block-components-sidebar-layout.wc-block-checkout {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: var(--spacing-2xl) !important;
    align-items: start !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Left column - Form fields */
.wc-block-components-main.wc-block-checkout__main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Right column - Sidebar */
.wc-block-components-sidebar.wc-block-checkout__sidebar {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 380px !important;
    flex-shrink: 0 !important;
}

/* Checkout sidebar container */
.wc-block-checkout__sidebar {
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: var(--spacing-lg) !important;
    position: sticky !important;
    top: var(--spacing-xl) !important;
    overflow: visible !important;
}

/* Checkout steps - Card styling */
.wc-block-components-checkout-step {
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius-lg) !important;
    padding: var(--spacing-lg) !important;
    margin-bottom: var(--spacing-md) !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Section headings in fields */
.wc-block-components-checkout-step__heading {
    display: flex !important;
    align-items: center !important;
    gap: var(--spacing-sm) !important;
    font-family: var(--font-display) !important;
    font-size: var(--font-size-lg) !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    margin: 0 0 var(--spacing-xs) !important;
}

.wc-block-components-checkout-step__heading::before {
    content: '' !important;
    display: block !important;
    width: 4px !important;
    height: 1.25rem !important;
    background: var(--color-primary) !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
}

.wc-block-components-checkout-step__title {
    font-family: var(--font-display) !important;
    font-size: var(--font-size-lg) !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
}

.wc-block-components-checkout-step__description {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-sm) !important;
    color: var(--color-text-light) !important;
    margin-top: var(--spacing-xs) !important;
    margin-bottom: var(--spacing-lg) !important;
    line-height: var(--line-height-normal) !important;
    padding-left: 1rem !important;
}

/* Form field containers - ensure full width */
.wc-block-components-address-form,
.wc-block-components-address-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure all form rows expand */
.wc-block-checkout__main .wc-block-components-address-form__address-wrapper,
.wc-block-checkout__main .wc-block-components-text-input,
.wc-block-checkout__main .wc-block-components-combobox {
    width: 100% !important;
    max-width: 100% !important;
}

/* Text inputs */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-text-input textarea {
    width: 100% !important;
    max-width: 100% !important;
    font-family: var(--font-family) !important;
    font-size: var(--font-size-base) !important;
    color: var(--color-text) !important;
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius) !important;
    transition: var(--transition) !important;
    box-sizing: border-box !important;
}

.wc-block-components-text-input input:hover,
.wc-block-components-text-input textarea:hover,
.wc-blocks-components-select select:hover,
.wc-block-components-textarea:hover {
    border-color: var(--color-border-dark) !important;
}

.wc-block-components-text-input input:focus,
.wc-block-components-text-input textarea:focus,
.wc-blocks-components-select select:focus,
.wc-block-components-textarea:focus{
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1) !important;
}

/* Select dropdowns */
.wc-block-components-textarea,
.wc-blocks-components-select .wc-blocks-components-select__select {
    border-color: #e5e7eb;
}

/* Labels */
.wc-block-components-text-input label {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-xs) !important;
    font-weight: 500 !important;
    color: var(--color-text-light) !important;
    margin-bottom: var(--spacing-xs) !important;
}

/* Country/State selector */
.wc-block-components-combobox .wc-block-components-combobox-control input {
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius) !important;
    font-family: var(--font-family) !important;
    font-size: var(--font-size-base) !important;
    background: var(--color-bg) !important;
    width: 100% !important;
}

.wc-block-components-combobox .wc-block-components-combobox-control input:focus {
    outline: none !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1) !important;
}

/* ==========================================
   ORDER SUMMARY SIDEBAR
   ========================================== */

/* Order Summary heading */
.wc-block-components-order-summary {
    margin-bottom: var(--spacing-md) !important;
}

.wc-block-components-order-summary h2,
.wc-block-components-order-summary__button {
    font-family: var(--font-display) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    margin: 0 0 var(--spacing-sm) !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
}

/* Order items container */
.wc-block-components-order-summary__content {
    margin-bottom: var(--spacing-md) !important;
}

/* Individual order item */
.wc-block-components-order-summary-item {
    display: grid !important;
    grid-template-columns: 48px 1fr auto !important;
    gap: var(--spacing-sm) !important;
    padding: var(--spacing-sm) 0 !important;
    border-bottom: none !important;
    align-items: start !important;
}

.wc-block-components-order-summary-item:not(:last-child) {
    margin-bottom: var(--spacing-sm) !important;
    padding-bottom: var(--spacing-sm) !important;
    border-bottom: 1px solid var(--color-border) !important;
}

/* Product image */
.wc-block-components-order-summary-item__image {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: var(--border-radius) !important;
    overflow: hidden !important;
    background: var(--color-bg-light) !important;
    border: 1px solid var(--color-border) !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.wc-block-components-order-summary-item__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Product details container */
.wc-block-components-order-summary-item__description {
    min-width: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

/* Product name */
.wc-block-components-product-name {
    font-family: var(--font-family) !important;
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    line-height: var(--line-height-tight) !important;
    margin: 0 !important;
    word-wrap: break-word !important;
}

/* Product price - third column */
.wc-block-components-order-summary-item__total-price {
    font-size: var(--font-size-sm) !important;
    font-weight: 600 !important;
    color: var(--color-text) !important;
    text-align: right !important;
    white-space: nowrap !important;
    padding-left: var(--spacing-sm) !important;
}

.wc-block-components-order-summary-item__individual-price {
    font-size: var(--font-size-xs) !important;
    color: var(--color-text-muted) !important;
}

/* Quantity badge */
.wc-block-components-order-summary-item__quantity {
    /*background: var(--color-primary) !important;*/
    color: white !important;
    font-size: 0.625rem !important;
    font-weight: 700 !important;
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    border-radius: 9px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
}

/* Product variations/metadata */
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-product-metadata {
    font-size: var(--font-size-xs) !important;
    color: var(--color-text-muted) !important;
    margin-top: 2px !important;
}

.wc-block-components-product-metadata__description {
    color: var(--color-info) !important;
    font-weight: 500 !important;
}

/* ==========================================
   TOTALS SECTION
   ========================================== */

.wc-block-components-totals-wrapper {
    border-top: none !important;
    padding-top: var(--spacing-sm) !important;
    margin-top: 0 !important;
}

.wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: var(--spacing-sm) 0 !important;
    font-family: var(--font-family) !important;
    font-size: var(--font-size-sm) !important;
}

.wc-block-components-totals-item__label {
    color: var(--color-text-light) !important;
    font-weight: 400 !important;
}

.wc-block-components-totals-item__value {
    font-weight: 600 !important;
    color: var(--color-text) !important;
}

/* Grand total - Clean divider style */
.wc-block-components-totals-footer-item {
    background: transparent !important;
    margin: 0 !important;
    padding: var(--spacing-md) 0 var(--spacing-sm) !important;
    border-radius: 0 !important;
    border-top: 2px solid var(--color-text) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item {
    padding: 0 !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: var(--font-display) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-family: var(--font-display) !important;
    font-size: var(--font-size-xl) !important;
    font-weight: 700 !important;
    color: var(--color-primary) !important;
}

/* Subscription/Recurring totals */
.wc-block-components-totals-subscription {
    background: transparent !important;
    border-radius: 0 !important;
    padding: var(--spacing-sm) 0 !important;
    margin-top: 0 !important;
    font-size: var(--font-size-sm) !important;
    border: none !important;
    border-left: 3px solid var(--color-primary) !important;
    padding-left: var(--spacing-sm) !important;
}

.wc-block-components-totals-subscription__label {
    font-weight: 500 !important;
    color: var(--color-text-light) !important;
}

.wc-block-components-totals-subscription__value {
    font-weight: 600 !important;
    color: var(--color-text) !important;
}

/* ==========================================
   PAYMENT METHODS
   ========================================== */

.wc-block-components-radio-control {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-block-components-radio-control__option {
    /*padding: 1rem;*/
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wc-block-components-radio-control__option:hover {
    border-color: #cbd5e1;
}

.wc-block-components-radio-control__option--checked {
    border-color: #ea580c;
    background: #fffbf7;
}

.wc-block-components-radio-control__input {
    accent-color: #ea580c;
}

.wc-block-components-payment-method-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.wc-block-components-payment-method-icons {
    margin-left: auto;
}

.wc-block-components-payment-method-icons img {
    max-height: 24px;
    width: auto;
}

/* Payment box description */
.wc-block-components-radio-control-accordion-content {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.wc-block-components-radio-control-accordion-option.wc-block-components-radio-control-accordion-option--checked-option-highlighted {
    box-shadow: none;
}

div#radio-control-wc-payment-method-options-stripe__content {
    border-radius: 0;
}

.wc-block-components-radio-control--highlight-checked.wc-block-components-radio-control--highlight-checked--last-selected::after {
    border-bottom: 1px solid #e6e6e6;
}

label.wc-block-components-radio-control__option.wc-block-components-radio-control__option-checked {
    border-top: 1px solid #e2e4e6 !important;
}

/* ==========================================
   PLACE ORDER BUTTON
   ========================================== */

/* Hide Return to Cart button in WooCommerce Blocks */
.wp-block-woocommerce-checkout-actions-block a[href*="cart"],
.wc-block-components-checkout-return-to-cart-button {
    display: none !important;
}

.wc-block-components-checkout-place-order-button,
.wp-block-woocommerce-checkout-actions-block button {
    width: 100% !important;
    padding: var(--spacing-md) var(--spacing-lg) !important;
    background: var(--color-primary) !important;
    color: white !important;
    font-family: var(--font-display) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
}

.wc-block-components-checkout-place-order-button:hover,
.wp-block-woocommerce-checkout-actions-block button:hover {
    background: var(--color-primary-hover) !important;
}

.wc-block-components-checkout-place-order-button:active,
.wp-block-woocommerce-checkout-actions-block button:active {
    background: var(--color-primary-dark) !important;
}

.wc-block-components-checkout-place-order-button:disabled {
    background: var(--color-border-dark) !important;
    cursor: not-allowed !important;
}

/* ==========================================
   TERMS AND PRIVACY
   ========================================== */

.wc-block-checkout__terms,
.wp-block-woocommerce-checkout-terms-block {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: center;
}

.wc-block-checkout__terms a,
.wp-block-woocommerce-checkout-terms-block a {
    color: #ea580c;
    font-weight: 500;
}

/* ==========================================
   CHECKBOX STYLING
   ========================================== */

.wc-block-components-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.wc-block-components-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #ea580c;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.wc-block-components-checkbox__label {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
}

/* ==========================================
   NOTICES
   ========================================== */

.wc-block-components-notice-banner {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wc-block-components-notice-banner.is-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.wc-block-components-notice-banner.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.wc-block-components-notice-banner.is-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.wc-block-components-notice-banner.is-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.wp-block-woocommerce-checkout-order-summary-block {
    border: none !important;
    border-radius: 0 !important;
}

/* ==========================================
   COUPON SECTION
   ========================================== */

.wc-block-components-totals-coupon {
    padding: 0.75rem 0;
    border-bottom: none;
}

.wc-block-components-totals-coupon__button {
    color: #ea580c;
    font-weight: 500;
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.wc-block-components-totals-coupon__button:hover {
    text-decoration: underline;
}

.wc-block-components-totals-coupon__form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.wc-block-components-totals-coupon__form input {
    flex: 1;
    padding: 0.625rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.wc-block-components-totals-coupon__form input:focus {
    outline: none;
    border-color: #ea580c;
}

.wc-block-components-totals-coupon__form button {
    padding: 0.625rem 1rem;
    background: #374151;
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.wc-block-components-totals-coupon__form button:hover {
    background: #1f2937;
}

/* ==========================================
   EXPRESS PAYMENT
   ========================================== */

.wc-block-components-express-payment {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.wc-block-components-express-payment__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.75rem;
    text-align: center;
}

/* ==========================================
   VALIDATION & LOADING
   ========================================== */

.wc-block-components-spinner {
    border-color: #ea580c;
    border-top-color: transparent;
}

.wc-block-components-text-input.has-error input {
    border-color: #ef4444;
}

.wc-block-components-validation-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* ==========================================
   CHECKOUT TRUST BADGES
   ========================================== */

/* Remove old sidebar pseudo-element */
.wc-block-checkout__sidebar::after {
    display: none !important;
}

/* Trust badges container */
.wsms-checkout-trust {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
}

/* Money Back Guarantee */
.wsms-checkout-trust__guarantee {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.wsms-checkout-trust__icon {
    flex-shrink: 0;
    color: #16a34a;
}

.wsms-checkout-trust__icon svg {
    width: 32px;
    height: 32px;
}

.wsms-checkout-trust__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wsms-checkout-trust__content strong {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #166534;
}

.wsms-checkout-trust__content span {
    font-size: var(--font-size-xs);
    color: #15803d;
    line-height: 1.4;
}

/* Trust badges row */
.wsms-checkout-trust__badges {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-xs);
}

.wsms-checkout-trust__badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--spacing-sm);
    flex: 1;
    text-align: center;
}

.wsms-checkout-trust__badge svg {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.wsms-checkout-trust__badge span {
    font-size: 0.6875rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}

/* ==========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ========================================== */

@media (max-width: 1024px) {
    .wp-block-woocommerce-checkout {
        padding: var(--spacing-xl) var(--spacing-lg) !important;
    }

    .wc-block-components-sidebar-layout.wc-block-checkout {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-xl) !important;
    }

    .wc-block-components-main.wc-block-checkout__main {
        grid-column: 1 !important;
        grid-row: 2 !important;
        order: 2 !important;
    }

    .wc-block-components-sidebar.wc-block-checkout__sidebar {
        grid-column: 1 !important;
        grid-row: 1 !important;
        order: 1 !important;
        position: static !important;
        max-width: 100% !important;
    }

    .wc-block-components-totals-footer-item {
        margin: var(--spacing-md) calc(-1 * var(--spacing-lg)) calc(-1 * var(--spacing-lg)) !important;
        padding: var(--spacing-md) var(--spacing-lg) !important;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (max-width: 640px)
   ========================================== */

@media (max-width: 640px) {
    .wp-block-woocommerce-checkout {
        padding: var(--spacing-md) !important;
    }

    .wc-block-components-checkout-step {
        padding: var(--spacing-md) !important;
        margin-bottom: var(--spacing-sm) !important;
        border-radius: var(--border-radius) !important;
    }

    .wc-block-checkout__sidebar {
        padding: var(--spacing-md) !important;
        border-radius: var(--border-radius) !important;
    }

    .wc-block-components-checkout-step__heading {
        font-size: var(--font-size-base) !important;
    }

    .wc-block-components-checkout-step__description {
        padding-left: var(--spacing-sm) !important;
        font-size: var(--font-size-sm) !important;
    }

    .wc-block-components-totals-coupon__form {
        flex-direction: column !important;
    }

    .wc-block-components-totals-coupon__form button {
        width: 100% !important;
    }

    .wc-block-components-totals-footer-item {
        margin: var(--spacing-md) calc(-1 * var(--spacing-md)) calc(-1 * var(--spacing-md)) !important;
        padding: var(--spacing-md) !important;
        border-radius: 0 0 var(--border-radius) var(--border-radius) !important;
    }

    .wc-block-components-order-summary-item {
        grid-template-columns: 40px 1fr auto !important;
        gap: var(--spacing-xs) !important;
    }

    .wc-block-components-order-summary-item__image {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .wc-block-components-order-summary-item__total-price {
        font-size: var(--font-size-xs) !important;
    }

    .wc-block-components-checkout-place-order-button,
    .wp-block-woocommerce-checkout-actions-block button {
        padding: var(--spacing-md) !important;
        font-size: var(--font-size-base) !important;
    }
}

/* ==========================================================================
   13c. YITH Affiliate Dashboard
   ========================================================================== */

/* Override parent container width constraints for pages containing affiliate dashboard */
body:has(.yith-wcaf-dashboard) .content-area,
body.affiliate-dashboard .content-area {
    max-width: 100% !important;
}

body:has(.yith-wcaf-dashboard) .container,
body.affiliate-dashboard .container {
    max-width: var(--container-max-width, 1140px);
}

/* Make sure the dashboard container takes full width */
.yith-wcaf-dashboard {
    max-width: 100% !important;
    width: 100% !important;
}

/* Hide page title for cleaner look */
body:has(.yith-wcaf-dashboard) .entry-header,
body.affiliate-dashboard .entry-header {
    display: none;
}

/* ==========================================================================
   13d. YITH Affiliate Registration Form
   ========================================================================== */

/* Main wrapper - full width */
.yith-wcaf-registration-form {
    max-width: 100%;
    margin: 0;
}

/* Override YITH default padding on login/register forms */
.yith-wcaf-registration-form .login-form,
.yith-wcaf-registration-form .register-form {
    padding: var(--spacing-lg) !important;
    background: #fff !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius) !important;
}

/* Override WooCommerce default form styles in affiliate registration */
.yith-wcaf-registration-form form.login,
.yith-wcaf-registration-form form.register {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

/* Two column layout (login + register) */
.yith-wcaf-registration-form .forms-container.u-columns.col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

/* Single column layout */
.yith-wcaf-registration-form .forms-container:not(.col2-set) {
    max-width: 100% !important;
}

/* Form titles */
.yith-wcaf-registration-form h2.login-title,
.yith-wcaf-registration-form h2.register-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--spacing-md) 0;
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border-light);
}

/* Form rows - fix validation message position */
.yith-wcaf-registration-form .form-row,
.yith-wcaf-registration-form p.form-row {
    position: relative !important;
    margin-bottom: var(--spacing-md) !important;
    padding-bottom: 0 !important;
}

.yith-wcaf-registration-form .form-row:last-child {
    margin-bottom: 0 !important;
}

/* Error message - inline instead of absolute positioned */
.yith-wcaf-registration-form .form-row .error-msg,
.yith-wcaf-registration-form p.form-row .error-msg {
    position: static !important;
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: #dc2626;
    line-height: 1.4;
}

/* Labels */
.yith-wcaf-registration-form label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.yith-wcaf-registration-form label .required {
    color: var(--color-primary);
}

/* Input fields */
.yith-wcaf-registration-form input[type="text"],
.yith-wcaf-registration-form input[type="email"],
.yith-wcaf-registration-form input[type="url"],
.yith-wcaf-registration-form input[type="tel"],
.yith-wcaf-registration-form input[type="password"],
.yith-wcaf-registration-form textarea,
.yith-wcaf-registration-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.yith-wcaf-registration-form input:focus,
.yith-wcaf-registration-form textarea:focus,
.yith-wcaf-registration-form select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Override WooCommerce form input border styles */
.yith-wcaf-registration-form .form-row .input-text,
.yith-wcaf-registration-form .form-row select {
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius) !important;
}

/* Input validation state */
.yith-wcaf-registration-form input:invalid,
.yith-wcaf-registration-form textarea:invalid,
.yith-wcaf-registration-form select:invalid {
    border-color: var(--color-border);
}

.yith-wcaf-registration-form input:invalid:focus,
.yith-wcaf-registration-form textarea:invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Checkbox inline with label */
.yith-wcaf-registration-form .woocommerce-form__label-for-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-top: var(--spacing-sm);
}

.yith-wcaf-registration-form .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: auto;
}

/* Checkbox styling */
.yith-wcaf-registration-form input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    border: 1px solid #9CA3AF !important;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    vertical-align: middle;
    flex-shrink: 0;
    padding: 0 !important;
    margin-right: 0.5rem !important;
    box-sizing: border-box !important;
}

.yith-wcaf-registration-form input[type="checkbox"]:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.yith-wcaf-registration-form input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Submit buttons */
.yith-wcaf-registration-form input[type="submit"],
.yith-wcaf-registration-form button.button,
.yith-wcaf-registration-form .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem !important;
    width: auto !important;
    font-family: var(--font-display);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease;
}

.yith-wcaf-registration-form input[type="submit"]:hover,
.yith-wcaf-registration-form button.button:hover,
.yith-wcaf-registration-form .button:hover {
    background: var(--color-primary-dark);
}

/* Lost password link */
.yith-wcaf-registration-form .lost_password {
    margin-top: var(--spacing-md);
}

.yith-wcaf-registration-form .lost_password a {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    text-decoration: none;
}

.yith-wcaf-registration-form .lost_password a:hover {
    text-decoration: underline;
}

/* Register button - full width */
.yith-wcaf-registration-form .register-form input[type="submit"],
.yith-wcaf-registration-form .register-form .button {
    width: 100% !important;
}

/* Terms and privacy text */
.yith-wcaf-registration-form .terms-label,
.yith-wcaf-registration-form .woocommerce-privacy-policy-text {
    font-size: var(--font-size-sm) !important;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.yith-wcaf-registration-form .woocommerce-privacy-policy-text {
    margin-top: var(--spacing-sm);
}

/* ==========================================================================
   Become an Affiliate Form (logged in user)
   ========================================================================== */

.yith-wcaf-registration-form .become-an-affiliate-form {
    max-width: 100%;
    margin: 0;
    background: #fff !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius) !important;
    padding: var(--spacing-xl) !important;
    text-align: center;
}

.yith-wcaf-registration-form .become-an-affiliate-form > p {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.yith-wcaf-registration-form .become-an-affiliate-form .form-row {
    margin-bottom: 0 !important;
    text-align: center !important;
}

.yith-wcaf-registration-form .become-an-affiliate-form form {
    text-align: center !important;
}

.yith-wcaf-registration-form .become-an-affiliate-form button.button {
    width: 100% !important;
    max-width: 300px;
    margin: 0 auto;
}

/* ==========================================================================
   Status Messages (already affiliate, pending, rejected)
   ========================================================================== */

.yith-wcaf-registration-form .already-an-affiliate-wrapper,
.yith-wcaf-registration-form .pending-request-wrapper,
.yith-wcaf-registration-form .rejected-request-wrapper {
    max-width: 100%;
    margin: 0;
    background: #fff !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--border-radius) !important;
    padding: var(--spacing-xl) !important;
    text-align: center;
}

.yith-wcaf-registration-form h3.thank-you,
.yith-wcaf-registration-form h3.we-are-sorry {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--spacing-sm) 0;
}

/* Remove default YITH icons */
.yith-wcaf-registration-form h3.thank-you:before,
.yith-wcaf-registration-form h3.we-are-sorry:before {
    display: none !important;
}

.yith-wcaf-registration-form h3.thank-you {
    color: #16a34a;
}

.yith-wcaf-registration-form h3.we-are-sorry {
    color: #dc2626;
}

.yith-wcaf-registration-form .already-an-affiliate,
.yith-wcaf-registration-form .pending-request,
.yith-wcaf-registration-form .rejected-request {
    font-size: var(--font-size-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.yith-wcaf-registration-form .rejected-request-wrapper .rejected-request {
    margin-bottom: 0;
}

.yith-wcaf-registration-form .pending-request-wrapper .pending-request {
    margin-bottom: 0;
}

.yith-wcaf-registration-form a.go-to-dashboard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem !important;
    width: auto !important;
    margin-top: var(--spacing-md) !important;
    font-family: var(--font-display);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: background 0.2s ease;
}

.yith-wcaf-registration-form a.go-to-dashboard:hover {
    background: var(--color-primary-dark);
}

/* ==========================================================================
   WooCommerce Notices in Affiliate Forms
   ========================================================================== */

.yith-wcaf-registration-form .woocommerce-message,
.yith-wcaf-registration-form .woocommerce-info {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: var(--spacing-md) !important;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    display: block;
}

.yith-wcaf-registration-form .woocommerce-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: var(--spacing-md) !important;
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-sm);
    display: block;
}

/* Hide default WooCommerce icons */
.yith-wcaf-registration-form .woocommerce-message::before,
.yith-wcaf-registration-form .woocommerce-info::before,
.yith-wcaf-registration-form .woocommerce-error::before {
    display: none !important;
}

.yith-wcaf-registration-form .woocommerce-error li {
    list-style: none;
}

/* ==========================================================================
   Responsive - Affiliate Registration
   ========================================================================== */

@media (max-width: 768px) {
    .yith-wcaf-registration-form .forms-container.u-columns.col2-set {
        grid-template-columns: 1fr;
    }

    .yith-wcaf-registration-form .login-form,
    .yith-wcaf-registration-form .register-form,
    .yith-wcaf-registration-form .become-an-affiliate-form,
    .yith-wcaf-registration-form .already-an-affiliate-wrapper,
    .yith-wcaf-registration-form .pending-request-wrapper,
    .yith-wcaf-registration-form .rejected-request-wrapper {
        padding: var(--spacing-md) !important;
    }
}

/* ==========================================================================
   14. Thank You Page
   ========================================================================== */

.thankyou-section {
    max-width: 600px;
    margin: var(--spacing-2xl) auto;
    text-align: center;
}

.thankyou-content {
    background: white;
    padding: var(--spacing-3xl);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.thankyou-icon {
    margin-bottom: 1.5rem;
}

.thankyou-icon--success {
    color: var(--color-success);
}

.thankyou-icon--error {
    color: #ef4444;
}

.thankyou-content h1 {
    margin-bottom: 1rem;
}

.thankyou-content p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   15. 404 Page
   ========================================================================== */

.error-404 {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.error-404 h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: 1rem;
}

.error-404 p {
    color: #6b7280;
    margin-bottom: 2rem;
}

.error-404__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   16. Utilities
   ========================================================================== */

.u-mb-16 { margin-bottom: 1rem; }
.u-mb-24 { margin-bottom: 1.5rem; }
.u-mt-none { margin-top: 0; }
.u-h2 { font-size: var(--font-size-2xl); }

.clear {
    clear: both;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   17. Responsive Tables
   ========================================================================== */

@media (max-width: 768px) {
    .shop_table_responsive thead {
        display: none;
    }

    .shop_table_responsive tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
    }

    .shop_table_responsive td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .shop_table_responsive td:last-child {
        border-bottom: none;
    }

    .shop_table_responsive td::before {
        content: attr(data-title);
        font-weight: 600;
        margin-right: 1rem;
    }
}

/* ==========================================================================
   18. WooCommerce Specific Overrides
   ========================================================================== */

.woocommerce-form-coupon-toggle {
    margin-bottom: 1.5rem;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide,
.woocommerce-address-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper,
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Order Details */
.woocommerce-order-details {
    margin-bottom: 2rem;
}

.woocommerce-order-details__title {
    margin-bottom: 1.5rem;
}

/* Downloads */
.woocommerce-order-downloads__title {
    margin-bottom: 1.5rem;
}

/* Subscription Table */
.my_account_subscriptions {
    margin-top: 1.5rem;
}

/* Password Change Fieldset */
fieldset.fieldset-password {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

fieldset.fieldset-password legend {
    padding: 0 0.5rem;
    font-weight: 600;
}

/* Select2 Overrides (if used) */
.select2-container .select2-selection--single {
    height: auto;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: var(--line-height-normal);
    padding: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

/* ==========================================================================
   19. Enhanced WooCommerce Overrides
   ========================================================================== */

/* WooCommerce Default Elements Reset */
.woocommerce,
.woocommerce-page {
    font-family: var(--font-family);
    color: #111827;
}

/* Product Quantity Badge */
.product-quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.25rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.25rem;
}

/* Cart Item Remove Button */
.woocommerce-checkout-review-order-table .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-right: 0.5rem;
}

.woocommerce-checkout-review-order-table .remove:hover {
    background: #ef4444;
    color: white;
}

/* Coupon Toggle Box */
.woocommerce-coupon-box {
    margin-bottom: 1.5rem;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #ea580c;
    color: #111827;
    padding: 1rem 1.5rem;
}

.woocommerce-form-coupon-toggle .woocommerce-info::before {
    display: none;
}

.woocommerce-form-coupon-toggle .showcoupon {
    color: #ea580c;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s ease;
}

.woocommerce-form-coupon-toggle .showcoupon:hover {
    color: #c2410c;
    text-decoration: underline;
}

/* Coupon Form */
.checkout_coupon.woocommerce-form-coupon {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout_coupon .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.checkout_coupon .form-row-first {
    flex: 1;
    min-width: 200px;
}

.checkout_coupon .form-row-last {
    flex-shrink: 0;
}

.checkout_coupon input[type="text"] {
    margin-bottom: 0;
}

.checkout_coupon p:first-of-type {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* WooCommerce Order Review Table Enhanced */
.woocommerce-checkout-review-order-table {
    border: none;
    background: transparent;
    box-shadow: none;
}

.woocommerce-checkout-review-order-table thead th {
    background: transparent;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    padding: 0.5rem 0 1rem;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.woocommerce-checkout-review-order-table .product-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    font-weight: 600;
    color: #111827;
}

.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
}

.woocommerce-checkout-review-order-table tfoot tr:last-child th,
.woocommerce-checkout-review-order-table tfoot tr:last-child td {
    border-bottom: none;
}

.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.woocommerce-checkout-review-order-table tfoot td {
    text-align: right;
}

/* Discount/Coupon Row Styling */
.woocommerce-checkout-review-order-table .cart-discount th {
    color: var(--color-success);
}

.woocommerce-checkout-review-order-table .cart-discount td {
    color: var(--color-success);
    font-weight: 600;
}

/* Subscription Pricing Display */
.woocommerce-checkout-review-order-table .subscription-details,
.woocommerce-checkout-review-order-table .recurring-totals {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ==========================================================================
   20. Checkout Form Fields
   ========================================================================== */

/* Billing/Shipping Headings */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Form Field Grid */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide,
#billing_country_field,
#billing_address_1_field,
#shipping_country_field,
#shipping_address_1_field {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Form Row Styling */
.wsms-checkout .form-row {
    margin-bottom: 0;
}

.wsms-checkout .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.375rem;
}

.wsms-checkout .form-row label .required {
    color: #ef4444;
    margin-left: 2px;
}

.wsms-checkout .form-row label .optional {
    color: #9ca3af;
    font-weight: 400;
    font-size: 0.75rem;
}

/* Input Field Styling */
.wsms-checkout .form-row input.input-text,
.wsms-checkout .form-row textarea,
.wsms-checkout .form-row select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #111827;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: all 0.15s ease;
}

.wsms-checkout .form-row input.input-text:hover,
.wsms-checkout .form-row textarea:hover,
.wsms-checkout .form-row select:hover {
    border-color: #9ca3af;
}

.wsms-checkout .form-row input.input-text:focus,
.wsms-checkout .form-row textarea:focus,
.wsms-checkout .form-row select:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

/* Validated Fields */
.wsms-checkout .form-row.woocommerce-validated input.input-text {
    border-color: #16a34a;
}

.wsms-checkout .form-row.woocommerce-invalid input.input-text {
    border-color: #ef4444;
}

/* Select2 in checkout */
.wsms-checkout .select2-container .select2-selection--single {
    height: auto;
    min-height: 42px;
    padding: 0.5rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
}

.wsms-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding: 0;
    color: #111827;
}

.wsms-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 0.75rem;
}

/* ==========================================================================
   21. Payment Extras
   ========================================================================== */

/* Active payment method highlight */
.wsms-checkout .wc_payment_method:has(input:checked) {
    border-color: #ea580c;
    background: #fff7ed;
}

/* Payment method radio buttons */
.wsms-checkout .wc_payment_method input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #ea580c;
    flex-shrink: 0;
}

/* Stripe Card Elements */
.wsms-checkout .wc-stripe-elements-field,
.wsms-checkout .wc-stripe-iban-element-field {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    transition: all 0.15s ease;
}

.wsms-checkout .wc-stripe-elements-field:focus-within,
.wsms-checkout .wc-stripe-iban-element-field:focus-within {
    border-color: #ea580c;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

/* Terms and Conditions */
.wsms-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1rem;
}

.wsms-checkout .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    cursor: pointer;
}

.wsms-checkout .woocommerce-form__label-for-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #ea580c;
    flex-shrink: 0;
}

.wsms-checkout .woocommerce-terms-and-conditions-link {
    color: #ea580c;
    font-weight: 500;
}

/* Privacy Policy */
.wsms-checkout .woocommerce-privacy-policy-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.wsms-checkout .woocommerce-privacy-policy-text a {
    color: #ea580c;
}

/* ==========================================================================
   22. WooCommerce Cart Styling
   ========================================================================== */

.woocommerce-cart-form {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.woocommerce-cart-form .shop_table {
    border: none;
    box-shadow: none;
}

.woocommerce-cart-form .shop_table thead th {
    background: transparent;
    border-bottom: 2px solid #e5e7eb;
    padding: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.woocommerce-cart-form .shop_table td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-cart-form .product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.woocommerce-cart-form .product-name a {
    font-weight: 500;
    color: #111827;
}

.woocommerce-cart-form .product-name a:hover {
    color: #ea580c;
}

.woocommerce-cart-form .product-remove a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #fef2f2;
    color: #ef4444;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}

.woocommerce-cart-form .product-remove a:hover {
    background: #ef4444;
    color: white;
}

/* Empty Cart Notice */
.woocommerce-cart .cart-empty.woocommerce-info {
    margin-top: 24px;
}

/* Quantity Input */
.woocommerce .quantity {
    display: inline-flex;
    align-items: center;
}

.woocommerce .quantity .qty {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
}

/* Cart Totals */
.cart_totals {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.cart_totals h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.cart_totals .shop_table {
    border: none;
    box-shadow: none;
}

.cart_totals .shop_table th,
.cart_totals .shop_table td {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
}

.cart_totals .wc-proceed-to-checkout .button {
    width: 100%;
    padding: 16px;
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   23. Enhanced Order/Subscription Tables
   ========================================================================== */

.woocommerce-orders-table,
.woocommerce-MyAccount-orders,
.my_account_orders {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

.woocommerce-orders-table thead th {
    background: #f3f4f6;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
}

.woocommerce-orders-table tbody td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.woocommerce-orders-table tbody tr:last-child td {
    border-bottom: none;
}

.woocommerce-orders-table tbody tr:hover {
    background: #f9fafb;
}

/* Order Number Link */
.woocommerce-orders-table__cell-order-number a {
    font-weight: 600;
    color: #ea580c;
}

/* Order Status */
.woocommerce-orders-table__cell-order-status {
    font-weight: 500;
}

/* Order Actions */
.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-orders-table__cell-order-actions .woocommerce-button {
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Subscription Table Specific */
.my_account_subscriptions .subscription-actions .button {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   24. WooCommerce Notices Enhanced
   ========================================================================== */

.woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

.woocommerce-notices-wrapper:empty {
    margin-bottom: 0;
    display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
    position: relative;
    padding: 1rem 1.5rem;
    padding-left: 3.5rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: var(--line-height-normal);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    line-height: 1;
}

.woocommerce-message {
    background: var(--color-success-light);
    color: var(--color-success);
    border-left: 4px solid var(--color-success);
}

.woocommerce-info {
    background: var(--color-info-light);
    color: var(--color-info);
    border-left: 4px solid var(--color-info);
}

.woocommerce-error {
    background: #fef2f2;
    color: #ef4444;
    border-left: 4px solid #ef4444;
    flex-direction: column;
    align-items: flex-start;
}

.woocommerce-error li {
    list-style: none;
    margin-bottom: 0.25rem;
}

.woocommerce-error li:last-child {
    margin-bottom: 0;
}

/* Notice Buttons */
.woocommerce-message .button,
.woocommerce-info .button {
    flex-shrink: 0;
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    background: white;
    color: #111827;
    border: 1px solid #d1d5db;
}

.woocommerce-message .button:hover,
.woocommerce-info .button:hover {
    background: #f3f4f6;
}

/* Empty State Messages */
.woocommerce-Message--info.woocommerce-info {
    padding: 2rem;
    text-align: center;
    flex-direction: column;
    gap: 1.5rem;
}

.woocommerce-Message--info.woocommerce-info::before {
    position: static;
    transform: none;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   25. Loading States & Animations
   ========================================================================== */

.woocommerce .blockUI.blockOverlay {
    background: rgba(255, 255, 255, 0.7) !important;
}

.woocommerce .blockUI.blockOverlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e5e7eb;
    border-top-color: #ea580c;
    border-radius: 50%;
    animation: wc-spin 0.8s linear infinite;
}

@keyframes wc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Processing State */
.woocommerce-checkout.processing .checkout-form-customer__box,
.woocommerce-checkout.processing .checkout-order-overview {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================================================
   26. Thank You Page Enhanced
   ========================================================================== */

.woocommerce-order-received .thankyou-section {
    max-width: 700px;
    margin: var(--spacing-2xl) auto;
}

.woocommerce-order-received .thankyou-content {
    background: white;
    padding: var(--spacing-3xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.woocommerce-order-received .thankyou-icon {
    margin-bottom: 2rem;
}

.woocommerce-order-received .thankyou-icon svg {
    width: 80px;
    height: 80px;
}

.woocommerce-order-received .thankyou-icon--success svg {
    color: var(--color-success);
}

.woocommerce-order-received .thankyou-content h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: 1rem;
}

.woocommerce-order-received .thankyou-content p {
    color: #6b7280;
    font-size: var(--font-size-base);
    margin-bottom: 2rem;
}

.woocommerce-order-received .thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Order Overview */
.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    list-style: none;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.5rem;
}

.woocommerce-order-overview li {
    text-align: center;
    padding: 0.5rem;
}

.woocommerce-order-overview li strong {
    display: block;
    font-size: 1.125rem;
    color: #111827;
    margin-top: 0.25rem;
}

/* ==========================================================================
   27. My Account Pages Enhanced
   ========================================================================== */

/* Edit Account Form */
.woocommerce-EditAccountForm {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #e5e7eb;
}

.woocommerce-EditAccountForm fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.woocommerce-EditAccountForm legend {
    padding: 0 0.5rem;
    font-weight: 600;
    color: #111827;
}

/* Address Cards */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }
}

.woocommerce-Address {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.15s ease;
}

.woocommerce-Address:hover {
    border-color: var(--color-primary-100);
    box-shadow: var(--shadow-sm);
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-Address-title h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.woocommerce-Address-title .edit {
    font-size: 0.875rem;
    font-weight: 500;
    color: #ea580c;
}

.woocommerce-Address address {
    font-style: normal;
    color: #6b7280;
    line-height: 1.625;
}

/* Downloads Table */
.woocommerce-order-downloads {
    margin-bottom: 2rem;
}

.woocommerce-order-downloads__title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Payment Methods */
.woocommerce-MyAccount-paymentMethods {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.woocommerce-PaymentMethod {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-PaymentMethod:last-child {
    border-bottom: none;
}

.woocommerce-PaymentMethod__actions .button {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* ==========================================================================
   28. Accessibility Improvements
   ========================================================================== */

/* Focus Visible States */
.woocommerce a:focus-visible,
.woocommerce button:focus-visible,
.woocommerce input:focus-visible,
.woocommerce select:focus-visible,
.woocommerce textarea:focus-visible {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}

/* Skip to Content */
.woocommerce .skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background: #ea580c;
    color: white;
    text-decoration: none;
}

.woocommerce .skip-link:focus {
    left: 1rem;
    top: 1rem;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .woocommerce-checkout .form-row input.input-text,
    .woocommerce-checkout .form-row select {
        border-width: 2px;
    }

    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        border-left-width: 6px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .woocommerce *,
    .woocommerce *::before,
    .woocommerce *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================================================
   29. Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .woocommerce-MyAccount-navigation,
    .checkout-trust-badges,
    .checkout-guarantee,
    #payment .place-order {
        display: none !important;
    }

    .woocommerce-checkout {
        display: block;
    }

    .checkout-order-overview {
        page-break-inside: avoid;
    }
}

/* ==========================================================================
   30. Customer Portal Dashboard
   ========================================================================== */

.c-portal {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Portal Header */
.c-portal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.c-portal__welcome {
    flex: 1;
}

.c-portal__title {
    font-family: var(--font-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem;
    letter-spacing: var(--letter-spacing-tight);
}

.c-portal__subtitle {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
}

.c-portal__logout {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
    text-decoration: none;
}

.c-portal__logout:hover {
    color: #ef4444;
    border-color: #ef4444;
    background: #fef2f2;
}

/* Subscription Hero */
.c-subscription-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-50) 100%);
    border: 1px solid var(--color-primary-100);
    border-radius: var(--border-radius-xl);
    position: relative;
    overflow: hidden;
}

.c-subscription-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.c-subscription-hero--on-hold {
    background: linear-gradient(135deg, var(--color-warning-light) 0%, #FEF8E8 100%);
    border-color: #F3D68A;
}

.c-subscription-hero--cancelled,
.c-subscription-hero--expired {
    background: linear-gradient(135deg, #fef2f2 0%, #FEF2F2 100%);
    border-color: #FECACA;
}

.c-subscription-hero--empty {
    background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 100%);
    border-color: #e5e7eb;
}

.c-subscription-hero__content {
    position: relative;
    z-index: 1;
}

.c-subscription-hero__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.c-subscription-hero__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.c-subscription-hero__plan {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.c-subscription-hero__desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.c-subscription-hero__renewal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.c-subscription-hero__renewal svg {
    color: #ea580c;
    flex-shrink: 0;
}

.c-subscription-hero__renewal strong {
    color: #111827;
}

.c-subscription-hero__actions {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 640px) {
    .c-subscription-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .c-subscription-hero__actions {
        width: 100%;
    }

    .c-subscription-hero__actions .c-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Status Badge */
.c-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

.c-status-badge--active {
    background: var(--color-success);
    color: white;
}

.c-status-badge--on-hold {
    background: var(--color-warning);
    color: white;
}

.c-status-badge--cancelled,
.c-status-badge--expired {
    background: #ef4444;
    color: white;
}

.c-status-badge--pending {
    background: var(--color-info);
    color: white;
}

/* Button System */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 12px 1.5rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.c-btn--primary {
    background: #ea580c;
    color: white;
}

.c-btn--primary:hover {
    background: #c2410c;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.c-btn--secondary {
    background: white;
    color: #111827;
    border: 1px solid #d1d5db;
}

.c-btn--secondary:hover {
    background: #f3f4f6;
    color: #111827;
    border-color: var(--color-text-muted);
}

.c-btn--ghost {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.c-btn--ghost:hover {
    background: white;
    color: #ea580c;
    border-color: #ea580c;
}

.c-btn--sm {
    padding: 8px 1rem;
    font-size: 0.75rem;
}

.c-btn--block {
    width: 100%;
}

/* Products Section */
.c-products {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
}

.c-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.c-products__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.c-products__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #ea580c;
    text-decoration: none;
}

.c-products__link:hover {
    color: #c2410c;
}

.c-products__link svg {
    transition: transform 0.15s ease;
}

.c-products__link:hover svg {
    transform: translateX(3px);
}

.c-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Product Card */
.c-product-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.15s ease;
}

.c-product-card:hover {
    border-color: var(--color-primary-100);
    box-shadow: var(--shadow-card);
}

.c-product-card__header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.c-product-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-light);
    border-radius: 0.5rem;
    color: #ea580c;
    flex-shrink: 0;
}

.c-product-card__info {
    flex: 1;
    min-width: 0;
}

.c-product-card__name {
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.c-product-card__version {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.c-product-card__actions {
    margin-top: 1rem;
}

/* License Key */
.c-license-key {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
}

.c-license-key__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.c-license-key__field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.c-license-key__value {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875rem;
    color: #111827;
    background: none;
    padding: 0;
    word-break: break-all;
    line-height: 1.4;
}

.c-license-key__copy {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.c-license-key__copy:hover {
    background: var(--color-primary-light);
    border-color: #ea580c;
    color: #ea580c;
}

.c-license-key__copy.is-copied {
    background: var(--color-success-light);
    border-color: var(--color-success);
    color: var(--color-success);
}

/* Empty State */
.c-empty-state {
    text-align: center;
    padding: var(--spacing-3xl) 2rem;
}

.c-empty-state__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #f3f4f6;
    border-radius: 50%;
    color: var(--color-text-muted);
}

.c-empty-state__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.5rem;
}

.c-empty-state__desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
}

/* Quick Actions */
.c-quick-actions {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius-xl);
    padding: 2rem;
}

.c-quick-actions__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 1.5rem;
}

.c-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 640px) {
    .c-quick-actions__grid {
        grid-template-columns: 1fr;
    }
}

.c-quick-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.c-quick-action:hover {
    border-color: var(--color-primary-100);
    background: white;
    box-shadow: var(--shadow-sm);
}

.c-quick-action__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.c-quick-action__icon--subscriptions {
    background: var(--color-success-light);
    color: var(--color-success);
}

.c-quick-action__icon--payment {
    background: var(--color-info-light);
    color: var(--color-info);
}

.c-quick-action__icon--account {
    background: var(--color-primary-light);
    color: #ea580c;
}

.c-quick-action__icon--address {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.c-quick-action:hover .c-quick-action__icon {
    transform: scale(1.05);
}

.c-quick-action__text {
    flex: 1;
    min-width: 0;
}

.c-quick-action__label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.c-quick-action__desc {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.c-quick-action__arrow {
    color: var(--color-text-muted);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
}

.c-quick-action:hover .c-quick-action__arrow {
    opacity: 1;
    transform: translateX(0);
    color: #ea580c;
}

/* Help Banner */
.c-help-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
}

.c-help-banner__content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-help-banner__content > svg {
    color: #ea580c;
    flex-shrink: 0;
}

.c-help-banner__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.c-help-banner__text strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.c-help-banner__text span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

@media (max-width: 640px) {
    .c-help-banner {
        flex-direction: column;
        text-align: center;
    }

    .c-help-banner__content {
        flex-direction: column;
    }
}

/* ==========================================================================
   31. Dashboard Sub-pages Enhancements
   ========================================================================== */

/* Page Headers */
.c-dashboard-page {
    margin-bottom: 2rem;
}

.c-dashboard-page__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.c-dashboard-page__desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 2rem;
    max-width: 600px;
}

/* Subscriptions Page Enhancements */
.my_account_subscriptions {
    margin-top: 1.5rem;
}

/* Pagination */
.woocommerce-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.woocommerce-pagination .button {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

/* Downloads Page Card Style */
.woocommerce-order-downloads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.download-product {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.15s ease;
}

.download-product:hover {
    border-color: var(--color-primary-100);
    box-shadow: var(--shadow-card);
}

/* ==========================================================================
   31. WooCommerce Default Template Styles
   ==========================================================================
   These styles ensure WooCommerce default templates match our portal design.
   Used for templates we don't override (password reset, addresses, etc.)
   ========================================================================== */

/* Default Form Wrapper */
.woocommerce-MyAccount-content form {
    max-width: 600px;
}

/* Form Row Styling for Default Templates */
.woocommerce-MyAccount-content .form-row {
    margin-bottom: 1.5rem;
}

.woocommerce-MyAccount-content .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.25rem;
}

.woocommerce-MyAccount-content .form-row input[type="text"],
.woocommerce-MyAccount-content .form-row input[type="email"],
.woocommerce-MyAccount-content .form-row input[type="password"],
.woocommerce-MyAccount-content .form-row input[type="tel"],
.woocommerce-MyAccount-content .form-row textarea,
.woocommerce-MyAccount-content .form-row select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: var(--font-family);
    color: #111827;
    background: white;
    transition: all 0.15s ease;
}

.woocommerce-MyAccount-content .form-row input:focus,
.woocommerce-MyAccount-content .form-row textarea:focus,
.woocommerce-MyAccount-content .form-row select:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

/* Password Reset Form */
.woocommerce-MyAccount-content .woocommerce-ResetPassword {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    max-width: 500px;
}

.woocommerce-MyAccount-content .woocommerce-ResetPassword p {
    margin-bottom: 1.5rem;
    color: #6b7280;
}

/* Lost Password Confirmation */
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info {
    background: white;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #ea580c;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.woocommerce-MyAccount-content .woocommerce-message::before,
.woocommerce-MyAccount-content .woocommerce-info::before {
    display: none;
}

/* Address Display - Overview Page */

/* Hide the "The following addresses will be used..." text */
.woocommerce-MyAccount-content > p:first-of-type {
    display: none;
}

.woocommerce-MyAccount-content .woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
}

.woocommerce-MyAccount-content .woocommerce-Address {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

/* Hide redundant "Billing address" header - page title already shows it */
.woocommerce-MyAccount-content .woocommerce-Address-title h2,
.woocommerce-MyAccount-content .woocommerce-Address-title h3 {
    display: none;
}

.woocommerce-MyAccount-content .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 0;
    border-bottom: none;
}

.woocommerce-MyAccount-content .woocommerce-Address-title a.edit {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: white;
    background: #ea580c;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s ease;
}

.woocommerce-MyAccount-content .woocommerce-Address-title a.edit:hover {
    background: #c2410c;
    color: white;
}

.woocommerce-MyAccount-content .woocommerce-Address address {
    font-style: normal;
    color: #374151;
    line-height: 1.75;
    font-size: 0.9375rem;
}

/* Hide redundant form heading - page header already shows title */
.woocommerce-MyAccount-content > h2,
.woocommerce-MyAccount-content > h3,
.woocommerce-MyAccount-content > form > h2,
.woocommerce-MyAccount-content > form > h3,
.woocommerce-MyAccount-content form > h2:first-child,
.woocommerce-MyAccount-content form > h3:first-child,
.woocommerce-address-fields h2,
.woocommerce-address-fields h3 {
    display: none !important;
}

/* ==========================================================================
   Account Forms (Edit Account, Edit Address, etc.)
   ========================================================================== */

/* Address Edit Form Card */
.woocommerce-MyAccount-content .woocommerce-address-fields {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 600px;
    margin-top:24px;
}

/* Form field wrapper grid */
.woocommerce-address-fields__field-wrapper {
    display: grid;
    gap: 1rem;
}

.woocommerce-address-fields .form-row {
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .woocommerce-address-fields .form-row-wide {
        grid-column: 1 / -1;
    }
}

.woocommerce-address-fields .form-row-last, .woocommerce-page form .form-row-first, .woocommerce-page form .form-row-last {
  width: 100% !important;
}

/* Edit Account Form Card */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 600px;
}

/* Form fieldset styling */
.woocommerce-MyAccount-content fieldset {
    border: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.woocommerce-MyAccount-content fieldset legend {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    padding: 0 0 0.75rem 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
}

/* Required field asterisk */
.woocommerce-MyAccount-content .form-row label .required,
.woocommerce-MyAccount-content .woocommerce-form-row label .required {
    color: #ef4444;
    margin-left: 0.125rem;
}

/* Input focus enhancement */
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    outline: none;
    border-color: #ea580c !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1) !important;
}

/* Select dropdown styling */
.woocommerce-MyAccount-content select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Form row spacing */
.woocommerce-MyAccount-content .woocommerce-form-row,
.woocommerce-MyAccount-content .form-row {
    margin-bottom: 1rem;
}

/* Password fields section */
.woocommerce-MyAccount-content fieldset.fieldset-password {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* Submit button styling */
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ea580c;
    color: white !important;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 1.5rem;
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
    background: #c2410c;
    color: white !important;
}

/* Address Form Checkbox (WooCommerce Subscriptions) */
.woocommerce-address-fields .form-row.update_all_subscriptions_addresses_checkbox {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    grid-column: 1 / -1;
}

.woocommerce-address-fields .form-row.update_all_subscriptions_addresses_checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.woocommerce-address-fields .form-row.update_all_subscriptions_addresses_checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.woocommerce-address-fields .form-row.update_all_subscriptions_addresses_checkbox label small,
.woocommerce-address-fields .form-row.update_all_subscriptions_addresses_checkbox label .note,
.woocommerce-address-fields .form-row.update_all_subscriptions_addresses_checkbox label .wcs-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: normal;
}

/* Generic note styling in forms */
.woocommerce-address-fields p small,
.woocommerce-address-fields .wcs-address-note {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Payment Methods - Default Template Styling */
.woocommerce-MyAccount-content .woocommerce-PaymentMethods {
    display: grid;
    gap: 1rem;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethod {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethod--actions a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-left: 0.25rem;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethod--actions a:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethod--actions a.delete {
    color: #ef4444;
    border-color: #fef2f2;
}

.woocommerce-MyAccount-content .woocommerce-PaymentMethod--actions a.delete:hover {
    background: #fef2f2;
}

/* Add Payment Method Form */
.woocommerce-MyAccount-content .woocommerce-add-payment-method .payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.woocommerce-MyAccount-content .woocommerce-add-payment-method .payment_method {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-content .woocommerce-add-payment-method .payment_method label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.woocommerce-MyAccount-content .woocommerce-add-payment-method .payment_box {
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

/* Empty Payment Methods Card */
.wsms-empty-payment-methods {
    margin-top: 24px;
}

/* Add Payment Method Button */
.wsms-add-payment-method-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--color-primary);
    color: #fff !important;
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.wsms-add-payment-method-btn:hover {
    background: var(--color-primary-hover);
    color: #fff !important;
}

/* Button Styling for Default Templates */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: #ea580c;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
    background: #c2410c;
}

/* Checkout Payment Methods */
.woocommerce-MyAccount-content .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-content .wc_payment_method {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 1rem;
    transition: all 0.15s ease;
}

.woocommerce-MyAccount-content .wc_payment_method:has(input:checked) {
    border-color: #ea580c;
    background: var(--color-primary-50);
}

.woocommerce-MyAccount-content .wc_payment_method label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.woocommerce-MyAccount-content .wc_payment_method .payment_box {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
}

/* Order Review Table in Checkout */
.woocommerce-MyAccount-content .woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-MyAccount-content .woocommerce-checkout-review-order-table th,
.woocommerce-MyAccount-content .woocommerce-checkout-review-order-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.woocommerce-MyAccount-content .woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-MyAccount-content .woocommerce-checkout-review-order-table tfoot .order-total td {
    font-weight: 600;
    font-size: 1.125rem;
    border-bottom: none;
    padding-top: 1rem;
}

.wcs-recurring-totals-panel__details.wc-block-components-panel {
  padding: 0 !important;
}

.wcs-recurring-totals-panel__details.wc-block-components-panel {
  padding: 0 !important;
}

.wc-block-components-totals-wrapper {
  padding: 3px 0 1px 0 !important;
}

.wc-block-components-totals-item {
  padding: 0px 0 0px !important;
}

.wp-block-woocommerce-checkout-order-summary-totals-block {
  padding-top: 16px;
}

.wc-block-components-totals-wrapper.slot-wrapper>*>* {
  padding-bottom: 0;
}

.wc-block-components-totals-item.wc-block-components-totals-footer-item {
  padding-top: 10px !important;
}

a.wc-block-checkout__login-prompt {
  float: inherit !important;
}

.wcs-recurring-totals-panel__details.wc-block-components-panel {
  margin-top: 10px;
  margin-bottom: -13px;
}

.wc-block-components-totals-coupon.wc-block-components-panel {
  padding-right: 0;
  padding-left: 0;
}

.wc-block-components-order-summary.is-large {
  padding: 0;
}

p.wc-block-components-checkout-order-summary__title-text {
  margin: 0 !important;
  padding-bottom: 5px;
}

.wc-block-components-checkout-order-summary__title {
  margin-top: 0px !important;
}

/* ==========================================================================
   SIMPLE CONTENT PAGES (Terms, Privacy, etc.)
   Uses .wsms-content-page body class added via functions.php
   ========================================================================== */

.wsms-content-page .site-main {
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
}

.wsms-content-page .content-area {
    max-width: 800px;
}

.wsms-content-page article {
    background: white;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.wsms-content-page .entry-header {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: var(--spacing-2xl);
    text-align: center;
    position: relative;
}

.wsms-content-page .entry-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #f97316 100%);
}

.wsms-content-page .entry-title {
    color: white;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
}

.wsms-content-page .entry-content {
    padding: var(--spacing-2xl);
}

/* Section headings */
.wsms-content-page .entry-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-border);
}

.wsms-content-page .entry-content h2:first-child {
    margin-top: 0;
}

.wsms-content-page .entry-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.wsms-content-page .entry-content h4 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-100) 100%);
    border-left: 3px solid var(--color-primary);
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
}

.wsms-content-page .entry-content h4:first-child {
    margin-top: 0;
}

/* Paragraphs */
.wsms-content-page .entry-content p {
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.wsms-content-page .entry-content p:last-child {
    margin-bottom: 0;
}

/* Links */
.wsms-content-page .entry-content a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(234, 88, 12, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.wsms-content-page .entry-content a:hover {
    color: var(--color-primary-dark);
    text-decoration-color: var(--color-primary);
}

/* Lists */
.wsms-content-page .entry-content ul,
.wsms-content-page .entry-content ol {
    margin: var(--spacing-md) 0;
    padding-left: 1.5rem;
    color: var(--color-text-light);
}

.wsms-content-page .entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.wsms-content-page .entry-content ul li::marker {
    color: var(--color-primary);
}

.wsms-content-page .entry-content ol li::marker {
    color: var(--color-primary);
    font-weight: 600;
}

/* Blockquotes */
.wsms-content-page .entry-content blockquote {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* Tables */
.wsms-content-page .entry-content table {
    width: 100%;
    margin: var(--spacing-lg) 0;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.wsms-content-page .entry-content th,
.wsms-content-page .entry-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.wsms-content-page .entry-content th {
    background: var(--color-bg-light);
    font-weight: 600;
    color: var(--color-text);
}

.wsms-content-page .entry-content tr:hover td {
    background: var(--color-bg-light);
}

/* Code blocks */
.wsms-content-page .entry-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    background: var(--color-bg-dark);
    border-radius: var(--border-radius-sm);
    color: var(--color-primary-dark);
}

.wsms-content-page .entry-content pre {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md);
    background: #1f2937;
    border-radius: var(--border-radius);
    overflow-x: auto;
}

.wsms-content-page .entry-content pre code {
    background: none;
    padding: 0;
    color: #e5e7eb;
}

/* Horizontal rules */
.wsms-content-page .entry-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: var(--spacing-xl) 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wsms-content-page .entry-header {
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .wsms-content-page .entry-title {
        font-size: var(--font-size-2xl);
    }

    .wsms-content-page .entry-content {
        padding: var(--spacing-lg);
    }

    .wsms-content-page .entry-content h4 {
        font-size: 1rem;
    }
}

/* ==========================================================================
   GRAVITY FORMS STYLING
   ========================================================================== */

/* Override Gravity Forms CSS variables to match our design */
.gform_wrapper {
    --gf-color-primary: #EA580C !important;
    --gf-color-primary-rgb: 234, 88, 12 !important;
    --gf-color-primary-contrast: #fff !important;
    --gf-color-primary-darker: #C2410C !important;
    --gf-color-primary-lighter: #F97316 !important;
    --gf-radius: 8px !important;
    --gf-form-gap-y: 10px !important;
}

/* Form wrapper */
.wsms-content-page .gform_wrapper {
    margin-top: var(--spacing-lg);
}

/* Field container */
.gform_wrapper .gfield {
    margin-bottom: var(--spacing-md);
}

/* Labels */
.gform_wrapper .gfield_label,
.gform_wrapper .gform-field-label {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

/* Required indicator */
.gform_wrapper .gfield_required {
    color: var(--color-primary);
}

/* Input fields */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea,
.gform_wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gform_wrapper input[type="text"]:focus,
.gform_wrapper input[type="email"]:focus,
.gform_wrapper input[type="url"]:focus,
.gform_wrapper input[type="tel"]:focus,
.gform_wrapper input[type="number"]:focus,
.gform_wrapper input[type="password"]:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder {
    color: var(--color-text-muted);
}

/* Textarea */
.gform_wrapper textarea {
    min-height: 150px;
    resize: vertical;
}

/* Character counter */
.gform_wrapper .charleft,
.gform_wrapper .ginput_counter {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Submit button */
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: white;
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.gform_wrapper .gform_button:hover,
.gform_wrapper input[type="submit"]:hover {
    background: var(--color-primary-hover);
    color: white;
}

.gform_wrapper .gform_button:active,
.gform_wrapper input[type="submit"]:active {
    transform: scale(0.98);
}

/* Form footer */
.gform_wrapper .gform_footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
}

/* Validation - error states */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
    border-color: var(--color-error);
}

.gform_wrapper .gfield_error input:focus,
.gform_wrapper .gfield_error textarea:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.gform_wrapper .validation_message,
.gform_wrapper .gfield_description.validation_message {
    color: var(--color-error);
    font-size: var(--font-size-sm);
    margin-top: 0.25rem;
}

/* Validation - success message */
.gform_wrapper .gform_confirmation_message {
    padding: var(--spacing-lg);
    background: var(--color-success-light);
    border: 1px solid var(--color-success);
    border-radius: var(--border-radius);
    color: var(--color-success);
    font-weight: 500;
}

/* Checkboxes and radio buttons */
.gform_wrapper .gfield_checkbox label,
.gform_wrapper .gfield_radio label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    cursor: pointer;
}

.gform_wrapper .gfield_checkbox input[type="checkbox"],
.gform_wrapper .gfield_radio input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--color-primary);
}

/* Select dropdown */
.gform_wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Field description/helper text */
.gform_wrapper .gfield_description:not(.validation_message) {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Hide Gravity Forms branding if present */
.gform_wrapper .gform_ajax_spinner {
    margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .gform_wrapper .gform_button,
    .gform_wrapper input[type="submit"] {
        width: 100%;
    }
}

/* ==========================================================================
   Password Reset Pages
   ========================================================================== */

/* Password reset confirmation icon */
.c-login-card__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.c-login-card__icon svg {
    width: 48px;
    height: 48px;
}

/* Password reset confirmation message */
.c-login-card__message {
    background: #FFF7ED;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.c-login-card__message p {
    font-size: 0.875rem;
    color: #78350F;
    line-height: 1.5;
    margin: 0;
}

/* Login/Reset page notices */
.c-login-card .woocommerce-error,
.c-login-card .woocommerce-message,
.c-login-card .woocommerce-info {
    margin: 0 0 1.5rem;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
}

.c-login-card .woocommerce-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
}

.c-login-card .woocommerce-error::before {
    content: "!";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
}

.c-login-card .woocommerce-message {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #22c55e;
}

.c-login-card .woocommerce-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
}

/* My Account reCAPTCHA */
.woocommerce-account{
    overflow: hidden;
}

.woocommerce-account .gglcptch,
.woocommerce-account .g-recaptcha {
    max-width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
}

.woocommerce-account .gglcptch iframe,
.woocommerce-account .g-recaptcha iframe {
    width: 304px;
    max-width: 304px;
    display: block;
    transform: scale(0.88);
    transform-origin: 0 0;
}

.gglcptch_recaptcha , .gglcptch_recaptcha > div{
    width: 304px!important;
    max-width: 304px;
}

@media(min-width: 700px){
    .woocommerce-account .gglcptch.gglcptch_v2 {
        min-width: 304px!important;
        max-width: 304px!important;
    }
}


/* Fix button hover state */
.c-login-form__submit:hover {
    background: #C2410C !important;
    color: #fff !important;
}

/* Fix reset hover color */
.yith-wcaf .table-filters .reset-filters:hover{
    color: #C2410C !important;
}

.wsms-affiliate-content .yith-wcaf-dashboard-settings .woocommerce-message{
    padding: 16px 50px;
    gap: 0;
}

.yith-wcaf form .form-row .input-checkbox {
  display: inline-block !important;
}