/* Voucher restriction hint styling */
.voucherrules-hint {
    border-radius: .375rem;
    padding: .75rem 1rem;
    margin-top: .75rem;
    margin-bottom: .5rem;
    font-size: .8125rem;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Info state: pending, waiting for selection */
.voucherrules-hint--info {
    color: #055160;
    background-color: #cff4fc;
    border: 1px solid #b6effb;
}

/* Warning state: wrong payment/delivery selected */
.voucherrules-hint--warning {
    color: #664d03;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
}

/* Header row: label + remove button */
.voucherrules-hint__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .5rem;
}

.voucherrules-hint__header strong {
    flex: 1;
    margin-bottom: .125rem;
}

/* Remove button (x) */
.voucherrules-hint__remove {
    flex-shrink: 0;
    color: inherit;
    opacity: .6;
    font-size: 1.125rem;
    line-height: 1;
    text-decoration: none;
    padding: 0 .125rem;
}

.voucherrules-hint__remove:hover {
    opacity: 1;
    text-decoration: none;
}

.voucherrules-hint strong {
    display: block;
    margin-bottom: .125rem;
}

/* Override Apex: .is-checkout .sticky-md-top span { white-space: nowrap } (specificity 0-2-1) */
.is-checkout .voucherrules-hint span {
    display: block;
    margin-top: .25rem;
    white-space: normal;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}
