/*
 * WC Age Group Pricing – Front-end Styles v3.1
 * WIZSP SRL · https://wizsp.com
 */

/* ── Wrapper ──────────────────────────────────────────────── */
.wcagp-wrapper {
    margin: 1.4em 0 1.8em;
    font-family: inherit;
}

/* ============================================================
   EARLY BIRD BANNER
   ============================================================ */
.wcagp-early-bird-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 3px 14px rgba(245,158,11,.30);
    animation: wcagp-glow 3s ease-in-out infinite;
    flex-wrap: wrap;
}
@keyframes wcagp-glow {
    0%,100% { box-shadow: 0 3px 14px rgba(245,158,11,.30); }
    50%      { box-shadow: 0 3px 22px rgba(245,158,11,.55); }
}

.wcagp-eb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.wcagp-eb-icon {
    font-size: 22px;
    flex-shrink: 0;
}
.wcagp-eb-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.wcagp-eb-text strong {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .3px;
}
.wcagp-eb-text span {
    font-size: 11.5px;
    color: rgba(255,255,255,.88);
}

/* ── Countdown ── */
.wcagp-eb-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.wcagp-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,.18);
    border-radius: 6px;
    padding: 4px 8px;
    min-width: 36px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.wcagp-cd-unit em {
    font-style: normal;
    font-size: 9px;
    font-weight: 400;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 1px;
}

/* ── EB expired notice ── */
.wcagp-eb-expired-note {
    font-size: 12px;
    color: #888;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 7px 12px;
    margin-bottom: 12px;
}

/* ── Hint ─────────────────────────────────────────────────── */
.wcagp-hint {
    font-size: .82em;
    color: #aaa;
    font-style: italic;
    margin: 4px 0 0;
}

/* ============================================================
   PRICE SUMMARY BOX
   ============================================================ */
.wcagp-price-summary {
    background: #f8faff;
    border: 1px solid #dde8ff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}

/* ── Current label ── */
.wcagp-current-label {
    padding: 8px 14px 2px;
}
.wcagp-eb-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #fde68a;
}

/* ── Price rows ── */
.wcagp-price-summary-rows {
    padding: 4px 14px 10px;
}

.wcagp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: .9em;
    color: #374151;
    border-bottom: 1px solid #eef2ff;
}
.wcagp-price-row:last-child { border-bottom: none; }

.wcagp-price-row--sibling .wcagp-price-row-label { color: #2563eb; }
.wcagp-price-row--sibling .wcagp-price-row-val   { color: #2563eb; font-weight: 700; }

.wcagp-price-row-label em {
    font-size: .8em;
    font-style: normal;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: 600;
}

.wcagp-price-row-val {
    font-weight: 700;
    font-size: 1em;
    color: #1d2327;
}

/* ── Total row ── */
.wcagp-price-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    border-top: 2px solid #c7d7fa;
    background: #fff;
}
.wcagp-total-label {
    color: #6b7280;
    font-size: .82em;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-weight: 600;
}
.wcagp-total-val {
    font-size: 1.5em;
    font-weight: 900;
    color: #1d2327;
}

/* ── After EB info block ── */
.wcagp-price-after-eb {
    background: #fffbeb;
    border-top: 1px dashed #fde68a;
    padding: 10px 14px 12px;
    font-size: .82em;
}
.wcagp-after-eb-header {
    font-size: .88em;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wcagp-after-eb-header::before {
    content: "📅";
    font-size: 13px;
}
/* Rows inside after-EB block inherit parent size, override colors */
.wcagp-price-after-eb .wcagp-price-row {
    color: #b45309;
    border-bottom-color: #fde68a;
    font-size: .95em;
}
.wcagp-price-after-eb .wcagp-price-row-val {
    color: #b45309;
    font-weight: 600;
}
.wcagp-price-after-eb .wcagp-price-row--sibling .wcagp-price-row-label,
.wcagp-price-after-eb .wcagp-price-row--sibling .wcagp-price-row-val {
    color: #92400e;
}
.wcagp-after-eb-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #fde68a;
    font-size: .88em;
    color: #92400e;
}

/* ============================================================
   ΠΟΛΥΤΕΚΝΟΙ CHECKBOX
   ============================================================ */
.wcagp-family-section { margin-top: .5em; }

.wcagp-discount-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 9px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all .15s;
    background: #fafafa;
}
.wcagp-discount-row:hover {
    border-color: #c7d7fa;
    background: #f0f6ff;
}
.wcagp-discount-row:has(input:checked) {
    border-color: #2563eb;
    background: #f0f6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.wcagp-discount-row input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}
.wcagp-discount-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.wcagp-discount-name {
    font-weight: 700;
    font-size: .9em;
    color: #1d2327;
}
.wcagp-discount-note {
    font-size: .78em;
    color: #6b7280;
}

/* ============================================================
   TOTAL BAR — above quantity field
   ============================================================ */
.wcagp-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    border-radius: 10px;
    padding: 14px 20px;
    margin-bottom: 14px;
    box-shadow: 0 4px 18px rgba(37,99,235,.25);
}

.wcagp-total-bar-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.82);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.wcagp-total-bar-amount {
    font-size: 2.2em;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.5px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,.18);
}

@media (max-width: 480px) {
    .wcagp-total-bar-amount { font-size: 1.7em; }
}

/* ── Cart subtotal note ───────────────────────────────────── */
.wcagp-subtotal { display: block; }
.wcagp-subtotal-note {
    display: block;
    font-size: .78em;
    color: #6b7280;
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.4;
}

/* ── Cart meta label ──────────────────────────────────────── */
.wcagp-cart-meta {
    color: #888;
    font-size: .82em;
    margin-left: 4px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .wcagp-early-bird-banner { flex-direction: column; align-items: flex-start; }
    .wcagp-eb-countdown { align-self: flex-start; }
    .wcagp-price-row { font-size: .83em; }
    .wcagp-total-val  { font-size: 1.05em; }
}
