/* WC Tiered Pricing — Frontend v1.4.0 */

.wctp-wrap { margin: 16px 0 12px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.wctp-heading { font-size: 14px; font-weight: 700; color: #1a1a1a; margin: 0 0 10px; }

/* ═══ LAYOUT: Equal (default) ═══ */
.wctp-layout--equal .wctp-tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.wctp-layout--equal .wctp-tier { flex: 1 1 0; min-width: 80px; max-width: 160px; }

/* ═══ LAYOUT: Featured Last — first cards in row, last card full-width row 2 ═══ */
.wctp-layout--featured .wctp-tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.wctp-layout--featured .wctp-tier { flex: 1 1 0; min-width: 80px; max-width: 160px; }
.wctp-layout--featured .wctp-tier--best {
    flex: 1 1 100%; max-width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 14px 20px;
}
.wctp-layout--featured .wctp-tier--best .wctp-tier__qty { font-size: 28px; margin: 0; }
.wctp-layout--featured .wctp-tier--best .wctp-tier__label { display: none; }
.wctp-layout--featured .wctp-tier--best .wctp-tier__price { font-size: 20px; }
.wctp-layout--featured .wctp-tier--best .wctp-tier__per { margin: 0 8px 0 0; }
.wctp-layout--featured .wctp-tier--best .wctp-tier__disc { font-size: 13px; margin: 0; }
.wctp-layout--featured .wctp-tier--best .wctp-tier__total { margin: 0; }
.wctp-layout--featured .wctp-tier--best .wctp-tier__savings { display: none; }
.wctp-layout--featured .wctp-tier--best .wctp-badge {
    position: static; transform: none; display: inline-block;
    border-radius: 4px; margin-right: 10px; padding: 3px 10px;
}

/* ═══ LAYOUT: Stacked ═══ */
.wctp-layout--stacked .wctp-tiers { display: flex; flex-direction: column; gap: 6px; }
.wctp-layout--stacked .wctp-tier {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; text-align: left; max-width: 100%;
}
.wctp-layout--stacked .wctp-tier .wctp-tier__qty { font-size: 20px; min-width: 36px; margin: 0; }
.wctp-layout--stacked .wctp-tier .wctp-tier__label { display: none; }
.wctp-layout--stacked .wctp-tier .wctp-tier__price { font-size: 16px; }
.wctp-layout--stacked .wctp-tier .wctp-tier__per { margin: 0 8px 0 0; display: inline; }
.wctp-layout--stacked .wctp-tier .wctp-tier__disc { margin: 0; display: inline; }
.wctp-layout--stacked .wctp-tier .wctp-tier__total { margin: 0; display: inline; }
.wctp-layout--stacked .wctp-tier .wctp-tier__savings { display: none; }
.wctp-layout--stacked .wctp-badge { position: static; transform: none; display: inline-block; border-radius: 4px; padding: 2px 8px; margin-left: 8px; }

/* ═══ Tier Card — base ═══ */
.wctp-tier {
    position: relative; padding: 24px 10px 12px;
    background: #fff; border: 1.5px solid #e8eaed; border-radius: 10px;
    text-align: center; overflow: hidden; cursor: default;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.wctp-tier:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.08); border-color: #d0d3d8; }

.wctp-tier--best {
    border-color: var(--wctp-accent, #1a73e8); border-width: 2px;
    background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%);
    box-shadow: 0 3px 14px rgba(26,115,232,.1); transform: scale(1.02);
}
.wctp-tier--best:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 24px rgba(26,115,232,.15); }
.wctp-tier--single { background: #fafafa; border-color: #e0e0e0; }

/* Badge */
.wctp-badge {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 2px 6px; font-size: 7.5px; font-weight: 800; color: #fff;
    letter-spacing: .6px; text-transform: uppercase; text-align: center;
    line-height: 1.5; border-radius: 8px 8px 0 0; white-space: nowrap;
}

/* Qty */
.wctp-tier__qty { font-size: 22px; font-weight: 800; color: #1a1a1a; line-height: 1.1; margin-top: 2px; }
.wctp-tier--best .wctp-tier__qty { color: var(--wctp-accent, #1a73e8); }
.wctp-tier__label { font-size: 9px; font-weight: 600; color: #9e9e9e; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }

/* Price */
.wctp-tier__price { font-size: 15px; font-weight: 700; color: #212121; line-height: 1.2; transition: all .2s; }
.wctp-tier__price .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
.wctp-tier--best .wctp-tier__price { color: var(--wctp-accent, #1a73e8); font-size: 16px; }
.wctp-tier__per { font-size: 9px; color: #9e9e9e; margin-bottom: 6px; }

/* Discount */
.wctp-tier__disc { font-size: 10px; font-weight: 600; margin-bottom: 1px; line-height: 1.3; transition: all .2s; }
.wctp-tier__disc--none { color: #bbb !important; font-weight: 500; }
.wctp-tier__total { font-size: 9px; font-weight: 700; color: #444; margin-bottom: 2px; transition: all .2s; }
.wctp-tier--best .wctp-tier__total { color: var(--wctp-accent, #1a73e8); }
.wctp-tier__savings { font-size: 8.5px; color: #9e9e9e; min-height: 12px; transition: all .2s; }

/* Shine */
.wctp-shine {
    position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
    transform: skewX(-20deg); transition: left .5s ease; pointer-events: none;
}
.wctp-tier:hover .wctp-shine { left: 125%; }

.wctp-tier--best::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,.5) 0%, transparent 100%);
    border-radius: 8px 8px 0 0; pointer-events: none; z-index: 0;
}
.wctp-tier--best > * { position: relative; z-index: 1; }
.wctp-tier--best::after {
    content: ''; position: absolute; inset: 0; border-radius: 8px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 -1px 4px rgba(26,115,232,.04);
    pointer-events: none; z-index: 2;
}

/* Loop badge */
.wctp-loop-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; margin-top: 4px; border-radius: 4px; background: rgba(26,115,232,.08); }

/* Responsive */
@media (max-width: 480px) {
    .wctp-tier { min-width: 70px; padding: 22px 8px 10px; }
    .wctp-tier__qty { font-size: 18px; }
    .wctp-tier__price { font-size: 13px; }
    .wctp-tier--best .wctp-tier__price { font-size: 14px; }
    .wctp-badge { font-size: 7px; }
    .wctp-heading { font-size: 13px; }
    .wctp-layout--featured .wctp-tier--best { flex-wrap: wrap; padding: 12px; }
}
