/* ============================================================
   Fleco Variation Cards — Blinkit style
   ============================================================ */

.fleco-cards-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 16px;
}

.fleco-card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 130px;
    max-width: 170px;
    padding: 14px 12px 14px;
    border: 2px solid transparent;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s, transform .13s;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

.fleco-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,.11);
}

.fleco-card--active {
    border-color: #278035;
    box-shadow: 0 0 0 3px rgba(39,128,53,.15);
}

/* ── Price row ───────────────────────────────────────────── */
.fleco-card__price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

/* Green badge — force colour through WooCommerce nested markup */
.fleco-card__price-badge {
    display: inline-flex;
    align-items: center;
    background: #278035 !important;
    color: #fff !important;
    font-size: 18px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 10px;
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: -.3px;
}

.fleco-card__price-badge div,
.fleco-card__price-badge span,
.fleco-card__price-badge .price,
.fleco-card__price-badge .woocommerce-Price-amount,
.fleco-card__price-badge .woocommerce-Price-currencySymbol,
.fleco-card__price-badge ins,
.fleco-card__price-badge ins .woocommerce-Price-amount {
    display: inline !important;
    background: transparent !important;
    color: #fff !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide old price inside badge — shown via _fvc_mrp field */
.fleco-card__price-badge del,
.fleco-card__price-badge del * {
    display: none !important;
}

.fleco-card__mrp {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

/* ── Savings row ─────────────────────────────────────────── */
.fleco-card__savings-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.fleco-card__savings {
    font-size: 13px;
    font-weight: 700;
    color: #278035;
    white-space: nowrap;
}

.fleco-card__dash {
    flex: 1;
    height: 0;
    border: none;
    border-top: 1.5px dashed #b2dfb5;
    display: block;
}

/* ── Name ────────────────────────────────────────────────── */
.fleco-card__name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 5px;
}

/* ── Sub text ────────────────────────────────────────────── */
.fleco-card__sub {
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}

/* ── Top badge (Best Value) ──────────────────────────────── */
.fleco-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #278035;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ── Check icon ──────────────────────────────────────────── */
.fleco-card__check {
    display: none;
    position: absolute;
    top: 9px;
    right: 9px;
    width: 18px;
    height: 18px;
    background: #278035;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.fleco-card__check svg { width: 10px; height: 8px; }
.fleco-card--active .fleco-card__check { display: flex; }

.fleco-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(39,128,53,.4);
}

@media (max-width: 400px) {
    .fleco-card { flex: 1 1 100%; max-width: 100%; }
}
