/* ================================================================
   TAM Events – Styles for event cards and single event pages
   ================================================================ */

/* ── Reduce top spacing on pages with event listing ────────── */

.page:has(.tc-event-listing-container) .nv-page-title-wrap {
    padding: 10px 0;
    margin-bottom: 0;
}

.page:has(.tc-event-listing-container) .nv-content-wrap {
    padding-top: 0;
}

.page:has(.tc-event-listing-container) .entry-content {
    margin-top: 0;
}

/* Also hide the page title "Bilete" since the filters serve as the header */
.page:has(.tc-event-listing-container) .nv-page-title-wrap .entry-title {
    display: none;
}

/* ── Page layout overrides ─────────────────────────────────── */

/* Make the listing container full-width */
.tc-event-listing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Override Tickera's flex grid — use CSS grid for proper card layout */
.tclist-events {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px !important;
    margin-top: 20px !important;
}

/* Hide empty spacer divs Tickera adds for grid alignment */
.tclist-events > .tc-single-event:empty {
    display: none !important;
}

@media (max-width: 1100px) {
    .tclist-events {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 860px) {
    .tclist-events {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tclist-events {
        grid-template-columns: 1fr;
    }
}

/* ── Event Card Enhancements (listing page) ────────────────── */

/* Card base */
.tc-single-event {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    /* Reset Tickera's flex sizing */
    flex: none !important;
    width: auto !important;
}

.tc-single-event:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
}

/* Featured image */
.tc-single-event .tc-get-featured-image {
    overflow: hidden;
}

.tc-single-event .tc-get-featured-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
    display: block;
}

.tc-single-event:hover .tc-get-featured-image img {
    transform: scale(1.04);
}

/* ── New card body (replaces .tc-event-content-wrap) ───────── */

.tam-card-body {
    padding: 18px 20px 20px;
}

.tam-card-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ── Date Badge (inline, next to title) ────────────────────── */

.tam-date-badge {
    flex-shrink: 0;
    background: #1a6847;
    color: #fff;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    line-height: 1.15;
    min-width: 58px;
}

.tam-badge-day {
    display: block;
    font-size: 1.75em;
    font-weight: 800;
    line-height: 1;
}

.tam-badge-month {
    display: block;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 2px;
}

.tam-badge-weekday {
    display: block;
    font-size: 0.7em;
    opacity: 0.8;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 4px;
}

/* ── Card info (title + times + location) ──────────────────── */

.tam-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tam-card-title {
    margin: 0 0 10px 0;
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
}

.tam-card-title a {
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.15s ease;
}

.tam-card-title a:hover {
    color: #1a6847;
}

/* ── Time Pills ────────────────────────────────────────────── */

.tam-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tam-time-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    background: #eaf5f0;
    color: #1a6847 !important;
    border: 1.5px solid #1a6847;
    border-radius: 20px;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.tam-time-pill:hover {
    background: #1a6847;
    color: #fff !important;
}

.tam-time-pill svg {
    opacity: 0.7;
}

/* ── Location ──────────────────────────────────────────────── */

.tam-card-location {
    color: #555;
    font-size: 0.86rem;
    line-height: 1.4;
}

/* ── Hide original Tickera elements ────────────────────────── */

.tc-single-event .tc-event-excerpt {
    display: none;
}

/* Hide Tickera's built-in filters (replaced by our month + show filters) */
.tc-event-listing-container > .tclist-filters {
    display: none;
}

/* Hide Tickera pagination (all events shown, filtered client-side) */
.tc-event-listing-container .pagination {
    display: none;
}

/* Hide WooCommerce "no products found" notice on tickets page */
.woocommerce-info {
    display: none;
}

/* Hide grouped duplicate cards */
.tam-grouped-hidden {
    display: none !important;
}

/* ================================================================
   Filters
   ================================================================ */

.tam-filters {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

/* ── Month buttons ─────────────────────────────────────────── */

.tam-filter-months {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tam-month-btn {
    padding: 8px 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 24px;
    background: #fff;
    color: #333;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tam-month-btn:hover {
    border-color: #1a6847;
    color: #1a6847;
}

.tam-month-btn.tam-active {
    background: #1a6847;
    border-color: #1a6847;
    color: #fff;
}

/* ── Show dropdown ─────────────────────────────────────────── */

.tam-filter-show {
    margin-left: auto;
}

.tam-show-select {
    padding: 8px 36px 8px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 200px;
    transition: border-color 0.2s ease;
}

.tam-show-select:hover,
.tam-show-select:focus {
    border-color: #1a6847;
    outline: none;
}

/* ── No results message ────────────────────────────────────── */

.tam-no-results {
    text-align: center;
    color: #888;
    font-size: 1rem;
    padding: 40px 20px;
}

/* ── Filter responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
    .tam-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .tam-filter-months {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        flex-wrap: nowrap;
    }

    .tam-filter-show {
        margin-left: 0;
    }

    .tam-show-select {
        width: 100%;
    }
}

/* ================================================================
   Single Event Page (Afisha-style two-column layout)
   ================================================================ */

/* Hide Tickera's default date/location header */
body.single-tc_events .tc_the_content_pre {
    display: none;
}

/* Hide Tickera's native "Alege locurile" button (replaced by our sticky CTA) */
body.single-tc_events .tc_seating_map_button {
    display: none !important;
}

/* Hide the empty Tickera seating chart wrapper */
body.single-tc_events .tc-seating-charts-wrap {
    display: none !important;
}

/* Hide Neve's page title on event pages (we render our own) */
body.single-tc_events .nv-page-title-wrap,
body.single-tc_events .entry-header,
body.single-tc_events h1.entry-title,
body.single-tc_events .nv-post-title {
    display: none !important;
}

/* Reduce top spacing */
body.single-tc_events .nv-single-post-wrap {
    padding-top: 0;
}

body.single-tc_events .nv-content-wrap {
    padding-top: 0;
}

/* Force overflow visible on ALL ancestors so position:sticky works */
body.single-tc_events .wrapper,
body.single-tc_events .neve-main,
body.single-tc_events .single-post-container,
body.single-tc_events .single-post-container > .row,
body.single-tc_events .nv-single-post-wrap,
body.single-tc_events .nv-content-wrap,
body.single-tc_events .entry-content,
body.single-tc_events .tam-event-page,
body.single-tc_events .tam-event-layout {
    overflow: visible !important;
}

/* ── Page wrapper ─────────────────────────────────────────── */

.tam-event-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Title ────────────────────────────────────────────────── */

.tam-event-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    padding-top: 24px;
    line-height: 1.2;
}

/* ── Two-column layout ────────────────────────────────────── */

.tam-event-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ── Left column: poster + description ────────────────────── */

.tam-event-main {
    flex: 1;
    min-width: 0;
}

.tam-main-poster-wrap {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.tam-main-poster-wrap img.tam-main-poster {
    width: 100%;
    height: auto;
    display: block;
}

.tam-main-description {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    color: #333;
    font-size: 0.95rem;
}

.tam-main-description p {
    margin-bottom: 0.7em;
}

.tam-main-description p:last-child {
    margin-bottom: 0;
}

/* ── Right column: sticky sidebar ─────────────────────────── */

.tam-event-sidebar {
    flex-shrink: 0;
    width: 300px;
    align-self: start; /* critical: don't stretch to match left column height */
    position: sticky;
    top: 24px;
}

.tam-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Sidebar CTA button ───────────────────────────────────── */

.tam-sidebar-cta {
    display: block;
    padding: 16px 24px;
    background: #1a6847;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}

.tam-sidebar-cta:hover {
    background: #145536;
    transform: translateY(-1px);
}

/* ── Sidebar details card ─────────────────────────────────── */

.tam-sidebar-details {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.tam-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.tam-detail-row:last-child {
    border-bottom: none;
}

.tam-detail-icon {
    font-size: 1.15em;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
    line-height: 1.4;
}

.tam-detail-text {
    font-size: 0.92rem;
    color: #444;
    line-height: 1.4;
}

.tam-detail-venue {
    font-weight: 700;
    color: #1a6847;
}

/* ── Sidebar upcoming dates ───────────────────────────────── */

.tam-sidebar-upcoming {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.tam-sidebar-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 14px 0;
}

.tam-upcoming-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

.tam-upcoming-row:last-child {
    margin-bottom: 0;
}

.tam-upcoming-row:hover {
    background: #f5f5f5;
}

.tam-upcoming-badge {
    background: #1a6847;
    color: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    text-align: center;
    min-width: 44px;
    line-height: 1.15;
    flex-shrink: 0;
}

.tam-upcoming-day {
    display: block;
    font-size: 1.3em;
    font-weight: 800;
    line-height: 1;
}

.tam-upcoming-month {
    display: block;
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.tam-upcoming-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tam-upcoming-weekday {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.88rem;
}

.tam-upcoming-time {
    color: #666;
    font-size: 0.82rem;
}

/* ── More Events Grid (bottom of single event page) ───────── */

.tam-more-events {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e0e0e0;
}

.tam-more-events-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

/* Hide stray <p> tags injected by wpautop */
.tam-more-events p:empty,
.tam-more-carousel p:empty,
.tam-more-carousel > p,
.tam-more-carousel-wrap > p {
    display: none !important;
}

/* Carousel wrapper with arrows */
.tam-more-events {
    /* position: relative; */
}

.tam-more-carousel-wrap {
    position: relative;
    padding: 0 48px;
}

.tam-more-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0 16px;
    scrollbar-width: none;
}

.tam-more-carousel::-webkit-scrollbar {
    display: none;
}

/* Navigation arrows */
.tam-more-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    font-size: 1.2rem;
    color: #333;
    padding: 0;
}

.tam-more-arrow:hover {
    background: #1a6847;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tam-more-arrow-left {
    left: 0;
}

.tam-more-arrow-right {
    right: 0;
}

/* Cards */
.tam-more-card {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tam-more-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.tam-more-card-img {
    overflow: hidden;
    height: 260px;
    background: #e8e8e8;
}

.tam-more-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.tam-more-card:hover .tam-more-card-img img {
    transform: scale(1.04);
}

/* Card body within carousel */
.tam-more-card .tam-card-body {
    padding: 14px 16px 16px;
}

.tam-more-card .tam-card-title {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.tam-more-card .tam-time-pill {
    font-size: 0.8rem;
    padding: 3px 10px;
}

.tam-more-card .tam-card-location {
    font-size: 0.8rem;
}

.tam-more-card > p:empty,
.tam-more-card > p {
    display: none !important;
}

/* ── Responsive — Single Event ────────────────────────────── */

@media (max-width: 900px) {
    .tam-event-layout {
        flex-direction: column;
    }

    .tam-event-sidebar {
        width: 100%;
    }

    .tam-sidebar-inner {
        position: static;
    }

    .tam-more-card {
        width: 260px;
    }

    .tam-event-title {
        font-size: 1.7rem;
    }

    /* Remove padding on mobile event page */
    .tam-event-page {
        padding: 0 !important;
    }

    body.single-tc_events .nv-single-post-wrap {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Sticky footer CTA on mobile */
    .tam-sidebar-cta {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        border-radius: 0 !important;
        padding: 16px 24px !important;
        font-size: 1.1rem !important;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25) !important;
    }

    /* Add bottom padding so content and footer aren't hidden behind sticky CTA */
    body.single-tc_events {
        padding-bottom: 70px;
    }

    body.single-tc_events .site-footer,
    body.single-tc_events footer {
        padding-bottom: 70px;
    }
}

/* ── Responsive — Card listing ────────────────────────────── */

@media (max-width: 768px) {
    .tam-card-row {
        gap: 10px;
    }

    .tam-date-badge {
        padding: 6px 8px;
        min-width: 46px;
    }

    .tam-badge-day {
        font-size: 1.4em;
    }

    .tam-card-title {
        font-size: 0.95rem;
    }

    .tam-time-pill {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
}

/* ================================================================
   WooCommerce Cart & Checkout
   ================================================================ */

/* ── Cart page layout ─────────────────────────────────────── */

.woocommerce-cart .nv-page-title-wrap {
    padding: 10px 0;
}

.woocommerce-cart .entry-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Hide "Actualizeaza cosul" button — useless for ticket sales */
.woocommerce-cart .actions .button[name="update_cart"] {
    display: none !important;
}

/* Also hide the coupon section if not needed */
.woocommerce-cart .coupon {
    display: none;
}

/* ── Cart table ───────────────────────────────────────────── */

.woocommerce-cart table.shop_table {
    border: none;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.woocommerce-cart table.shop_table th {
    background: #f8f8f8;
    border-bottom: 2px solid #eee;
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
}

.woocommerce-cart table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

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

/* Product image in cart */
.woocommerce-cart table.shop_table .product-thumbnail img {
    border-radius: 8px;
    width: 80px;
    height: auto;
}

/* Product name link */
.woocommerce-cart table.shop_table .product-name a {
    text-decoration: none;
    font-weight: 600;
    color: #1a1a1a;
}

.woocommerce-cart table.shop_table .product-name a:hover {
    color: #1a6847;
}

/* Variation details (seat info) */
.woocommerce-cart table.shop_table .product-name .variation {
    margin-top: 4px;
}

.woocommerce-cart table.shop_table .product-name .variation dt,
.woocommerce-cart table.shop_table .product-name .variation dd {
    display: inline;
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Remove item button */
.woocommerce-cart table.shop_table .product-remove a {
    color: #ccc !important;
    font-size: 1.4rem;
    transition: color 0.2s ease;
}

.woocommerce-cart table.shop_table .product-remove a:hover {
    color: #e44 !important;
}

/* ── Cart totals ──────────────────────────────────────────── */

.woocommerce-cart .cart_totals {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 24px;
    margin-top: 24px;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

.woocommerce-cart .cart_totals table {
    border: none;
}

.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    border-top: none;
}

.woocommerce-cart .cart_totals table tr:last-child th,
.woocommerce-cart .cart_totals table tr:last-child td {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

/* ── Checkout button ──────────────────────────────────────── */

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.button.checkout {
    display: block;
    background: #1a6847 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 24px !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    text-align: center;
    text-decoration: none !important;
    transition: background 0.2s ease !important;
    margin-top: 16px;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #145536 !important;
}

/* ── Empty cart ───────────────────────────────────────────── */

.woocommerce-cart .cart-empty {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.woocommerce-cart .return-to-shop a {
    display: inline-block;
    background: #1a6847;
    color: #fff !important;
    border-radius: 10px;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.woocommerce-cart .return-to-shop a:hover {
    background: #145536;
}

/* ── Checkout page ────────────────────────────────────────── */

.woocommerce-checkout .nv-page-title-wrap {
    padding: 10px 0;
    margin-bottom: 0;
}

/* Page title */
.woocommerce-checkout .entry-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
}

/* Reduce spacing between page title and content */
.woocommerce-checkout .nv-content-wrap {
    padding-top: 0;
}

.woocommerce-checkout #customer_details {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px;
    margin-bottom: 24px;
}

.woocommerce-checkout #customer_details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a6847;
    display: inline-block;
}

/* Form fields */
.woocommerce-checkout .form-row {
    margin-bottom: 16px;
}

.woocommerce-checkout .woocommerce-form-row label,
.woocommerce-checkout .form-row label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

.woocommerce-checkout .form-row .required {
    color: #1a6847;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    border: 1.5px solid #ddd !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    background: #fafafa !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #1a6847 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(26, 104, 71, 0.1) !important;
    background: #fff !important;
}

/* ── Order review (right side) — wrap heading + review in a single card ── */

.woocommerce-checkout #order_review_heading {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    padding: 24px 28px 16px;
    color: #1a1a1a;
    background: #fff;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-bottom: 2px solid #1a6847;
}

.woocommerce-checkout #order_review {
    background: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px 28px 28px;
    margin-top: 0;
}

/* Reduce gap between heading and review */
.woocommerce-checkout #order_review_heading + #order_review {
    margin-top: -1px;
}

/* Order table */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    border: none !important;
    margin-bottom: 20px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
    padding: 10px 0;
    border-bottom: 2px solid #eee;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td {
    font-size: 0.92rem;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    border-top: 2px solid #eee;
    border-bottom: none;
    padding-top: 14px;
}

/* ── Payment section ──────────────────────────────────────── */

.woocommerce-checkout .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.woocommerce-checkout .wc_payment_method {
    background: #f9f9f9;
    border: 1.5px solid #eee;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.woocommerce-checkout .wc_payment_method.active,
.woocommerce-checkout .wc_payment_method:hover {
    border-color: #1a6847;
}

.woocommerce-checkout .wc_payment_method label {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    cursor: pointer;
}

.woocommerce-checkout .payment_method_maib_gateway img {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-left: 8px;
}

.woocommerce-checkout .payment_box {
    background: transparent !important;
    padding: 10px 0 0 0 !important;
    color: #666;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ── Terms & conditions ───────────────────────────────────── */

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 16px 0;
    font-size: 0.88rem;
    color: #555;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: #1a6847;
    font-weight: 600;
}

/* ── Place order button ───────────────────────────────────── */

.woocommerce-checkout #place_order {
    background: #1a6847 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 16px 32px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
    width: 100%;
    cursor: pointer;
    letter-spacing: 0.02em;
}

.woocommerce-checkout #place_order:hover {
    background: #145536 !important;
    transform: translateY(-1px);
}

/* ── Privacy notice ───────────────────────────────────────── */

.woocommerce-checkout .woocommerce-privacy-policy-text {
    font-size: 0.82rem;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
}

.woocommerce-checkout .woocommerce-privacy-policy-text a {
    color: #1a6847;
}

/* ── Responsive cart & checkout ────────────────────────────── */

@media (max-width: 768px) {
    /* Convert cart table to card layout on mobile */
    .woocommerce-cart table.shop_table,
    .woocommerce-cart table.shop_table thead,
    .woocommerce-cart table.shop_table tbody,
    .woocommerce-cart table.shop_table tr,
    .woocommerce-cart table.shop_table td,
    .woocommerce-cart table.shop_table th {
        display: block;
        width: 100%;
    }

    .woocommerce-cart table.shop_table {
        border-radius: 12px;
    }

    /* Hide table header on mobile */
    .woocommerce-cart table.shop_table thead {
        display: none;
    }

    /* Each cart item as a card */
    .woocommerce-cart table.shop_table tr.cart_item {
        position: relative;
        padding: 16px;
        margin-bottom: 12px;
        border-bottom: 1px solid #f0f0f0;
    }

    .woocommerce-cart table.shop_table tr.cart_item:last-child {
        margin-bottom: 0;
        border-bottom: none;
    }

    /* Product image — centered at top */
    .woocommerce-cart table.shop_table td.product-thumbnail {
        text-align: center;
        padding: 0 0 12px 0;
        border-bottom: none;
    }

    .woocommerce-cart table.shop_table td.product-thumbnail img {
        width: 120px;
        height: auto;
        border-radius: 8px;
    }

    /* Product name */
    .woocommerce-cart table.shop_table td.product-name {
        text-align: center;
        padding: 0 0 8px 0;
        border-bottom: none;
        font-size: 1rem;
    }

    /* Price, quantity, subtotal — inline with labels */
    .woocommerce-cart table.shop_table td.product-price,
    .woocommerce-cart table.shop_table td.product-quantity,
    .woocommerce-cart table.shop_table td.product-subtotal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: none;
    }

    .woocommerce-cart table.shop_table td.product-price::before {
        content: 'Pret:';
        font-weight: 600;
        color: #555;
        font-size: 0.88rem;
    }

    .woocommerce-cart table.shop_table td.product-quantity::before {
        content: 'Cantitate:';
        font-weight: 600;
        color: #555;
        font-size: 0.88rem;
    }

    .woocommerce-cart table.shop_table td.product-subtotal::before {
        content: 'Subtotal:';
        font-weight: 600;
        color: #555;
        font-size: 0.88rem;
    }

    .woocommerce-cart table.shop_table td.product-subtotal {
        font-weight: 700;
        font-size: 1.05rem;
        color: #1a1a1a;
    }

    /* Remove button — top right corner */
    .woocommerce-cart table.shop_table td.product-remove {
        position: absolute;
        top: 12px;
        right: 12px;
        padding: 0;
        border-bottom: none;
        width: auto;
    }

    /* Hide actions row (update cart button already hidden) */
    .woocommerce-cart table.shop_table td.actions {
        display: none;
    }

    /* Cart totals card */
    .woocommerce-cart .cart_totals {
        padding: 20px;
        margin-top: 16px;
    }

    /* Checkout button full width */
    .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
        font-size: 1rem !important;
        padding: 14px 20px !important;
    }

    /* Checkout page — stack everything vertically */
    .woocommerce-checkout .col2-set {
        flex-direction: column;
        gap: 16px;
    }

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

    .woocommerce-checkout #customer_details {
        padding: 20px;
    }

    .woocommerce-checkout #order_review {
        padding: 20px;
    }
}
