/* UJ Smart Coupons — Frontend */

.ujsc-wrap {
    margin: 0 0 20px;
    border: 1px solid #e8dcc8;
    border-radius: 10px;
    background: #fffdf9;
    overflow: hidden;
}

.ujsc-header {
    padding: 11px 16px 10px;
    border-bottom: 1px solid #f0e8d8;
}

.ujsc-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #b08a4e;
}

.ujsc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ujsc-item {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f0ebe0;
    transition: background .15s;
}

.ujsc-item:last-child {
    border-bottom: none;
}

.ujsc-item:hover {
    background: #fffbf4;
}

.ujsc-item.is-applied {
    background: #f5fbee;
}

.ujsc-item__left {
    flex: 1;
    padding: 13px 14px;
    min-width: 0;
}

.ujsc-item__code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .05em;
    color: #1a1410;
    margin-bottom: 3px;
}

.ujsc-item__desc {
    font-size: 12px;
    color: #777;
    line-height: 1.4;
    margin-bottom: 7px;
}

.ujsc-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.ujsc-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 3px;
    background: #f0ebe0;
    color: #7a6340;
    letter-spacing: .02em;
}

.ujsc-tag--savings {
    background: #eaf3de;
    color: #3b6d11;
}

.ujsc-tag--expiry {
    background: #fef4e6;
    color: #a06010;
}

.ujsc-item__right {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 14px 0 0;
    flex-shrink: 0;
}

.ujsc-item__divider {
    width: 1px;
    height: 36px;
    background: #ede5d5;
    margin-right: 14px;
    flex-shrink: 0;
}

.ujsc-apply-btn {
    font-size: 12px;
    font-weight: 600;
    color: #c8a96e;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    letter-spacing: .03em;
    transition: color .15s, transform .1s;
    white-space: nowrap;
    text-transform: uppercase;
}

.ujsc-apply-btn:hover {
    color: #a07840;
}

.ujsc-apply-btn:active {
    transform: scale(.95);
}

.ujsc-apply-btn.is-applied {
    color: #3b6d11;
}

.ujsc-apply-btn.is-applied:hover {
    color: #a32d2d;
}

.ujsc-apply-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ujsc-message {
    font-size: 12px;
    padding: 9px 14px;
    border-top: 1px solid #f0e8d8;
}

.ujsc-message--success {
    color: #3b6d11;
    background: #f5fbee;
}

.ujsc-message--error {
    color: #a32d2d;
    background: #fff5f5;
}

@media (max-width: 480px) {
    .ujsc-item__desc { display: none; }
}
