/* AT Vouchers — Redeem UI
 * Varianta 3 (card cu accent stânga mov #91297F) + Applied B (card verde cu „Elimină" link)
 */

.at-voucher-slot {
    margin: 16px 0;
}

/* ─── Stare inițială: card cu accent mov ──────────────────────── */
.at-voucher-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #91297F;
    border-radius: 6px;
    padding: 14px 16px;
}

.at-voucher-box[hidden] {
    display: none !important;
}

/* Header (titlu + „opțional") */
.at-voucher-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 10px;
    font: inherit;
    color: #333;
    text-align: left;
}

.at-voucher-toggle__icon {
    color: #91297F;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
}

.at-voucher-toggle__text {
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.at-voucher-toggle__hint {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* Rândul cu input + buton */
.at-voucher-form {
    margin-top: 0;
}

.at-voucher-form__row {
    display: flex;
    gap: 8px;
}

.at-voucher-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
}

.at-voucher-input:focus {
    outline: none;
    border-color: #91297F;
    box-shadow: 0 0 0 2px rgba(145, 41, 127, 0.15);
}

.at-voucher-input:disabled {
    background: #f5f5f5;
    cursor: wait;
}

.at-voucher-apply {
    padding: 10px 20px;
    border: 1px solid #91297F;
    background: #91297F;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s, border-color 0.15s;
}

.at-voucher-apply:hover {
    background: #6e1f60;
    border-color: #6e1f60;
}

.at-voucher-apply:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Mesaje sub form */
.at-voucher-msg {
    margin: 8px 0 0;
    min-height: 1.2em;
    font-size: 13px;
    line-height: 1.4;
}

.at-voucher-msg.is-error {
    color: #c0392b;
}

.at-voucher-msg.is-success {
    color: #2c7a3f;
}

/* ─── Stare „aplicat" (B): card verde cu „Elimină" link ──────────── */
.at-voucher-applied {
    margin-top: 12px;
    background: #E1F5EE;
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.at-voucher-applied[hidden] {
    display: none !important;
}

.at-voucher-applied__info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #085041;
    font-size: 14px;
}

.at-voucher-applied__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1D9E75;
    font-size: 16px;
    line-height: 1;
}

.at-voucher-applied__code {
    font-weight: 500;
}

.at-voucher-remove {
    background: none;
    border: 0;
    padding: 0;
    color: #085041;
    text-decoration: underline;
    text-underline-offset: 2px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.at-voucher-remove:hover {
    color: #04342C;
}

.at-voucher-remove:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* În step 2 din booking, mic ajustaj de margin */
#p2 .at-voucher-slot {
    margin: 12px 0 20px;
}