/* The coupon box in the shop cart. Scoped under .cbx so it can sit inside the
   landing page's glass panels and the Bootstrap carts on products/premium
   without either one's styles bleeding in. */

.cbx { margin: 12px 0; }

.cbx__row { display: flex; gap: 8px; }

.cbx__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.cbx__input::placeholder { letter-spacing: normal; text-transform: none; color: #94a3b8; }
.cbx__input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.12); }

.cbx__btn {
    flex: 0 0 auto;
    padding: 11px 20px;
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease;
}
.cbx__btn:hover:not(:disabled) { filter: brightness(1.25); }
.cbx__btn:disabled { opacity: .6; cursor: default; }

.cbx__note { margin-top: 7px; font-size: 12.5px; line-height: 1.5; min-height: 0; }
.cbx__note--good { color: #047857; font-weight: 600; }
.cbx__note--bad  { color: #b91c1c; }

.cbx__applied { display: none; margin-top: 9px; }
.cbx__applied.is-on { display: block; }

.cbx__tag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px 7px 13px;
    border: 1px dashed #6ee7b7;
    border-radius: 999px;
    background: #ecfdf5;
    color: #065f46;
    font-size: 13px;
}
.cbx__tag b { letter-spacing: .6px; font-weight: 800; }
.cbx__minus { font-weight: 800; }

.cbx__remove {
    border: 0;
    background: rgba(6, 95, 70, .1);
    color: #065f46;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.cbx__remove:hover { background: rgba(6, 95, 70, .22); }

/* The discount line in the cart summary. */
.cbx-line {
    display: none;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #047857;
    margin: 6px 0;
}
.cbx-line.is-on { display: flex; }

@media (prefers-color-scheme: dark) {
    .cbx__input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
    .cbx__btn { background: #7c3aed; }
    .cbx__tag { background: #064e3b; border-color: #047857; color: #a7f3d0; }
    .cbx__remove { background: rgba(167,243,208,.15); color: #a7f3d0; }
    .cbx-line { color: #6ee7b7; }
}
:root[data-theme="dark"] .cbx__input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
:root[data-theme="dark"] .cbx__tag { background: #064e3b; border-color: #047857; color: #a7f3d0; }
:root[data-theme="light"] .cbx__input { background: #fff; border-color: #cbd5e1; color: #0f172a; }
