/**
 * Thermas Light - Critical CSS
 * Light theme: Flatpickr + WooCommerce overrides
 * Design System: "The Curated Escape"
 */

/* ─── Base ─── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

.thermas-header-menu,
.thermas-mobile-menu-list,
.thermas-header-menu .sub-menu,
.thermas-mobile-menu-list .sub-menu {
    list-style: none;
}

.thermas-header-menu .menu-item,
.thermas-mobile-menu-list .menu-item {
    position: relative;
}

.thermas-header-menu .menu-item-has-children > a,
.thermas-mobile-menu-list .menu-item-has-children > a {
    padding-right: 18px;
}

.thermas-submenu-toggle {
    position: absolute;
    top: 50%;
    right: 0;
    width: 16px;
    height: 16px;
    border: 0;
    background: transparent;
    color: #414750;
    cursor: pointer;
    transform: translateY(-50%);
}

.thermas-submenu-toggle::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 7px;
    height: 7px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg);
}

.thermas-header-menu .menu-item:hover > .thermas-submenu-toggle,
.thermas-header-menu .menu-item:focus-within > .thermas-submenu-toggle,
.thermas-mobile-menu-list .menu-item:focus-within > .thermas-submenu-toggle,
.thermas-submenu-open > .thermas-submenu-toggle {
    color: #003e6f;
}

.thermas-header-menu .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 60;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e1e2e8;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.thermas-header-menu .sub-menu .sub-menu {
    left: 100%;
    top: -8px;
}

.thermas-header-menu .menu-item:hover > .sub-menu,
.thermas-header-menu .menu-item:focus-within > .sub-menu,
.thermas-header-menu .thermas-submenu-open > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.thermas-header-menu .sub-menu a {
    display: block;
    min-width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    white-space: nowrap;
}

.thermas-header-menu .sub-menu a:hover,
.thermas-header-menu .sub-menu a:focus {
    background: #f2f3f9;
}

.thermas-mobile-menu-list .sub-menu {
    display: none;
    margin: 8px 0 0 14px;
    padding: 8px 0 0 12px;
    border-left: 1px solid #c1c7d2;
}

.thermas-mobile-menu-list .thermas-submenu-open > .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thermas-mobile-menu-list .menu-item-has-children > .thermas-submenu-toggle {
    top: 11px;
    transform: none;
}

.thermas-submenu-open > .thermas-submenu-toggle::before,
.thermas-header-menu .menu-item:hover > .thermas-submenu-toggle::before,
.thermas-header-menu .menu-item:focus-within > .thermas-submenu-toggle::before {
    top: 6px;
    transform: rotate(225deg);
}

.thermas-site-footer {
    margin-top: 96px;
    background: #eeeeee;
    color: #4b5563;
    font-family: 'Work Sans', sans-serif;
}

.thermas-site-footer__inner {
    width: 100%;
    max-width: 1240px;
    min-height: 96px;
    margin: 0 auto;
    padding: 18px 18px 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: start;
    gap: 38px;
}

.thermas-site-footer__section h2 {
    margin: 0 0 10px;
    color: #00609c;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.thermas-site-footer__section p,
.thermas-site-footer__line {
    margin: 0 0 4px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.15;
}

.thermas-site-footer__line {
    display: flex;
    align-items: center;
    gap: 9px;
}

.thermas-site-footer__phone-icon {
    position: relative;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 1.8px solid #667085;
    border-radius: 50%;
}

.thermas-site-footer__phone-icon::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 3px;
    width: 5px;
    height: 8px;
    border-right: 2px solid #667085;
    border-bottom: 2px solid #667085;
    transform: rotate(140deg);
    border-radius: 1px;
}

.thermas-site-footer__payment img {
    display: block;
    max-width: 230px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.thermas-site-footer__payment p {
    max-width: 260px;
}

.thermas-site-footer__payment-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    max-width: 300px;
}

.thermas-site-footer__payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 31px;
}

.thermas-site-footer__payment-icon svg {
    display: block;
    width: 50px;
    height: 31px;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.thermas-site-footer__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.thermas-site-footer__social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: #4b5563;
    border-radius: 8px;
}

.thermas-site-footer__social-links a svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.thermas-site-footer__social-links a:hover {
    color: #00609c;
}

.thermas-site-footer__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.thermas-site-footer__location {
    text-align: center;
}

.thermas-site-footer__badge img {
    display: block;
    width: auto;
    max-width: 86px;
    max-height: 76px;
    object-fit: contain;
}

.thermas-floating-whatsapp {
    position: fixed;
    right: var(--thermas-wa-right, 24px);
    bottom: var(--thermas-wa-bottom, 24px);
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--thermas-wa-size, 58px);
    height: var(--thermas-wa-size, 58px);
    background: #25d366;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.thermas-floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
}

.thermas-floating-whatsapp svg {
    width: calc(var(--thermas-wa-size, 58px) * 0.56);
    height: calc(var(--thermas-wa-size, 58px) * 0.56);
    fill: currentColor;
}

/* ─── Flatpickr - Thermas Calendar Design ─── */
.flatpickr-calendar {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
    width: 100% !important;
    padding: 24px !important;
    border-radius: 12px !important;
}

.flatpickr-calendar .flatpickr-innerContainer,
.flatpickr-calendar .flatpickr-rContainer,
.flatpickr-calendar .flatpickr-days .dayContainer {
    background: #ffffff !important;
}

.flatpickr-calendar .flatpickr-rContainer {
    width: 100% !important;
}

/* ── Header: month/year left, arrows right ── */
.flatpickr-calendar .flatpickr-months {
    color: #1E3A8A;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
    display: flex !important;
    align-items: center !important;
    position: static !important;
}

.flatpickr-calendar .flatpickr-month {
    color: #1E3A8A;
    fill: #1E3A8A;
    width: auto !important;
    flex: 1 1 auto;
    order: 0;
}

.flatpickr-calendar .flatpickr-current-month {
    display: block;
    text-align: left;
}

.flatpickr-calendar .flatpickr-current-month .thermas-month-label {
    color: #1E3A8A;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.3em;
}

/* ── Navigation arrows: both on the right ── */
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    flex-shrink: 0;
    fill: #9CA3AF;
    color: #9CA3AF;
    padding: 4px;
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month {
    order: 1;
    margin-left: 12px;
}

.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
    order: 2;
    margin-left: 8px;
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover {
    fill: #374151;
    color: #374151;
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month svg,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month svg {
    width: 18px;
    height: 18px;
}

/* ── Calendar wrapper (same as ticket card) ── */
.thermas-calendar-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s ease;
}

.thermas-calendar-wrapper:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ── Weekday labels ── */
.flatpickr-calendar .flatpickr-weekdays {
    background: #F9FAFB;
    margin-bottom: 8px;
    border-radius: 8px;
}

.flatpickr-calendar .flatpickr-weekday {
    color: #6B7280;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ── Day grid ── */
.flatpickr-calendar .flatpickr-days {
    width: 100%;
}

.flatpickr-calendar .dayContainer {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px;
}

/* ── Day cells ── */
.flatpickr-calendar .flatpickr-day {
    background: #f3f4f6;
    color: #374151;
    border: none !important;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    width: calc((100% - 24px) / 7) !important;
    max-width: calc((100% - 24px) / 7) !important;
    flex: 0 0 calc((100% - 24px) / 7) !important;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.15s ease;
    padding: 6px 2px;
}

/* Promotion badge inside day cell */
.thermas-day-promo-badge {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.62em;
    font-weight: 800;
    color: #ffffff;
    background: #F97316;
    border-radius: 4px;
    padding: 2px 6px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
    text-align: center;
}

@media (min-width: 769px) {
    .thermas-day-promo-badge,
    .thermas-ticket-promo-badge {
        font-size: 0.65em;
        padding: 2px 8px;
    }
}

/* Days with price */
.flatpickr-day.thermas-has-price {
    cursor: pointer;
}

.flatpickr-day.thermas-has-price:hover {
    background: #e5e7eb;
}

/* Selected day */
.flatpickr-calendar .flatpickr-day.selected {
    background: #F97316 !important;
    color: #ffffff !important;
    border-color: #F97316 !important;
    font-weight: 700;
}

/* Today */
.flatpickr-calendar .flatpickr-day.today {
    border: 2px solid #1E3A8A !important;
    color: #1E3A8A;
    font-weight: 700;
}

/* Days without price (disabled look) */
.flatpickr-day.thermas-no-price:not(.selected) {
    color: #9CA3AF;
    cursor: not-allowed;
}

.flatpickr-day.thermas-no-price:not(.selected):hover {
    background: transparent;
}

/* Other month days */
.flatpickr-calendar .flatpickr-day.prevMonthDay,
.flatpickr-calendar .flatpickr-day.nextMonthDay {
    color: #d1d5db;
    visibility: hidden;
}

.flatpickr-calendar .flatpickr-day.disabled,
.flatpickr-calendar .flatpickr-day.disabled.thermas-has-price {
    color: #9CA3AF !important;
    cursor: not-allowed !important;
}

.flatpickr-calendar .flatpickr-day.disabled:hover,
.flatpickr-calendar .flatpickr-day.disabled.thermas-has-price:hover {
    background: transparent;
}

.thermas-promo-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.thermas-promo-modal.is-open {
    display: flex;
}

.thermas-promo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 28, 31, 0.58);
}

.thermas-promo-modal-panel {
    position: relative;
    width: min(480px, 100%);
    max-height: min(600px, 88vh);
    overflow: auto;
    padding: 28px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.thermas-promo-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.thermas-promo-modal-close:hover,
.thermas-promo-modal-close:focus {
    background: #e5e7eb;
    color: #374151;
    outline: none;
}

.thermas-promo-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.thermas-promo-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #FFF3CD;
    border-radius: 12px;
    font-size: 1.4rem;
}

.thermas-promo-modal-panel h2 {
    margin: 0;
    color: #1E3A8A;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
}

.thermas-promo-modal-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.thermas-promo-modal-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

.thermas-promo-modal-item:first-child {
    border-left: 4px solid #F97316;
}

.thermas-promo-modal-product {
    margin: 0 0 4px;
    color: #6b7280;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thermas-promo-modal-item h3 {
    margin: 0 0 6px;
    color: #171c1f;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.thermas-promo-modal-description {
    margin: 0;
    color: #4b5563;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

body.thermas-promo-modal-open {
    overflow: hidden;
}

/* ─── WooCommerce Checkout Overrides (Light) ─── */

/* Reset all WooCommerce form containers */
.woocommerce .woocommerce-checkout .col2-set,
.woocommerce-page .woocommerce-checkout .col2-set {
    width: 100% !important;
    float: none !important;
}

.woocommerce .woocommerce-checkout .col2-set .col-1,
.woocommerce .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    float: none !important;
}

/* Remove default WooCommerce section titles */
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
    display: none !important;
}

/* Form row grid layout */
.woocommerce .woocommerce-checkout .form-row {
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.woocommerce .woocommerce-checkout .form-row-first,
.woocommerce .woocommerce-checkout .form-row-last {
    width: 48% !important;
    display: inline-block !important;
    vertical-align: top;
}

.woocommerce .woocommerce-checkout .form-row-first {
    margin-right: 4% !important;
}

.woocommerce .woocommerce-checkout .form-row-wide {
    width: 100% !important;
    clear: both;
}

/* Form labels */
.woocommerce form .form-row label {
    display: block;
    color: #414750;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.woocommerce form .form-row .required {
    color: #fc901c;
}

/* Input fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: #e7e8ee !important;
    border: none !important;
    border-radius: 8px;
    color: #191c20 !important;
    padding: 14px 16px !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    width: 100%;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    background: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 62, 111, 0.15);
}

.woocommerce form .form-row input.input-text::placeholder {
    color: #727781;
}

/* Select2 dropdowns */
.woocommerce form .form-row .select2-container--default .select2-selection--single {
    background: #e7e8ee !important;
    border: none !important;
    border-radius: 8px;
    height: auto !important;
    padding: 10px 16px !important;
    font-family: 'Work Sans', sans-serif;
}

.woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #191c20 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

.woocommerce form .form-row .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

/* Billing/Shipping field containers */
.woocommerce-checkout #customer_details .woocommerce-billing-fields,
.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #customer_details {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
    margin: 0 !important;
    padding: 0 !important;
}

/* CPF field specific */
#billing_cpf_field input {
    font-size: 0.9rem !important;
}

/* Payment section */
.woocommerce-checkout #payment {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 12px 0 !important;
}

.woocommerce-checkout #payment ul.payment_methods::before,
.woocommerce-checkout #payment ul.payment_methods::after {
    display: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li {
    background: #f2f3f9;
    border: none !important;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 8px;
    transition: background 0.2s ease;
    list-style: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li::before,
.woocommerce-checkout #payment ul.payment_methods li::after {
    display: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li:hover {
    background: #e7e8ee;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    color: #191c20;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
    margin-right: 8px;
    accent-color: #003e6f;
}

/* Payment description text */
.woocommerce-checkout #payment .payment_box {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 0 0 !important;
    margin: 0 !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #414750;
}

.woocommerce-checkout #payment .payment_box p {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #414750;
}

/* Place order button */
.woocommerce-checkout #payment div.place-order {
    padding: 20px 0 0 !important;
    margin: 0 !important;
}

.woocommerce-checkout #payment div.place-order button.button,
.woocommerce-checkout #payment div.place-order button#place_order {
    background: #F97316 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px 24px !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem !important;
    font-weight: 600 !important;
    width: 100%;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce-checkout #payment div.place-order button.button:hover,
.woocommerce-checkout #payment div.place-order button#place_order:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Terms checkbox */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 12px;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .validate-required {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    color: #414750;
}

/* Hide WooCommerce notices default styling */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    background: #f2f3f9 !important;
    color: #191c20 !important;
    border-radius: 8px;
    border: none !important;
    padding: 16px 20px !important;
    font-family: 'Work Sans', sans-serif;
}

.woocommerce-checkout .woocommerce-error {
    display: block;
    margin: 0 0 24px !important;
    padding: 18px 20px 20px !important;
    background: #ffffff !important;
    border: 1px solid #f4b000 !important;
    border-bottom: 10px solid transparent !important;
    border-image: repeating-linear-gradient(45deg, #f4b000 0 28px, #27231f 28px 52px) 0 0 10 0 !important;
    border-radius: 8px !important;
    color: #171c1f !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    font-family: 'Work Sans', sans-serif;
    list-style: none !important;
}

.woocommerce-checkout .woocommerce-error::before {
    content: 'Manutencao em andamento';
    display: block;
    margin-bottom: 6px;
    color: #b45309;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.woocommerce-checkout .woocommerce-error li {
    margin: 0 !important;
    padding: 0 !important;
    color: #171c1f !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    list-style: none !important;
}

/* Remove order review default styles */
.woocommerce-checkout-review-order {
    margin: 0;
    padding: 0;
}

.woocommerce-checkout-review-order-table {
    display: none !important;
}

/* Hide any extra WooCommerce wrappers */
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: transparent !important;
}

/* Checkout form container */
.woocommerce form.checkout {
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce form.checkout::before,
.woocommerce form.checkout::after {
    display: none !important;
}

/* Fix any float issues */
.woocommerce .col2-set::after,
.woocommerce .col2-set::before {
    display: none !important;
    content: none !important;
}

/* Login form on checkout */
.woocommerce-form-login {
    background: #f2f3f9;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 16px;
}

.woocommerce-form-login .form-row {
    margin-bottom: 12px !important;
}

.woocommerce-form-login button {
    background: #003e6f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600 !important;
    cursor: pointer;
}

/* ─── Animations ─── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.thermas-calendar-container {
    animation: fadeIn 0.3s ease;
}

.thermas-maintenance-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #f4b000;
    border-bottom: 10px solid transparent;
    border-image: repeating-linear-gradient(45deg, #f4b000 0 28px, #27231f 28px 52px) 0 0 10 0;
    border-radius: 8px;
    color: #171c1f;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.thermas-maintenance-kicker {
    display: block;
    margin-bottom: 6px;
    color: #b45309;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.thermas-maintenance-banner p {
    margin: 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    line-height: 1.5;
}

.thermas-maintenance-eta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 12px;
    background: #27231f;
    color: #ffffff;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.thermas-checkout-blocked,
.thermas-checkout-blocked:hover {
    opacity: 0.62;
    cursor: not-allowed;
}

.thermas-checkout-maintenance-lock {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.thermas-checkout-maintenance-lock p {
    margin: 0;
    color: #414750;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
}

.thermas-checkout-maintenance-lock button.button[disabled] {
    width: 100%;
    padding: 16px 24px !important;
    background: #727781 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: not-allowed !important;
    font-family: 'Work Sans', sans-serif;
    font-weight: 600 !important;
    opacity: 0.75;
}

.thermas-notice-card {
    background: #ffffff;
    border: 1px solid #414750;
    border-radius: 8px;
    padding: 18px 16px;
    color: #000000;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.65;
}

.thermas-notice-card h2 {
    margin: 0 0 20px;
    color: #ff0000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.25;
}

.thermas-notice-card p {
    margin: 0 0 22px;
}

.thermas-notice-card p:last-child {
    margin-bottom: 0;
}

.thermas-notice-card-small {
    min-height: 114px;
}

#thermas-tickets {
    animation: fadeIn 0.4s ease;
}

/* ─── Ticket Card Design ─── */
.thermas-ticket-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s ease;
}

.thermas-ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.thermas-ticket-card-promotion {
    border-color: #005596;
    cursor: pointer;
}

.thermas-ticket-card-promotion:hover,
.thermas-ticket-card-promotion:focus {
    box-shadow: 0 8px 20px rgba(0, 62, 111, 0.14);
    outline: 2px solid #d3e4ff;
    outline-offset: 2px;
}

.thermas-ticket-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.thermas-ticket-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E3A8A;
    margin: 0;
    line-height: 1.2;
}

.thermas-ticket-price-area {
    text-align: right;
    flex-shrink: 0;
}

.thermas-ticket-price-label {
    display: block;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.thermas-ticket-badge {
    display: inline-block;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #B8860B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.thermas-ticket-desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
}

.thermas-ticket-promo-badge {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.62em;
    font-weight: 800;
    color: #ffffff;
    background: #F97316;
    border-radius: 4px;
    padding: 4px 8px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-decoration: none;
}

.thermas-ticket-promo-badge:hover,
.thermas-ticket-promo-badge:focus {
    background: #ea580c;
    outline: none;
}

.thermas-ticket-promo-link {
    display: none;
}

.thermas-ticket-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1E3A8A;
}

.thermas-ticket-price-empty {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.875rem;
    color: #9CA3AF;
}

.thermas-ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
}

.thermas-qty-selector {
    display: flex;
    align-items: center;
}

.thermas-qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.thermas-qty-btn-minus {
    background: #F3F4F6;
    color: #374151;
}

.thermas-qty-btn-minus:hover:not(.disabled) {
    background: #E5E7EB;
}

.thermas-qty-btn-minus.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.thermas-qty-btn-plus {
    background: #2563EB;
    color: #ffffff;
}

.thermas-qty-btn-plus:hover {
    background: #1D4ED8;
}

.thermas-qty-value {
    width: 40px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
}

/* ─── Order Confirmation (Thankyou Page) ─── */

/* Hide default WooCommerce order details (we use our custom layout) */
.woocommerce-order.thermas-order-confirmed ul.order_details {
    display: none !important;
}

/* Hide default "Order received" text (we have our own header) */
.woocommerce-order.thermas-order-confirmed .woocommerce-thankyou-order-received {
    display: none !important;
}

/* Hide WooCommerce notices on thankyou page (we show our own status) */
.woocommerce-order.thermas-order-confirmed .woocommerce-notice {
    display: none !important;
}

/* ─── PIX / Payment Gateway Card ─── */
.thermas-pix-card {
    animation: thermas-fade-up 0.6s ease-out 0.3s both;
}

.thermas-pix-card-inner {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.thermas-pix-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 32px;
    background: #f2f3f9;
    border-bottom: 1px solid #e7e8ee;
}

.thermas-pix-content {
    padding: 32px;
}

/* ─── Override all gateway inner elements ─── */
.thermas-pix-content * {
    font-family: 'Work Sans', sans-serif !important;
}

.thermas-pix-content p {
    color: #191c20;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.thermas-pix-content p:last-child {
    margin-bottom: 0;
}

/* Gateway tables */
.thermas-pix-content table {
    width: 100%;
    border-collapse: collapse;
    background: #f2f3f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.thermas-pix-content table:last-child {
    margin-bottom: 0;
}

.thermas-pix-content table th,
.thermas-pix-content table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.875rem;
    color: #414750;
    border: none;
}

.thermas-pix-content table th {
    font-weight: 700;
    color: #191c20;
    background: #e7e8ee;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.thermas-pix-content table tr {
    border-bottom: 1px solid #e7e8ee;
}

.thermas-pix-content table tr:last-child {
    border-bottom: none;
}

/* QR Code images */
.thermas-pix-content img {
    max-width: 180px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
}

/* PIX code / payload text */
.thermas-pix-content .pix-code,
.thermas-pix-content .wc-pix-code,
.thermas-pix-content [class*="pix-code"],
.thermas-pix-content [class*="pix-payload"],
.thermas-pix-content code,
.thermas-pix-content pre {
    background: #f2f3f9 !important;
    border-radius: 8px;
    padding: 16px !important;
    font-family: 'Work Sans', monospace !important;
    font-size: 0.8rem !important;
    color: #414750;
    word-break: break-all;
    line-height: 1.5;
    margin-bottom: 16px;
    border: 1px solid #e7e8ee;
    white-space: pre-wrap;
}

/* Buttons inside gateway output */
.thermas-pix-content button,
.thermas-pix-content .button,
.thermas-pix-content a.button,
.thermas-pix-content input[type="button"],
.thermas-pix-content input[type="submit"] {
    background: #003e6f !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 28px !important;
    font-family: 'Work Sans', sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.thermas-pix-content button:hover,
.thermas-pix-content .button:hover,
.thermas-pix-content a.button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Links inside gateway output */
.thermas-pix-content a {
    color: #003e6f;
    text-decoration: none;
    font-weight: 500;
}

.thermas-pix-content a:hover {
    text-decoration: underline;
}

/* WooCommerce BACS (bank transfer) details */
.thermas-pix-content .wc-bacs-bank-details {
    background: #f2f3f9;
    border-radius: 8px;
    padding: 20px;
}

.thermas-pix-content .wc-bacs-bank-details-heading {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-weight: 700;
    font-size: 1rem;
    color: #003e6f;
    margin-bottom: 12px;
}

/* Headings inside gateway */
.thermas-pix-content h2,
.thermas-pix-content h3,
.thermas-pix-content h4 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #003e6f;
    margin-bottom: 12px;
}

.thermas-pix-content h2 { font-size: 1.25rem; font-weight: 700; }
.thermas-pix-content h3 { font-size: 1.1rem; font-weight: 700; }
.thermas-pix-content h4 { font-size: 1rem; font-weight: 600; }

/* Lists inside gateway */
.thermas-pix-content ul,
.thermas-pix-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.thermas-pix-content li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #414750;
}

/* Strong/bold text */
.thermas-pix-content strong {
    color: #191c20;
    font-weight: 600;
}

/* QR code specific containers */
.thermas-pix-content .wc-pix-qrcode,
.thermas-pix-content [class*="qr-code"],
.thermas-pix-content [class*="qrcode"] {
    text-align: center;
    padding: 20px;
}

/* Countdown timers */
.thermas-pix-content [class*="countdown"],
.thermas-pix-content [class*="timer"],
.thermas-pix-content [class*="expire"] {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 0.85rem;
    color: #904d00;
    font-weight: 600;
    text-align: center;
    margin-top: 12px;
}

/* Dividers */
.thermas-pix-content hr {
    border: none;
    height: 1px;
    background: #e7e8ee;
    margin: 20px 0;
}

/* Generic WooCommerce gateway boxes */
.thermas-pix-content .wc-payment-gateway-instructions,
.thermas-pix-content .payment_box,
.thermas-pix-content [class*="payment-instructions"] {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* WooCommerce order details that might slip through */
.thermas-order-confirmed .woocommerce-order-details {
    display: none !important;
}

.thermas-order-confirmed .woocommerce-customer-details {
    display: none !important;
}

.thermas-order-confirmed .woocommerce-order-downloads {
    display: none !important;
}

/* Success animation */
@keyframes thermas-success-pop {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes thermas-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.thermas-order-confirmed > .text-center:first-child {
    animation: thermas-success-pop 0.5s ease-out;
}

.thermas-order-confirmed > .grid {
    animation: thermas-fade-up 0.6s ease-out 0.2s both;
}

.thermas-order-confirmed > .bg-primary {
    animation: thermas-fade-up 0.6s ease-out 0.4s both;
}

/* Responsive adjustments for order confirmation */
@media (max-width: 768px) {
    .thermas-site-footer {
        margin-top: 56px;
    }

    .thermas-site-footer__inner {
        min-height: 0;
        padding: 30px 18px;
        grid-template-columns: 1fr;
        gap: 22px;
        text-align: center;
    }

    .thermas-site-footer__line,
    .thermas-site-footer__payment-icons,
    .thermas-site-footer__social-links {
        justify-content: center;
    }

    .thermas-site-footer__payment img,
    .thermas-site-footer__badge img {
        margin: 0 auto;
    }

    .thermas-maintenance-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .thermas-maintenance-eta {
        width: 100%;
    }

    .thermas-calendar-shell {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .flatpickr-calendar {
        padding: 12px !important;
        border-radius: 8px !important;
    }

    .flatpickr-calendar .flatpickr-months {
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .flatpickr-calendar .flatpickr-current-month .thermas-month-label {
        font-size: 1em;
    }

    .flatpickr-calendar .flatpickr-weekday {
        font-size: 0.68em;
    }

    .flatpickr-calendar .dayContainer {
        gap: 2px;
    }

    .flatpickr-calendar .flatpickr-day {
        border-radius: 6px;
        flex-basis: calc((100% - 12px) / 7) !important;
        max-width: calc((100% - 12px) / 7) !important;
        width: calc((100% - 12px) / 7) !important;
        min-height: 48px;
        padding: 4px 1px;
        font-size: 0.85em;
    }

    .flatpickr-calendar .flatpickr-day.thermas-has-promotion {
        position: relative;
        padding-top: 18px;
    }

    .thermas-day-promo-badge {
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.58em;
        padding: 2px 4px;
        z-index: 10;
        white-space: nowrap;
    }

    #thermas-cart-bar {
        max-width: 100vw;
        overflow-x: hidden;
    }

    .thermas-order-confirmed .bg-primary.rounded-thermas-lg {
        padding: 24px;
    }

    .thermas-order-confirmed .bg-primary .flex-col.md\\:flex-row {
        gap: 24px;
    }

    .thermas-pix-header {
        padding: 16px 20px;
    }

    .thermas-pix-content {
        padding: 20px;
    }

    .thermas-pix-content img {
        max-width: 150px;
    }
}

/* ─── PIX Payment — Enhanced Centered Design ─── */
.thermas-pix-content .pix-payment {
    text-align: center;
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.thermas-pix-content .pix-payment h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #003e6f;
    margin: 0 0 10px;
    text-align: center;
}

.thermas-pix-content .pix-payment > p {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 18px;
    text-align: center;
    line-height: 1.55;
}

.thermas-pix-content .pix-qr-container {
    max-width: 200px;
    width: 100%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e7e8ee;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.thermas-pix-content .pix-qr-container img.pix-qr {
    max-width: 100%;
    margin: 0;
    display: block;
    border-radius: 8px;
}

.thermas-pix-content .code-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    background: #f8f9fc;
    border: 1px solid #e7e8ee;
    border-radius: 12px;
    padding: 16px 20px;
}

.thermas-pix-content .code-container label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.thermas-pix-content .code-container .pix-code-label {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.thermas-pix-content .code-container input[type="text"].pix-code {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    color: #374151;
    word-break: break-all;
    text-align: left;
    line-height: 1.5;
}

.thermas-pix-content .code-container .copy-btn {
    background: #003e6f;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-family: 'Work Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: none;
    letter-spacing: 0;
}

.thermas-pix-content .code-container .copy-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.thermas-pix-content .code-container .copied {
    display: none;
    color: #16a34a;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    margin: 0;
}

.thermas-pix-content .pix-exiration-container {
    margin-top: 8px;
    padding: 10px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    width: 100%;
    max-width: 420px;
}

.thermas-pix-content .pix-exiration-container p {
    margin: 0;
    font-size: 0.82rem;
    color: #92400e;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.thermas-pix-content .pix-payment-confirmed {
    text-align: center;
    padding: 20px;
}

.thermas-pix-content .pix-payment-confirmed h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #16a34a;
    margin: 0 0 8px;
}

.thermas-pix-content .pix-payment-confirmed p {
    font-family: 'Work Sans', sans-serif;
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
}

.thermas-pix-content .boleto-container {
    margin-bottom: 24px;
    text-align: center;
}

.thermas-pix-content .pix-payment * {
    font-family: 'Work Sans', sans-serif !important;
}

.thermas-pix-content .pix-payment h2 {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}
