/* ==========================================================================
   Coupon Modal
   ========================================================================== */

.tsc-coupon-entry {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.tsc-coupon-entry__input {
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #ececef;
    border-radius: 8px;
    font-size: 14px;
    color: #161823;
    background: #f5f5f7;
    font-family: inherit;
    box-sizing: border-box;
    text-transform: uppercase;
    -webkit-appearance: none;
    appearance: none;
}
.tsc-coupon-entry__input:focus {
    outline: none;
    border-color: #161823;
    background: #fff;
}
.tsc-coupon-entry__input::placeholder {
    text-transform: none;
    color: #b0b1b7;
}
.tsc-coupon-entry__btn {
    background: var(--global-palette-btn-bg, #161823) !important;
    color: var(--global-palette-btn, #fff) !important;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: background 0.15s;
}
.tsc-coupon-entry__btn:disabled {
    background: #ececef !important;
    color: #b0b1b7 !important;
    cursor: not-allowed;
}

.tsc-coupon-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #8a8b91;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 16px 0 8px;
}
.tsc-coupon-section-title:first-child { margin-top: 0; }

.tsc-coupon-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #ececef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s;
}
.tsc-coupon-card.is-applied {
    border-color: #161823;
    background: #f7f7f7;
    cursor: default;
}
.tsc-coupon-card.is-applying {
    opacity: 0.6;
    cursor: wait;
}
.tsc-coupon-card.is-locked {
    opacity: 0.5;
    cursor: default;
}
.tsc-coupon-card.is-locked .tsc-coupon-card__discount {
    background: #8a8b91;
}

.tsc-coupon-card__hint {
    font-size: 12px;
    color: #161823;
    margin-top: 6px;
    font-weight: 600;
}
.tsc-coupon-card__reason {
    font-size: 12px;
    color: #161823;
    margin-top: 6px;
    font-weight: 600;
}
.tsc-coupon-card__lock {
    color: #8a8b91;
    flex-shrink: 0;
}

.tsc-coupon-card__discount {
    flex-shrink: 0;
    width: 96px;
    background: #161823;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 8px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    word-break: break-word;
}

.tsc-coupon-card__body {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tsc-coupon-card__code {
    font-size: 14px;
    font-weight: 700;
    color: #161823;
    letter-spacing: 0.5px;
}
.tsc-coupon-card__description {
    font-size: 13px;
    font-weight: 700;
    color: #161823;
    margin-top: 2px;
    line-height: 1.4;
}
.tsc-coupon-card__conditions {
    font-size: 12px;
    color: #5a5b62;
    margin-top: 6px;
    line-height: 1.5;
}

.tsc-coupon-card__action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 14px;
}
.tsc-coupon-card__remove {
    background: #000000 !important;
    border: 1px solid #000000;
    color: #ffffff !important;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}
.tsc-coupon-card__applied-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #161823;
    font-size: 12px;
    font-weight: 600;
}

.tsc-coupon-empty {
    text-align: center;
    padding: 30px 16px;
    color: #8a8b91;
    font-size: 14px;
}

.tsc-coupon-feedback {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}
.tsc-coupon-feedback--error {
    background: #f0f0f0;
    color: #161823;
}
.tsc-coupon-feedback--success {
    background: #f0f0f0;
    color: #161823;
}