/* =============================================================
   Aura QB — Coupon Promo Banner  v2.2
   Two-row layout: description + status/coupon/timer
   Displayed in: cart page, checkout
   ============================================================= */

.aura-qb-banner {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 13px;
    color: #1f2937;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    box-sizing: border-box;
    line-height: 1.4;
    overflow: hidden;
}

/* =============================================================
   Row 1: Promo description (checkmark + text)
   ============================================================= */

.aura-qb-banner__desc {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    font-size: 13.5px;
    color: #1f2937;
    line-height: 1.5;
}

.aura-qb-banner__desc svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    color: #16a34a;
    margin-top: 0px;
}

.aura-qb-banner__desc span {
    flex: 1;
}

.aura-qb-banner__desc b,
.aura-qb-banner__desc strong {
    font-weight: 700;
    color: #111827;
}

/* =============================================================
   Row 2: Coupon status + timer (nested card)
   ============================================================= */

.aura-qb-banner__status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 8px 8px;
    padding: 10px 12px;
    background: #dbeafe;
    border-radius: 8px;
    flex-wrap: wrap;
}

/* When desc is absent, status gets top margin too */
.aura-qb-banner__status:first-child {
    margin-top: 8px;
}

/* =============================================================
   Status elements
   ============================================================= */

.aura-qb-banner__icon {
    flex-shrink: 0;
    color: #3b82f6;
}

.aura-qb-banner__text {
    flex: 1 1 0%;
    min-width: 0;
    font-size: 12.5px;
    color: #1e40af;
    line-height: 1.4;
}

/* --- Badge: "Promocja aktywna" (green) --- */
.aura-qb-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.aura-qb-banner__badge--active {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #86efac;
}

.aura-qb-banner__badge--active svg {
    color: #16a34a;
}

/* --- Button: "Aktywuj promocje" (CTA) --- */
.aura-qb-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: #2563eb;
    color: #fff !important;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.15s, box-shadow 0.15s;
    cursor: pointer;
}

.aura-qb-banner__btn:hover {
    background: #1d4ed8;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
    color: #fff !important;
    text-decoration: none !important;
}

.aura-qb-banner__btn svg {
    color: rgba(255, 255, 255, 0.85);
}

/* --- Coupon code --- */
.aura-qb-banner__code {
    display: inline-block;
    background: rgba(255, 255, 255, 0.65);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.5px;
    color: #1e3a8a;
}

.aura-qb-banner__code:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* --- Timer --- */
.aura-qb-banner__timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.55);
    padding: 5px 10px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
}

.aura-qb-banner__timer svg {
    flex-shrink: 0;
    color: #3b82f6;
}

/* =============================================================
   CONTEXT: Cart page
   ============================================================= */

.aura-qb-banner--cart {
    margin: 0 0 3.706325903em;
}

/* =============================================================
   CONTEXT: Checkout
   ============================================================= */

.aura-qb-banner--checkout {
    margin: 12px 0 24px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 768px) {
    .aura-qb-banner__desc {
        padding: 12px 12px;
        font-size: 12.5px;
        gap: 8px;
    }

    .aura-qb-banner__desc svg {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        max-width: 18px;
        max-height: 18px;
    }

    .aura-qb-banner__status {
        margin: 0 6px 6px;
        padding: 8px 10px;
        gap: 8px;
    }

    .aura-qb-banner__text {
        font-size: 11.5px;
    }

    .aura-qb-banner__badge {
        font-size: 11.5px;
        padding: 4px 10px;
    }

    .aura-qb-banner__btn {
        font-size: 11.5px;
        padding: 5px 12px;
    }

    .aura-qb-banner__code {
        font-size: 12px;
        padding: 1px 6px;
    }

    .aura-qb-banner__timer {
        font-size: 11px;
        padding: 4px 8px;
    }

    .aura-qb-banner--cart {
        margin: 0 0 12px;
    }

    .aura-qb-banner--checkout {
        margin: 10px 0 16px;
    }
}
