/*
Theme Name: BuscaTuAbogado
Theme URI: https://buscatuabogado.cl
Author: Your Name
Author URI: https://buscatuabogado.cl
Description: Custom theme for lawyer directory with verification and subscriptions
Version: 1.0.1
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buscatuabogado
*/

/* =============================================================================
   CSS VARIABLES (Easy customization)
   ============================================================================= */
:root {
    --color-primary: #0d1b3e;      /* Dark blue */
    --color-secondary: #FDB913;    /* Golden yellow */
    --color-text: #333333;
    --color-bg: #ffffff;
    --color-bg-light: #f5f5f5;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    --navy: #0d1b3e;
    --navy-mid: #162552;
    --gold: #f5a800;
    --gold-dark: #d48f00;
    --white: #ffffff;
    --light: #f4f6fb;
    --text: #1a2340;
    --muted: #6b7a99;
    --border: #e2e8f0;
    --blue-accent: #1e5fcf;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --max-width: 1200px;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.my-cases-page h1 {
    margin-bottom: 0.35rem;
}

.my-cases-page .intro-text {
    margin-top: 0;
    margin-bottom: 1.25rem;
}

/* =============================================================================
   LAYOUT
   ============================================================================= */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    /* padding: 40px 0; */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px;
}

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
    background-color: var(--color-primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.main-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-branding a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.custom-logo {
    max-height: 50px;
}

/* Navigation */
.main-navigation .nav-menu {
    display: flex;
    gap: 30px;
}

.main-navigation .nav-menu a {
    color: #fff;
    padding: 10px 15px;
}

.main-navigation .nav-menu a:hover {
    color: var(--color-secondary);
}

/* User Menu */
.header-user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.header-links-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-links-menu strong {
    display: block;
}

.header-account-menu {
    flex-shrink: 0;
}
.header-user-menu a {
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.2s ease;
}
.header-user-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown {
    position: relative;
}

.user-toggle {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 5px;
}

.user-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-top: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Keep dropdown visible when hovering button OR menu */
.user-dropdown:hover .user-dropdown-menu,
.user-dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* JavaScript toggle class */
.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Add a small invisible bridge between button and menu */
.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.dropdown-header strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.dropdown-header small {
    color: #666;
}

.dropdown-links {
    padding: 10px 0;
}

.dropdown-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--color-text);
    transition: background 0.2s ease;
}

.dropdown-links li a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn-primary,
.btn-secondary,
.btn-secondary-cta,
.btn-login,
.btn-register {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: #e5a711;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(253, 185, 19, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary-cta {
    background: transparent;
    color: var(--color-bg-light);
    border: 2px solid var(--color-bg-light);
}

.btn-secondary-cta:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-login:hover {
    background: #fff;
    color: #fff;
}

.btn-register {
    background: var(--color-secondary);
    color: var(--color-primary);
}

/* =============================================================================
   FORMS
   ============================================================================= */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 14px;
}

/* Error/Success Messages */
.error-messages,
.success-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-messages {
    background: #fff3cd;
    border-left: 4px solid var(--color-error);
}

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

.error {
    color: var(--color-error);
}

/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-rejected {
    background: #f8d7da;
    color: #721c24;
}

.badge-active,
.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-lawyer {
    background: var(--color-primary);
    color: #fff;
}

/* =============================================================================
   CARDS
   ============================================================================= */
.card {
    background: #fff;
    border: 1px solid #d9e7f7;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 24px 60px rgba(17, 65, 116, 0.12);
    margin-bottom: 20px;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
    background: var(--color-primary);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-navigation .footer-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.footer-navigation a {
    color: #fff;
}

.footer-navigation a:hover {
    color: var(--color-secondary);
}

.site-info {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    opacity: 0.8;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 1002;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .main-navigation {
        order: 10;
        width: 100%;
        margin-left: 0;
        display: block;
        background: var(--color-primary);
        max-height: 0;
        overflow: hidden;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
        transition: max-height 0.3s ease, padding 0.3s ease;
        padding: 0;
    }

    .main-navigation.active {
        max-height: calc(100vh - 90px);
        padding: 12px 0 16px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .header-user-menu {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0 16px;
    }

    .header-user-menu a,
    .user-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
        white-space: normal;
    }

    .header-links-menu strong {
        width: 100%;
    }

    .header-links-menu strong a {
        display: block;
    }

    .header-account-menu {
        margin-top: 6px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .header-account-menu .btn-login,
    .header-account-menu .btn-register {
        text-align: left;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        display: none;
        box-shadow: none;
        border-radius: 12px;
    }

    .user-dropdown:hover .user-dropdown-menu,
    .user-dropdown-menu:hover,
    .user-dropdown-menu.show {
        display: block;
    }

    .user-dropdown-menu::before {
        display: none;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .floating-image-cta {
        display: none;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
}

/* =============================================================================
   UTILITY CLASSES
   ============================================================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }

/* =============================================================================
   CTA BUTTON
   ============================================================================= */
.floating-image-cta {
  position: fixed; /* Makes the button float relative to the viewport */
  bottom: 20px;    /* Adjust the vertical position as needed */
  right: 20px;     /* Adjust the horizontal position as needed */
  z-index: 1000;   /* Ensures the button is above other content */
}

.floating-image-cta img {
  width: 300px;     /* Adjust the size of your image as needed */
  height: auto;
  border-radius: 50%; /* Optional: for a circular image */
  cursor: pointer;
}


/* NEW SUBSCRIBE PAGE*/

.subscribe-page {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 70vh;
}

.subscribe-hero {
    text-align: center;
    margin-bottom: 60px;
}

.subscribe-hero h1 {
    font-size: 2.8rem;
    color: #003366;
    margin-bottom: 20px;
    font-weight: 700;
}

.subscribe-hero .subtitle {
    font-size: 1.3rem;
    color: #666;
}

.subscribe-hero .note {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #888;
}

/* Notice Boxes */
.notice-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
}

.notice-box.info {
    border-left: 6px solid #2196F3;
}

.notice-box.warning {
    border-left: 6px solid #FF9800;
}

.notice-box h3 {
    margin-top: 0;
    color: #003366;
    font-size: 1.5rem;
}

.button-group {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Current Subscription */
.current-subscription {
    max-width: 700px;
    margin: 0 auto;
}

.subscription-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
}

.subscription-card .badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #4CAF50;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.plan-details {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 3.5rem;
    font-weight: bold;
    color: #0073aa;
    line-height: 1;
}

.stat .label {
    display: block;
    color: #666;
    font-size: 15px;
    margin-top: 10px;
}

.usage-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin: 25px 0 15px;
}

.usage-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.5s ease;
}

.usage-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.action-buttons a {
    flex: 1;
}

.upgrade-prompt {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 35px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.upgrade-prompt h3 {
    margin-top: 0;
    color: white;
    font-size: 1.5rem;
}

.btn-white {
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,255,255,0.3);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto 80px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.pricing-card.featured {
    border: 4px solid #FF9800;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 25px;
    right: -40px;
    background: #FF9800;
    color: white;
    padding: 8px 50px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
    z-index: 10;
}

.card-header {
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pricing-card.featured .card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.card-header h3 {
    margin: 0 0 20px 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.price {
    margin: 25px 0;
}

.price .currency {
    font-size: 1.8rem;
    vertical-align: top;
    margin-right: 5px;
}

.price .amount {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
}

.price .period {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    margin-left: 5px;
}

.tagline {
    margin: 0;
    font-size: 15px;
    color: rgba(255,255,255,0.95);
    font-weight: 500;
}

.features {
    list-style: none;
    padding: 35px;
    margin: 0;
}

.features li {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: start;
    gap: 15px;
}

.features li:last-child {
    border-bottom: none;
}

.features .icon {
    color: #4CAF50;
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.features .text {
    color: #333;
    line-height: 1.6;
}

.card-footer {
    padding: 35px;
    text-align: center;
    background: #f8f9fa;
}

.card-footer .button,
.card-footer .btn-primary {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

.card-footer .note {
    margin: 20px 0 0;
    font-size: 13px;
    color: #999;
}

/* Benefits Section */
.benefits-section {
    max-width: 1100px;
    margin: 100px auto;
    text-align: center;
}

.benefits-section h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 50px;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
}

.benefit {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.benefit h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    max-width: 1100px;
    margin: 100px auto;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 50px;
    font-weight: 700;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.step {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    flex: 1;
    max-width: 280px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.step h3 {
    color: #003366;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.step p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.step-arrow {
    font-size: 2.5rem;
    color: #ccc;
    flex-shrink: 0;
}

/* FAQ */
.faq-section {
    max-width: 1000px;
    margin: 100px auto;
}

.faq-section h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 50px;
    text-align: center;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.faq-item h4 {
    color: #003366;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .subscribe-hero h1 {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .plan-details {
        flex-direction: column;
        gap: 30px;
    }
}

/* WooCommerce My Account Layout */
.woo-account-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    align-items: start;
    padding: 40px 0;
}

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

.woo-account-nav .woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 16px;
    color: var(--color-text);
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.woo-account-nav .woocommerce-MyAccount-navigation li.is-active a,
.woo-account-nav .woocommerce-MyAccount-navigation li a:hover {
    background: var(--color-bg-light);
    color: var(--color-primary);
}

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

/* Container styling for the success notice */
.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
    background-color: #d4edda; /* Light green background */
    color: #155724;            /* Dark green text */
    padding: 20px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2em;
}

/* Optional: Adding an icon using pseudo-elements */
.woocommerce-notice--success::before {
    content: "\f14a"; /* Dashicons checkmark */
    font-family: dashicons;
    margin-right: 10px;
    vertical-align: middle;
}


html {
    scroll-behavior: smooth;
}

/* =============================================================================
   WOOCOMMERCE THANK YOU PAGE
   ============================================================================= */

/* Hero success message */
.woocommerce-order {
    max-width: 880px;
    margin: 48px auto;
    padding: 0 20px;
}

.woocommerce-thankyou-order-received {
    background: linear-gradient(135deg, var(--color-primary) 0%, #005599 100%);
    color: #fff !important;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 32px;
    border: none;
}

/* Order details pill list */
.woocommerce-thankyou-order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    overflow: hidden;
}

.woocommerce-thankyou-order-details li {
    padding: 20px 24px;
    border-right: 1px solid #f0f0f0;
    font-size: 13px;
    color: #777;
}

.woocommerce-thankyou-order-details li:last-child {
    border-right: none;
}

.woocommerce-thankyou-order-details li strong {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    margin-top: 4px;
}

/* Failed state */
.woocommerce-thankyou-order-failed {
    background: #f8d7da;
    color: #721c24 !important;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.woocommerce-thankyou-order-failed-actions .button {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 10px;
}

/* Subscription & order detail tables added by WC Subscriptions plugin */
.woocommerce-order .woocommerce-table,
.woocommerce-order table.shop_table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 28px;
    font-size: 14px;
}

.woocommerce-order table.shop_table th,
.woocommerce-order table.shop_table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.woocommerce-order table.shop_table thead th {
    background: var(--color-bg-light);
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.woocommerce-order table.shop_table tfoot th,
.woocommerce-order table.shop_table tfoot td {
    background: #fafafa;
    color: #555;
}

.woocommerce-order table.shop_table tfoot tr:last-child th,
.woocommerce-order table.shop_table tfoot tr:last-child td {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
    border-top: 2px solid #e0e0e0;
}

/* Section headings (Order details, Related subscriptions, Billing address) */
.woocommerce-order h2 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-bg-light);
}

/* Billing address block */
.woocommerce-column--billing-address address {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 20px 24px;
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
}

/* Responsive: stack the pill list on mobile */
@media (max-width: 600px) {
    .woocommerce-thankyou-order-details {
        grid-template-columns: 1fr 1fr;
    }

    .woocommerce-thankyou-order-details li {
        border-bottom: 1px solid #f0f0f0;
    }
}