/* Combo discount / offer section — storefront badges & promo strips */

.rw-offer-badge {
    background: rgba(255, 69, 69, 0.92);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    z-index: 2;
    max-width: calc(100% - 0.5rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-offer-promo-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 69, 69, 0.35);
    background: rgba(255, 69, 69, 0.1);
}

.rw-offer-promo-main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.rw-offer-promo-icon {
    color: #ff6b6b;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rw-offer-promo-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}

.rw-offer-promo-hint {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.rw-offer-promo-copy {
    border: 1px solid rgba(255, 69, 69, 0.55);
    background: rgba(255, 69, 69, 0.18);
    color: #ff8a8a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rw-offer-promo-copy:hover {
    background: rgba(255, 69, 69, 0.32);
    color: #fff;
}

.redwave-cart .rw-cart-offer-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    margin-top: 0.35rem;
}

.redwave-cart .rw-cart-offer-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff8a8a;
    line-height: 1.3;
}

.redwave-cart .rw-cart-offer-save {
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.redwave-cart .rw-cart-offer-pending .rw-cart-offer-label {
    color: rgba(255, 255, 255, 0.62);
}

.redwave-cart .rw-cart-line-mrp {
    display: block;
    color: rgba(255, 255, 255, 0.42);
    margin-top: 0.15rem;
}

.redwave-cart .cart-combo-discount th,
.redwave-cart .cart-combo-discount td,
.redwave-checkout .cart-combo-discount th,
.redwave-checkout .cart-combo-discount td {
    color: #ff8a8a !important;
}

/* Discount code row — cart & checkout order summary */
.rw-discount-code {
    margin: 0.75rem 0 1rem;
}

.rw-discount-code-trigger {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.rw-discount-code-trigger:hover {
    color: #fff;
}

.rw-discount-code-checkbox {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.38);
    border-radius: 3px;
    background: transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rw-discount-code-trigger:hover .rw-discount-code-checkbox {
    border-color: rgba(255, 69, 69, 0.65);
}

.rw-discount-code-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.rw-discount-code-applied-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rw-discount-code-applied-end {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.rw-discount-code-applied-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: #ff8a8a;
    white-space: nowrap;
}

.rw-discount-code-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rw-discount-code-remove:hover {
    background: rgba(255, 69, 69, 0.22);
    color: #fff;
}

.rw-discount-code-remove i {
    font-size: 1rem;
    line-height: 1;
}

/* Discount code modal */
.rw-discount-code-modal .modal-content {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #fff;
}

.rw-discount-code-modal .modal-header,
.rw-discount-code-modal .modal-footer {
    padding: 1rem 1.25rem;
}

.rw-discount-code-modal .modal-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.rw-discount-code-modal .close {
    color: rgba(255, 255, 255, 0.55);
    text-shadow: none;
    opacity: 1;
}

.rw-discount-code-modal .close:hover {
    color: #fff;
}

.rw-discount-code-modal .modal-body {
    padding: 0 1.25rem 1rem;
}

.rw-discount-code-modal-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
}

.rw-discount-code-modal-input {
    background: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    border-radius: 8px !important;
    min-height: 44px;
}

.rw-discount-code-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.rw-discount-code-modal-input:focus {
    border-color: rgba(255, 69, 69, 0.55) !important;
    box-shadow: 0 0 0 2px rgba(255, 69, 69, 0.15) !important;
}

.rw-discount-code-modal-hint {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.rw-discount-code-modal-cancel {
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none !important;
}

.rw-discount-code-modal-cancel:hover {
    color: #fff !important;
}

.rw-discount-code-modal .btn-primary {
    background: #ff4545 !important;
    border-color: #ff4545 !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 8px !important;
    padding: 0.5rem 1.25rem !important;
}
