/* ─── Pricing Table ─────────────────────────────── */
.wcqd-table-wrap {
    margin: 18px 0;
}
.wcqd-table-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
}
.wcqd-front-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.wcqd-front-table th {
    padding: 9px 13px;
    text-align: left;
    border-bottom: 2px solid #e0e0e0;
    background: #f5f5f5;
    font-weight: 600;
    color: #444;
}
.wcqd-front-table td {
    padding: 9px 13px;
    border-bottom: 1px solid #eeeeee;
    color: #333;
}
.wcqd-row-highlight { background: #f0fff4; }
.wcqd-saving { color: #2e7d32; font-weight: 700; }

/* ─── Cards Wrapper ──────────────────────────────── */
.wcqd-cards-wrap {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}
.wcqd-cards-title {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 400;
}
.wcqd-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* ─── Single Row Card ────────────────────────────── */
.wcqd-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s, background .18s, box-shadow .18s;
    overflow: hidden;
}
.wcqd-card:hover {
    border-color: #4a6fa5;
    box-shadow: 0 2px 10px rgba(74,111,165,.12);
}
.wcqd-card.active {
    border-color: #3d5a8a;
    background: #3d5a8a;
    box-shadow: 0 3px 14px rgba(61,90,138,.25);
}

/* ─── Badge (above the row, inline chip) ─────────── */
.wcqd-row-badge {
    display: inline-block;
    background: #3d5a8a;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 0 0 6px 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    line-height: 1.5;
}
.wcqd-card.active .wcqd-row-badge {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* ─── Inner Row ──────────────────────────────────── */
.wcqd-row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    gap: 12px;
}
/* Push content down when badge is present */
.wcqd-card:has(.wcqd-row-badge) .wcqd-row-inner {
    padding-top: 26px;
}

/* ─── Label ──────────────────────────────────────── */
.wcqd-row-label {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
    flex: 1;
    transition: color .18s;
}
.wcqd-card.active .wcqd-row-label {
    color: #fff;
    font-weight: 600;
}

/* ─── Prices (right side) ────────────────────────── */
.wcqd-row-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    flex-shrink: 0;
}
.wcqd-row-orig {
    text-decoration: line-through;
    color: #aaa;
    font-size: 12px;
    line-height: 1.3;
    transition: color .18s;
}
.wcqd-card.active .wcqd-row-orig {
    color: rgba(255,255,255,.55);
}
.wcqd-row-price {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
    transition: color .18s;
    white-space: nowrap;
}
.wcqd-card.active .wcqd-row-price {
    color: #fff;
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 600px) {
    .wcqd-row-inner {
        padding: 14px 14px;
        gap: 8px;
    }
    .wcqd-card:has(.wcqd-row-badge) .wcqd-row-inner {
        padding-top: 24px;
    }
    .wcqd-row-label {
        font-size: 13px;
    }
    .wcqd-row-price {
        font-size: 15px;
    }
    .wcqd-row-orig {
        font-size: 11px;
    }
    .wcqd-row-badge {
        font-size: 8px;
        padding: 2px 8px;
    }
}



/* ─── Quantity + Button ispod kartica ────────────── */
.wcqd-cart-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.wcqd-cart-row .quantity {
    flex-shrink: 0;
}
.wcqd-cart-row .single_add_to_cart_button {
    flex: 1;
    text-align: center;
}

@media (max-width: 480px) {
    .wcqd-cart-row {
        flex-direction: column;
        align-items: stretch;
    }
    .wcqd-cart-row .quantity {
        width: 100%;
    }
    .wcqd-cart-row .quantity input {
        width: 100% !important;
        box-sizing: border-box;
        padding: 12px !important;
        font-size: 15px !important;
    }
    .wcqd-cart-row .single_add_to_cart_button {
        width: 100% !important;
        padding: 14px !important;
        font-size: 15px !important;
    }
}
