/* Yaghoot brand palette */
:root {
    --yw-discount-brand: #ED1C24;
    --yw-discount-brand-hover: #c7161d;
    --yw-discount-brand-soft: #fff3f4;
    --yw-discount-brand-border: #f4b7bb;
    --yw-discount-brand-text: #761116;
}

/* Promotion notice */
.yw-discount-promo-notice {
    margin: 12px 0 16px;
    padding: 11px 14px;
    border: 1px solid var(--yw-discount-brand-border);
    background: var(--yw-discount-brand-soft);
    color: var(--yw-discount-brand-text);
    line-height: 1.9;
    font-size: 14px;
}

.yw-discount-promo-count {
    font-weight: 700;
    color: var(--yw-discount-brand);
}

/* Custom stock status */
.stock-warning {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 8px 0;
    line-height: 1.6;
}

.stock-warning__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.stock-warning__icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
}

.stock-warning__text {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.stock-warning--out {
    color: var(--yw-discount-brand);
}

.stock-warning--low {
    color: #d67a00;
}

.stock-warning--in {
    color: #699f4c;
}

.stock-warning__count {
    font-weight: 700;
}

/* SweetAlert buttons */
.swal2-confirm.swal2-styled {
    background: var(--yw-discount-brand);
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.22);
    transition: all 0.25s ease-out;
}

.swal2-confirm.swal2-styled:hover {
    background: var(--yw-discount-brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(237, 28, 36, 0.28);
}

.swal2-confirm.swal2-styled:focus {
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.20) !important;
}

.swal2-icon.swal2-info {
    border-color: rgba(237, 28, 36, 0.35) !important;
    color: var(--yw-discount-brand) !important;
}

.swal2-cancel.swal2-styled {
    background: #e6e6e6;
    color: #444 !important;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #ccc;
}

.swal2-cancel.swal2-styled:hover {
    background: #d5d5d5;
}


/* Dynamic checkout promotion message */
.yw-discount-checkout-message {
    text-align: right;
    line-height: 2;
    font-size: 15px;
    color: #333;
}
