/**
 * FP Basket Tools — Cart page styles.
 */

/* ── Round-Up Upsell ── */
.fpbt-roundup__offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
}

.fpbt-roundup__text {
    font-size: 14px;
    color: #374151;
}

.fpbt-roundup__text--applied {
    color: #16a34a;
    font-weight: 600;
}

.fpbt-roundup__btn {
    white-space: nowrap;
    font-size: 13px;
    padding: 6px 16px !important;
    background: #7c3aed !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer;
    transition: background 0.15s;
}

.fpbt-roundup__btn:hover {
    background: #6d28d9 !important;
}

.fpbt-roundup__btn--remove {
    background: #dc2626 !important;
    font-size: 12px;
    padding: 4px 12px !important;
}

.fpbt-roundup__btn--remove:hover {
    background: #b91c1c !important;
}

/* ── Available Coupons Panel ── */
.fpbt-coupons {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.fpbt-coupons__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.fpbt-coupons__header:hover {
    background: #f3f4f6;
}

.fpbt-coupons__title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.fpbt-coupons__toggle {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s;
}

.fpbt-coupons--open .fpbt-coupons__toggle {
    transform: rotate(180deg);
}

.fpbt-coupons__body {
    display: none;
    padding: 0 16px 12px;
}

.fpbt-coupons--open .fpbt-coupons__body {
    display: block;
}

/* ── Individual Coupon Row ── */
.fpbt-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.fpbt-coupon:last-child {
    border-bottom: none;
}

.fpbt-coupon__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.fpbt-coupon__discount {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.fpbt-coupon__restriction {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 500;
}

.fpbt-coupon__expiry {
    font-size: 11px;
    color: #9ca3af;
}

.fpbt-coupon__reason {
    font-size: 11px;
    color: #dc2626;
    font-style: italic;
}

.fpbt-coupon__action {
    flex-shrink: 0;
}

.fpbt-coupon__apply {
    font-size: 12px !important;
    padding: 4px 14px !important;
    background: #16a34a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
}

.fpbt-coupon__apply:hover {
    background: #15803d !important;
}

.fpbt-coupon__badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.fpbt-coupon__badge--applied {
    background: #dcfce7;
    color: #16a34a;
}

.fpbt-coupon__badge--ineligible {
    background: #fef2f2;
    color: #dc2626;
}

/* ── Ineligible/Applied states ── */
.fpbt-coupon--applied {
    opacity: 0.6;
}

.fpbt-coupon--ineligible {
    opacity: 0.5;
}
