/* Native Tickera quantity selector */
.tickera .ticket-quantity .inner-wrap,
.event_tickets .ticket-quantity .inner-wrap,
.tc-add-to-cart-wrap .ticket-quantity .inner-wrap,
.tc-event-dropdown-wrap .ticket-quantity .inner-wrap {
    display: inline-flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    white-space: nowrap;
}

.tickera .ticket-quantity .tickera_button,
.tickera .ticket-quantity .tc_quantity_selector,
.event_tickets .ticket-quantity .tickera_button,
.event_tickets .ticket-quantity .tc_quantity_selector,
.tc-add-to-cart-wrap .ticket-quantity .tickera_button,
.tc-add-to-cart-wrap .ticket-quantity .tc_quantity_selector,
.tc-event-dropdown-wrap .ticket-quantity .tickera_button,
.tc-event-dropdown-wrap .ticket-quantity .tc_quantity_selector {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    line-height: 40px;
}

.tickera .ticket-quantity .tickera_button,
.event_tickets .ticket-quantity .tickera_button,
.tc-add-to-cart-wrap .ticket-quantity .tickera_button,
.tc-event-dropdown-wrap .ticket-quantity .tickera_button {
    width: 42px;
    min-width: 42px;
    padding: 0 !important;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    background: #f5f5f5;
    color: #222;
}

.tickera .ticket-quantity .tc_quantity_selector,
.event_tickets .ticket-quantity .tc_quantity_selector,
.tc-add-to-cart-wrap .ticket-quantity .tc_quantity_selector,
.tc-event-dropdown-wrap .ticket-quantity .tc_quantity_selector {
    width: 58px;
    min-width: 58px;
    padding: 0 6px !important;
    text-align: center;
    background: #fff;
    color: #222;
    -moz-appearance: textfield;
}

.tickera .ticket-quantity .tc_quantity_selector::-webkit-outer-spin-button,
.tickera .ticket-quantity .tc_quantity_selector::-webkit-inner-spin-button,
.event_tickets .ticket-quantity .tc_quantity_selector::-webkit-outer-spin-button,
.event_tickets .ticket-quantity .tc_quantity_selector::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tickera .ticket-quantity .minus,
.event_tickets .ticket-quantity .minus,
.tc-add-to-cart-wrap .ticket-quantity .minus,
.tc-event-dropdown-wrap .ticket-quantity .minus {
    border-radius: 6px 0 0 6px;
}

.tickera .ticket-quantity .plus,
.event_tickets .ticket-quantity .plus,
.tc-add-to-cart-wrap .ticket-quantity .plus,
.tc-event-dropdown-wrap .ticket-quantity .plus {
    border-radius: 0 6px 6px 0;
}

/* WooCommerce Bridge quantity selector */
.tee-ticket-quantity {
    display: inline-flex !important;
    align-items: stretch;
    justify-content: center;
    width: auto !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle;
    white-space: nowrap;
}

.tee-ticket-quantity .tee-qty-button,
.tee-ticket-quantity input.qty,
.tee-ticket-quantity input[name="quantity"] {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    margin: 0 !important;
    border: 1px solid #cfcfcf;
    border-radius: 0;
}

.tee-ticket-quantity .tee-qty-button {
    width: 42px;
    min-width: 42px;
    padding: 0;
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    background: #f5f5f5;
    color: #222;
}

.tee-ticket-quantity .tee-qty-minus {
    border-radius: 6px 0 0 6px;
}

.tee-ticket-quantity .tee-qty-plus {
    border-radius: 0 6px 6px 0;
}

.tee-ticket-quantity input.qty,
.tee-ticket-quantity input[name="quantity"] {
    width: 58px !important;
    min-width: 58px;
    padding: 0 6px !important;
    text-align: center;
    background: #fff;
    color: #222;
    -moz-appearance: textfield;
}

.tee-ticket-quantity input.qty::-webkit-outer-spin-button,
.tee-ticket-quantity input.qty::-webkit-inner-spin-button,
.tee-ticket-quantity input[name="quantity"]::-webkit-outer-spin-button,
.tee-ticket-quantity input[name="quantity"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.tickera .ticket-quantity button:hover,
.tickera .ticket-quantity input[type="button"]:hover,
.tee-ticket-quantity .tee-qty-button:hover {
    filter: brightness(0.95);
}

.tickera .ticket-quantity button:focus-visible,
.tickera .ticket-quantity input:focus-visible,
.tee-ticket-quantity button:focus-visible,
.tee-ticket-quantity input:focus-visible {
    position: relative;
    z-index: 2;
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

@media (max-width: 600px) {
    .tickera .ticket-quantity .tickera_button,
    .event_tickets .ticket-quantity .tickera_button,
    .tee-ticket-quantity .tee-qty-button {
        width: 38px;
        min-width: 38px;
    }

    .tickera .ticket-quantity .tc_quantity_selector,
    .event_tickets .ticket-quantity .tc_quantity_selector,
    .tee-ticket-quantity input.qty,
    .tee-ticket-quantity input[name="quantity"] {
        width: 50px !important;
        min-width: 50px;
    }
}

/* Betheme injects its own anchor-based +/- controls around Woo quantity inputs.
   Hide only those duplicate anchors inside this plugin's quantity wrapper. */
.tee-ticket-quantity > a.quantity-change,
.tee-ticket-quantity > a.quantity-change.minus,
.tee-ticket-quantity > a.quantity-change.plus {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}
