/* ═══════════════════════════════════════════════════════════════════
   Alfa Digital - Event Tickets | PDP UI
   Estilos para: precio, tabla resumen, buy now, sticky bar mobile
   Cargado solo en páginas de producto ticket-event.
   ═══════════════════════════════════════════════════════════════════ */


/* ── Ocultar ATC real (lo controlamos vía shortcodes) ── */
.single-product .summary .single_add_to_cart_button,
.single-product .summary form.cart > .button:not(.wd-buy-now):not(.wd-buy-now-shortcode) {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
}

/* ── Buy now arrow ── */
.wd-buy-now-arrow {
    margin-left: 8px;
    display: inline-block;
    transition: transform .2s ease;
}
button:hover .wd-buy-now-arrow {
    transform: translateX(4px);
}


/* ── Tipografía de campos de asistente: heredar del tema ── */
.alfa-et-attendee-block input,
.alfa-et-attendee-block select,
.alfa-et-attendee-block textarea,
.alfa-et-attendee-block label,
.alfa-et-attendee-block h4,
.alfa-et-attendee-block .alfa-et-attendee-title,
.alfa-et-attendee-fields input,
.alfa-et-attendee-fields select,
.alfa-et-attendee-fields textarea,
.alfa-et-attendee-fields label {
    font-family: inherit !important;
}


/* ═══════════════════════════════════════════
   TPT blocks — precio tachado inyectado
   ═══════════════════════════════════════════ */

.tiered-pricing-block .ad-tpt-strike {
    font-size: 12px;
    color: #999;
    line-height: 1;
    margin-bottom: 2px;
    display: block;
}
.tiered-pricing-block .ad-tpt-strike del {
    text-decoration: line-through;
    color: #999;
}


/* ═══════════════════════════════════════════
   Sticky sheet — precio tachado en tier cards
   ═══════════════════════════════════════════ */

.ad-sticky-tier__strike {
    font-size: 11px;
    color: #999;
    line-height: 1;
    margin-bottom: 2px;
}
.ad-sticky-tier__strike del {
    text-decoration: line-through;
    color: #999;
}


/* ═══════════════════════════════════════════
   Tabla resumen — fila del cupón
   ═══════════════════════════════════════════ */

.ad-pdp-table .ad-coupon-row td {
    color: #3B6D11;
}
.ad-pdp-table .ad-coupon-code {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    background: #EAF3DE;
    color: #3B6D11;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 4px;
    letter-spacing: .3px;
}


/* ═══════════════════════════════════════════
   Sticky bottom sheet (mobile only)
   ═══════════════════════════════════════════ */

#adStickyWrap {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 350;
    display: none;
    transform: translateY(100%);
}
#adStickyWrap.ad-sticky--ready {
    display: block;
}
#adStickyWrap.ad-sticky--visible {
    transform: translateY(0);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
#adStickyWrap.ad-sticky--hiding {
    transform: translateY(100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
}

/* Backdrop when sheet is open */
.ad-sticky-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    z-index: 349;
    -webkit-tap-highlight-color: transparent;
}
.ad-sticky-backdrop.ad-sticky--open {
    display: block;
}

/* Sheet (expandable panel) */
.ad-sticky-sheet {
    background: #fff;
    border-top: .5px solid #e0e0e0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s cubic-bezier(.4,0,.2,1), padding .3s ease;
    padding: 0 16px;
}
.ad-sticky-sheet.ad-sticky--open {
    max-height: 320px;
    padding: 14px 16px;
    overflow-y: auto;
}

/* Bar (always visible) */
.ad-sticky-bar {
    background: #fff;
    border-top: .5px solid #e0e0e0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}

.ad-sticky-bar__left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* Chevron toggle */
.ad-sticky-expand {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .25s ease, border-color .2s;
    -webkit-tap-highlight-color: transparent;
}
.ad-sticky-expand:active {
    border-color: #bbb;
}
.ad-sticky-expand svg {
    display: none;
}
.ad-sticky-chevron {
    display: block;
    font-family: "woodmart-font" !important;
    font-size: 11px;
    line-height: 1;
    color: #555;
    transition: transform .25s ease;
}
.ad-sticky-chevron::before {
    content: "\f115";
}
.ad-sticky-expand.ad-sticky--open .ad-sticky-chevron::before {
    content: "\f129";
}

.ad-sticky-bar__price-label {
    font-size: 11px;
    color: #888;
    line-height: 1.1;
}
.ad-sticky-bar__price-amount {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
}

/* CTA button */
.ad-sticky-cta {
    flex-shrink: 0;
    background: #F71963;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.ad-sticky-cta:active {
    transform: scale(.97);
    background: #d91458;
}


/* ── Tier cards en sheet ── */

.ad-sticky-tier {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid #e8e8e5;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}
.ad-sticky-tier:active {
    background: #fafaf8;
}
.ad-sticky-tier.ad-sticky-tier--active {
    border-color: #c8a76e;
    background: #FDFBF7;
}

.ad-sticky-tier__radio {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s;
}
.ad-sticky-tier--active .ad-sticky-tier__radio {
    border-color: #c8a76e;
}
.ad-sticky-tier__radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8a76e;
    transform: scale(0);
    transition: transform .15s ease;
}
.ad-sticky-tier--active .ad-sticky-tier__radio::after {
    transform: scale(1);
}

.ad-sticky-tier__info {
    flex: 1;
    min-width: 0;
}
.ad-sticky-tier__label {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}
.ad-sticky-tier__range {
    font-size: 11px;
    color: #888;
}

.ad-sticky-tier__right {
    text-align: right;
    flex-shrink: 0;
}
.ad-sticky-tier__price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}
.ad-sticky-tier__save {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #3B6D11;
    background: #EAF3DE;
    padding: 1px 6px;
    border-radius: 8px;
    margin-top: 2px;
}
.ad-sticky-tier__best {
    position: absolute;
    top: -8px;
    right: 12px;
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    background: #c8a76e;
    padding: 2px 8px;
    border-radius: 8px;
    line-height: 1.3;
}

/* Qty controls en sheet */
.ad-sticky-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 2px;
    border-top: 1px solid #f0f0ee;
    margin-top: 4px;
}
.ad-sticky-qty__label {
    font-size: 12px;
    color: #888;
}
.ad-sticky-qty__controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ad-sticky-qty__btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    -webkit-tap-highlight-color: transparent;
    transition: background .1s;
}
.ad-sticky-qty__btn:active {
    background: #f5f5f3;
}
.ad-sticky-qty__value {
    font-size: 15px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    color: #1a1a1a;
}

.ad-sticky-wrap.ad-sticky--no-tiers .ad-sticky-expand {
    display: none;
}

/* Desktop: sticky oculto */
@media (min-width: 769px) {
    #adStickyWrap {
        display: none !important;
    }
}


/* ═══════════════════════════════════════════
   URL Coupons badge en PDP (integración)
   ═══════════════════════════════════════════ */

.alfa-et-uc-badge {
    display: inline-block;
    margin: 8px 0 16px;
    padding: 6px 12px;
    background: #e8f5e9;
    color: #1b5e20;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
}


/* ═══════════════════════════════════════════
   Shortcode [wd_qty_buy_now] inline styles
   (respaldo — los principales van inline en el HTML)
   ═══════════════════════════════════════════ */

.wd-qty-buy-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* ═══════════════════════════════════════════
   Ocultar botones "Comprar Boleto" del header Woodmart
   en PDP, carrito y checkout de ticket-event
   ═══════════════════════════════════════════ */

.single-product .whb-p5hq56ajsf1f3nc1fi4f,
.single-product .whb-yofkx2iyly4lhey10z99,
.woocommerce-cart .whb-p5hq56ajsf1f3nc1fi4f,
.woocommerce-cart .whb-yofkx2iyly4lhey10z99,
.woocommerce-cart .whb-01uhn5vojxkyjqmtdy80,
.woocommerce-checkout .whb-p5hq56ajsf1f3nc1fi4f,
.woocommerce-checkout .whb-yofkx2iyly4lhey10z99,
.woocommerce-checkout .whb-01uhn5vojxkyjqmtdy80 {
    display: none !important;
}
