body.woocommerce-cart.woocommerce-page form.woocommerce-cart-form table.shop_table td.product-name dl.variation dt.variation-Row,
body.woocommerce-checkout.woocommerce-page form.checkout.woocommerce-checkout table.shop_table td.product-name dl.variation dt.variation-Row {
    margin-bottom: 0;
}

/*
 * Reserved tickets are purchased through the seat map. Keep WooCommerce's
 * variation dropdown and price visible, but remove its quantity/Add to Cart
 * row. The QH Tix theme declares that row as display:grid!important, so this
 * workflow class must also use !important.
 */
body .qhtix-event-tickets form.variations_form.fooevents-advanced-mode-reserved .woocommerce-variation-add-to-cart,
body .qh-ticket-block form.variations_form.fooevents-advanced-mode-reserved .woocommerce-variation-add-to-cart,
body.single-product form.variations_form.fooevents-advanced-mode-reserved .woocommerce-variation-add-to-cart,
body .qhtix-event-tickets form.variations_form.fooevents-advanced-mode-unselected .woocommerce-variation-add-to-cart,
body .qh-ticket-block form.variations_form.fooevents-advanced-mode-unselected .woocommerce-variation-add-to-cart,
body.single-product form.variations_form.fooevents-advanced-mode-unselected .woocommerce-variation-add-to-cart {
    display: none !important;
}

/* Prevent the direct Product page from flashing inactive cart controls before
 * its selected variation has been classified. */
body.qhtix-linked-event-product .woocommerce div.product .summary form.variations_form .woocommerce-variation-add-to-cart {
    display: none !important;
}

body.qhtix-theme.qhtix-linked-event-product .woocommerce div.product .summary form.variations_form.fooevents-advanced-mode-reserved .woocommerce-variation-add-to-cart,
body.qhtix-theme.qhtix-linked-event-product .woocommerce div.product .summary form.variations_form.fooevents-advanced-mode-unselected .woocommerce-variation-add-to-cart {
    display: none !important;
}

body.qhtix-theme.qhtix-linked-event-product .woocommerce div.product .summary form.variations_form.fooevents-advanced-mode-general .woocommerce-variation-add-to-cart,
body.qhtix-theme.qhtix-linked-event-product .woocommerce div.product .summary form.variations_form.fooevents-advanced-mode-mixed .woocommerce-variation-add-to-cart {
    display: grid !important;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-seat-control {
    clear: both;
    margin: 20px 0 0 !important;
    width: 100%;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-seat-control .fooevents-open-seats-pos {
    align-items: center !important;
    background: #ff3d82 !important;
    border: 0 !important;
    border-radius: 13px !important;
    box-shadow: 0 12px 24px rgba(255, 61, 130, 0.2) !important;
    color: #ffffff !important;
    display: inline-flex !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    min-height: 56px;
    padding: 16px 24px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    width: 100% !important;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-seat-control .fooevents-open-seats-pos:hover,
body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-seat-control .fooevents-open-seats-pos:focus-visible {
    background: #e82f72 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-seat-control .fooevents-open-seats-pos:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.9) !important;
    outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * v1.0.9 mode-aware ticket lists.
 * WooCommerce's native selects remain in the form for variation matching but
 * the customer-facing workflow is represented by these explicit mode groups.
 * ---------------------------------------------------------------------- */
form.variations_form.fooevents-advanced-ticket-list-ready table.fooevents-advanced-native-selector {
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    white-space: nowrap !important;
    width: 1px !important;
}

form.variations_form.fooevents-advanced-ticket-list-ready .single_variation {
    display: none !important;
}

form.variations_form.fooevents-advanced-ticket-list-ready .fooevents_seating_chart:not(.fooevents-open-seats-pos) {
    display: none !important;
}

.fooevents-advanced-ticket-menu {
    display: grid;
    gap: 18px;
    margin: 0;
    width: 100%;
}

.fooevents-advanced-ticket-group {
    background: #fbf9fc;
    border: 1px solid #e5dce9;
    border-radius: 17px;
    box-sizing: border-box;
    padding: clamp(18px, 2.5vw, 24px);
    width: 100%;
}

.fooevents-advanced-ticket-group__header {
    margin-bottom: 15px;
}

.fooevents-advanced-ticket-group__header h3 {
    color: #170c21 !important;
    font-size: clamp(1rem, 2vw, 1.14rem) !important;
    font-weight: 850 !important;
    letter-spacing: -.01em !important;
    line-height: 1.25 !important;
    margin: 0 0 5px !important;
    text-transform: none !important;
}

.fooevents-advanced-ticket-group__header p {
    color: #6f6178 !important;
    font-size: .86rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.fooevents-advanced-ticket-list {
    display: grid;
    gap: 9px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fooevents-advanced-ticket-tier {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fooevents-advanced-ticket-tier__content,
.fooevents-advanced-ticket-choice {
    align-items: center;
    appearance: none;
    background: #fff;
    border: 1px solid #e4dce8;
    border-radius: 13px;
    box-shadow: none;
    box-sizing: border-box;
    color: #24142f;
    display: grid;
    font: inherit;
    gap: 8px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    line-height: 1.35;
    min-height: 58px;
    padding: 12px 14px;
    text-align: left;
    text-transform: none;
    width: 100%;
}

.fooevents-advanced-ticket-choice {
    cursor: pointer;
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fooevents-advanced-ticket-choice:hover,
.fooevents-advanced-ticket-choice:focus-visible {
    border-color: #ff4f8b;
    box-shadow: 0 8px 22px rgba(255, 79, 139, .14);
    outline: 0;
    transform: translateY(-1px);
}

.fooevents-advanced-ticket-choice.is-selected {
    background: #fff7fa;
    border-color: #ff4f8b;
    box-shadow: 0 0 0 3px rgba(255, 79, 139, .12);
}

.fooevents-advanced-ticket-choice.is-selected::before {
    background: #ff4f8b;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #ff4f8b;
    content: '';
    height: 8px;
    left: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
}

.fooevents-advanced-ticket-choice.is-selected .fooevents-advanced-ticket-tier__name {
    padding-left: 22px;
}

.fooevents-advanced-ticket-tier__name {
    color: inherit;
    font-size: .93rem;
    font-weight: 780;
    min-width: 0;
}

.fooevents-advanced-ticket-tier__price,
.fooevents-advanced-ticket-tier__price .amount {
    color: #0866e8 !important;
    font-size: .94rem !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

.fooevents-advanced-ticket-tier__status {
    color: #9e2949;
    font-size: .72rem;
    font-weight: 850;
    grid-column: 1 / -1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fooevents-advanced-ticket-tier.is-unavailable {
    opacity: .62;
}

.fooevents-advanced-ticket-choice:disabled {
    cursor: not-allowed;
}

.fooevents-advanced-ticket-menu .fooevents-advanced-seat-control {
    margin: 16px 0 0 !important;
    width: 100%;
}

.fooevents-advanced-ticket-menu .fooevents-open-seats-pos {
    align-items: center !important;
    appearance: none;
    background: linear-gradient(135deg, #ff4f8b 0%, #f33678 100%) !important;
    border: 0 !important;
    border-radius: 13px !important;
    box-shadow: 0 13px 28px rgba(255, 79, 139, .24) !important;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex !important;
    font-size: .84rem !important;
    font-weight: 850 !important;
    gap: 9px;
    justify-content: center !important;
    letter-spacing: .025em !important;
    line-height: 1.2 !important;
    min-height: 56px !important;
    padding: 16px 24px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100% !important;
}

.fooevents-advanced-ticket-menu .fooevents-open-seats-pos::after {
    content: '→';
    font-size: 18px;
    line-height: 1;
}

.fooevents-advanced-ticket-menu .fooevents-open-seats-pos:hover,
.fooevents-advanced-ticket-menu .fooevents-open-seats-pos:focus-visible {
    background: linear-gradient(135deg, #171020, #09040e) !important;
    box-shadow: 0 16px 32px rgba(10, 5, 16, .24) !important;
    outline: 0;
    transform: translateY(-1px);
}

.fooevents-advanced-ticket-menu .fooevents-open-seats-pos:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 79, 139, .24), 0 16px 32px rgba(10, 5, 16, .24) !important;
}

.fooevents-advanced-ticket-menu .fooevents-open-seats-pos:disabled {
    background: #e5dce2 !important;
    box-shadow: none !important;
    color: #8b7b86 !important;
    cursor: not-allowed;
    transform: none;
}

form.variations_form.fooevents-advanced-ticket-list-ready .single_variation_wrap {
    margin-top: 18px !important;
}

form.variations_form.fooevents-advanced-ticket-list-ready.fooevents-advanced-mode-unselected .single_variation_wrap,
form.variations_form.fooevents-advanced-ticket-list-ready.fooevents-advanced-mode-reserved .single_variation_wrap {
    margin-top: 0 !important;
}

/* Direct Product pages use a dark purchase card. */
body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-menu {
    gap: 16px;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-group {
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .11);
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-group__header h3 {
    color: #fff !important;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-group__header p {
    color: rgba(255, 255, 255, .67) !important;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-tier__content,
body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-choice {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-choice:hover,
body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-choice:focus-visible,
body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-choice.is-selected {
    background: rgba(255, 79, 139, .12);
    border-color: #ff4f8b;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-tier__price,
body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-tier__price .amount {
    color: #f4bd45 !important;
    font-size: .96rem !important;
}

body.qhtix-linked-event-product .woocommerce div.product .summary .fooevents-advanced-ticket-tier__status {
    color: #ff9bbd;
}

@media (max-width: 520px) {
    .fooevents-advanced-ticket-tier__content,
    .fooevents-advanced-ticket-choice {
        gap: 5px;
        grid-template-columns: minmax(0, 1fr);
    }

    .fooevents-advanced-ticket-tier__price,
    .fooevents-advanced-ticket-tier__price .amount {
        white-space: normal;
    }

}
