/* ── elbillar Configurador v3 — Frontend CSS ──────────────────────────── */

/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
    --eb-bg:          #F5F0E8;
    --eb-white:       #ffffff;
    --eb-green:       #2D5016;
    --eb-green-light: #3a6b1e;
    --eb-gold:        #C4A050;
    --eb-gold-light:  #d4b060;
    --eb-text:        #2a2a2a;
    --eb-text-light:  #666;
    --eb-border:      #d5cfc4;
    --eb-border-active:#C4A050;
    --eb-radius:      10px;
    --eb-radius-sm:   6px;
    --eb-shadow:      0 2px 8px rgba(0,0,0,.08);
    --eb-shadow-hover:0 4px 16px rgba(0,0,0,.12);
    --eb-font-serif:  'Playfair Display', Georgia, serif;
    --eb-font-sans:   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --eb-transition:  .2s ease;
}

/* ── Wrapper ───────────────────────────────────────────────────────────── */
.ebillar-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    background: var(--eb-bg);
    padding: 24px;
    border-radius: var(--eb-radius);
    font-family: var(--eb-font-sans);
    color: var(--eb-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.ebillar-wrap *,
.ebillar-wrap *::before,
.ebillar-wrap *::after {
    box-sizing: border-box;
}

/* Ocultar imagen inline — usamos la galería WC nativa */
.ebillar-col-img {
    display: none;
}
.ebillar-col-opts {
    width: 100%;
}

/* ── Title ─────────────────────────────────────────────────────────────── */
.ebillar-title {
    font-family: var(--eb-font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--eb-green);
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--eb-gold);
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.ebillar-section {
    margin-bottom: 32px;
}
.ebillar-section-title {
    font-family: var(--eb-font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--eb-green);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--eb-border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.ebillar-required {
    display: inline-block;
    font-family: var(--eb-font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--eb-white);
    background: var(--eb-gold);
    padding: 2px 8px;
    border-radius: 3px;
}
.ebillar-section-intro {
    font-size: 14px;
    color: var(--eb-text-light);
    margin: 0 0 12px;
    line-height: 1.6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   A. SIZE CARDS — grid of rich cards
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 768px) {
    .ebillar-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .ebillar-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Card base ──────────────────────────────────────────────────────── */
.ebillar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--eb-white);
    border: 2px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 16px;
    cursor: pointer;
    transition: border-color var(--eb-transition), box-shadow var(--eb-transition);
}
.ebillar-card:hover {
    border-color: var(--eb-gold-light);
    box-shadow: var(--eb-shadow-hover);
}
.ebillar-card.is-active {
    border-color: var(--eb-gold);
    box-shadow: 0 0 0 2px var(--eb-gold), var(--eb-shadow);
    background: #fdfaf3;
}

/* Hidden native radio */
.ebillar-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom radio indicator */
.ebillar-card__radio {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--eb-border);
    border-radius: 50%;
    margin-bottom: 10px;
    position: relative;
    flex-shrink: 0;
    transition: border-color var(--eb-transition);
}
.ebillar-card__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--eb-gold);
    transform: scale(0);
    transition: transform var(--eb-transition);
}
.ebillar-card.is-active .ebillar-card__radio {
    border-color: var(--eb-gold);
}
.ebillar-card.is-active .ebillar-card__radio::after {
    transform: scale(1);
}

/* Card body */
.ebillar-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.ebillar-card__name {
    font-weight: 700;
    font-size: 15px;
    color: var(--eb-text);
}
.ebillar-card__price {
    font-family: var(--eb-font-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--eb-green);
}
.ebillar-card__meta {
    font-size: 12px;
    color: var(--eb-text-light);
    line-height: 1.4;
    margin-top: 4px;
}
.ebillar-card__meta strong {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--eb-text);
}
.ebillar-card__notes {
    font-size: 12px;
    color: var(--eb-gold);
    font-weight: 600;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   B. GAME CARDS — wider, with badge and subtitle
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-cards-grid--game {
    grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 480px) {
    .ebillar-cards-grid--game {
        grid-template-columns: 1fr;
    }
}

.ebillar-card--game .ebillar-card__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--eb-green);
    background: #e8f0e0;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 2px;
    align-self: flex-start;
}
.ebillar-card--game.is-active .ebillar-card__badge {
    background: #d4e6c6;
}
.ebillar-card__subtitle {
    font-size: 12px;
    color: var(--eb-text-light);
    line-height: 1.4;
    margin-top: 6px;
}
.ebillar-card__subtitle strong {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--eb-text);
}
.ebillar-card__subtitle small {
    display: block;
    font-style: italic;
    color: #888;
}
.ebillar-card__desc {
    font-size: 12px;
    color: var(--eb-text-light);
    line-height: 1.5;
    margin-top: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   C. DETAIL LIST — cloth quality, LED
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ebillar-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--eb-white);
    border: 2px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color var(--eb-transition), box-shadow var(--eb-transition);
}
.ebillar-list-item:hover {
    border-color: var(--eb-gold-light);
}
.ebillar-list-item.is-active {
    border-color: var(--eb-gold);
    background: #fdfaf3;
    box-shadow: 0 0 0 1px var(--eb-gold);
}

/* Hidden native radio */
.ebillar-list-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom radio indicator */
.ebillar-list-item__radio {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--eb-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color var(--eb-transition);
}
.ebillar-list-item__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--eb-gold);
    transform: scale(0);
    transition: transform var(--eb-transition);
}
.ebillar-list-item.is-active .ebillar-list-item__radio {
    border-color: var(--eb-gold);
}
.ebillar-list-item.is-active .ebillar-list-item__radio::after {
    transform: scale(1);
}

.ebillar-list-item__name {
    font-weight: 600;
    font-size: 15px;
    color: var(--eb-text);
    white-space: nowrap;
}
.ebillar-list-item__desc {
    font-size: 13px;
    color: var(--eb-text-light);
    flex: 1;
    min-width: 0;
}
.ebillar-list-item__badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--eb-green);
    background: #e8f0e0;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.ebillar-list-item.is-active .ebillar-list-item__badge {
    background: #d4e6c6;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   D. SWATCHES — color/finish image buttons (BIGGER per user request)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.ebillar-swatch-img {
    position: relative;
    width: 100px;
    height: 100px;
    border: 3px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--eb-white);
    transition: border-color var(--eb-transition), box-shadow var(--eb-transition), transform var(--eb-transition);
}
.ebillar-swatch-img:hover {
    border-color: var(--eb-gold-light);
    transform: scale(1.05);
    box-shadow: var(--eb-shadow-hover);
}
.ebillar-swatch-img.is-active {
    border-color: var(--eb-gold);
    box-shadow: 0 0 0 2px var(--eb-gold), var(--eb-shadow);
    transform: scale(1.05);
}
.ebillar-swatch-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ebillar-swatch-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 6px;
    color: var(--eb-text-light);
    line-height: 1.2;
}

/* Tooltip on hover */
.ebillar-swatch-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(.9);
    background: var(--eb-text);
    color: var(--eb-white);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s, transform .15s;
    z-index: 10;
}
.ebillar-swatch-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: var(--eb-text);
}
.ebillar-swatch-img:hover .ebillar-swatch-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
@media (max-width: 480px) {
    .ebillar-swatch-img {
        width: 80px;
        height: 80px;
    }
    .ebillar-swatches {
        gap: 10px;
    }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   E/F. BINARY OPTIONS — tapa mesa, tapa pingpong
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-binary {
    display: flex;
    gap: 12px;
}
@media (max-width: 480px) {
    .ebillar-binary {
        flex-direction: column;
    }
}
.ebillar-binary-opt {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--eb-white);
    border: 2px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color var(--eb-transition), box-shadow var(--eb-transition);
}
.ebillar-binary-opt:hover {
    border-color: var(--eb-gold-light);
}
.ebillar-binary-opt.is-active {
    border-color: var(--eb-gold);
    background: #fdfaf3;
    box-shadow: 0 0 0 1px var(--eb-gold);
}

/* Hidden native radio */
.ebillar-binary-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom radio indicator */
.ebillar-binary-opt__radio {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--eb-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color var(--eb-transition);
}
.ebillar-binary-opt__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--eb-gold);
    transform: scale(0);
    transition: transform var(--eb-transition);
}
.ebillar-binary-opt.is-active .ebillar-binary-opt__radio {
    border-color: var(--eb-gold);
}
.ebillar-binary-opt.is-active .ebillar-binary-opt__radio::after {
    transform: scale(1);
}

.ebillar-binary-opt__label {
    font-weight: 600;
    font-size: 14px;
    color: var(--eb-text);
    flex: 1;
}
.ebillar-binary-opt__label small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--eb-text-light);
    margin-top: 2px;
}
.ebillar-binary-opt__badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--eb-green);
    background: #e8f0e0;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   H/I. CHECK ITEMS — supplements, accessories
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-checks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ebillar-check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--eb-white);
    border: 2px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color var(--eb-transition), box-shadow var(--eb-transition);
}
.ebillar-check-item:hover {
    border-color: var(--eb-gold-light);
}
.ebillar-check-item.is-checked {
    border-color: var(--eb-gold);
    background: #fdfaf3;
    box-shadow: 0 0 0 1px var(--eb-gold);
}

/* Hidden native checkbox */
.ebillar-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom checkbox */
.ebillar-check-item__box {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--eb-border);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: border-color var(--eb-transition), background var(--eb-transition);
}
.ebillar-check-item__box::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: 2px solid var(--eb-white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform var(--eb-transition);
}
.ebillar-check-item.is-checked .ebillar-check-item__box {
    border-color: var(--eb-gold);
    background: var(--eb-gold);
}
.ebillar-check-item.is-checked .ebillar-check-item__box::after {
    transform: rotate(45deg) scale(1);
}

.ebillar-check-item__label {
    font-weight: 600;
    font-size: 14px;
    color: var(--eb-text);
    flex: 1;
}
.ebillar-check-item__label small {
    display: block;
    font-weight: 400;
    font-size: 12px;
    color: var(--eb-text-light);
    margin-top: 2px;
}
.ebillar-check-item__badge {
    font-size: 13px;
    font-weight: 700;
    color: var(--eb-green);
    background: #e8f0e0;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   J. PERSONALIZATION TEXTAREA
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-textarea {
    width: 100%;
    border: 2px solid var(--eb-border);
    border-radius: var(--eb-radius-sm);
    padding: 12px 14px;
    font-family: var(--eb-font-sans);
    font-size: 14px;
    color: var(--eb-text);
    resize: vertical;
    min-height: 80px;
    transition: border-color var(--eb-transition);
    background: var(--eb-white);
}
.ebillar-textarea:focus {
    outline: none;
    border-color: var(--eb-gold);
    box-shadow: 0 0 0 2px rgba(196,160,80,.2);
}
.ebillar-textarea::placeholder {
    color: #aaa;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   K. SHIPPING CARDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-shipping-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 768px) {
    .ebillar-shipping-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .ebillar-shipping-grid {
        grid-template-columns: 1fr;
    }
}

.ebillar-ship-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: var(--eb-white);
    border: 2px solid var(--eb-border);
    border-radius: var(--eb-radius);
    padding: 16px 12px;
    cursor: pointer;
    transition: border-color var(--eb-transition), box-shadow var(--eb-transition);
}
.ebillar-ship-card:hover {
    border-color: var(--eb-gold-light);
}
.ebillar-ship-card.is-active {
    border-color: var(--eb-gold);
    background: #fdfaf3;
    box-shadow: 0 0 0 1px var(--eb-gold);
}

/* Hidden native radio */
.ebillar-ship-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom radio indicator */
.ebillar-ship-card__radio {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--eb-border);
    border-radius: 50%;
    position: relative;
    transition: border-color var(--eb-transition);
}
.ebillar-ship-card__radio::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--eb-gold);
    transform: scale(0);
    transition: transform var(--eb-transition);
}
.ebillar-ship-card.is-active .ebillar-ship-card__radio {
    border-color: var(--eb-gold);
}
.ebillar-ship-card.is-active .ebillar-ship-card__radio::after {
    transform: scale(1);
}

.ebillar-ship-card__label {
    font-weight: 700;
    font-size: 14px;
    color: var(--eb-text);
}
.ebillar-ship-card__price {
    font-size: 14px;
    font-weight: 700;
    color: var(--eb-green);
}
.ebillar-ship-card__desc {
    font-size: 12px;
    color: var(--eb-text-light);
    line-height: 1.3;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRICE BAR — sticky bottom summary
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-price-bar {
    background: var(--eb-green);
    color: var(--eb-white);
    padding: 20px 24px;
    border-radius: var(--eb-radius);
    margin-bottom: 16px;
}
.ebillar-price-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.ebillar-price-label {
    font-size: 18px;
    font-weight: 400;
}
.ebillar-price-value {
    font-family: var(--eb-font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--eb-gold);
}
.ebillar-deposit-note {
    font-size: 13px;
    opacity: .85;
    margin-top: 6px;
}
.ebillar-lead-time {
    font-size: 13px;
    opacity: .75;
    margin-top: 4px;
}
.ebillar-price-note {
    font-size: 12px;
    opacity: .65;
    margin-top: 4px;
    font-style: italic;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CART BUTTON
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.ebillar-btn-cart {
    display: block;
    width: 100%;
    padding: 16px;
    font-family: var(--eb-font-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--eb-white);
    background: var(--eb-gold);
    border: none;
    border-radius: var(--eb-radius);
    cursor: pointer;
    transition: background var(--eb-transition), transform var(--eb-transition);
}
.ebillar-btn-cart:hover {
    background: #b89640;
    transform: translateY(-1px);
}
.ebillar-btn-cart:active {
    transform: translateY(0);
}
.ebillar-btn-cart:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* Cart message */
.ebillar-cart-msg {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    min-height: 20px;
}
.ebillar-cart-msg.success {
    color: var(--eb-green);
}
.ebillar-cart-msg.error {
    color: #c0392b;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   UTILITIES & OVERRIDES
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* Prevent WP/theme label styles from interfering */
.ebillar-wrap label {
    margin: 0;
    font-weight: inherit;
}
/* Ensure relative positioning for abs-positioned radios */
.ebillar-card,
.ebillar-list-item,
.ebillar-binary-opt,
.ebillar-check-item,
.ebillar-ship-card {
    position: relative;
}

/* ── Imagen en tarjeta de tipo juego (frontend) ── */
.ebillar-card__img {
    width: 100%;
    overflow: hidden;
    background: #f0f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 6px 0 0;
    flex-shrink: 0;
}
.ebillar-card__img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 16 / 9;
}
.ebillar-card__img--empty {
    min-height: 70px;
    background: #e8eef4;
}

/* ═══ IVA label ═══ */
small.ebillar-iva {
    font-size: 11px;
    font-weight: 500;
    color: var(--eb-text-light);
    opacity: 0.8;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.03em;
}

/* ═══ Swatch label below image swatches ═══ */
.ebillar-swatch-img:has(img) {
    overflow: visible;
}
.ebillar-swatch-img:has(img) img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ebillar-swatch-img:has(img) .ebillar-swatch-label {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 100px;
    height: auto;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    color: var(--eb-text-light);
    padding: 0;
    white-space: normal;
    background: none;
    display: block;
}
/* Extra bottom space for rows with image-swatch labels */
.ebillar-swatches--img {
    padding-bottom: 28px;
    row-gap: 28px;
}