﻿

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

    .input-section input {
        flex: 1;
        padding: 8px;
        border-radius: 6px;
        border: 1px solid #ccc;
    }

    .input-section button {
        background-color: #007bff;
        color: white;
        padding: 8px 16px;
        border-radius: 6px;
        border: none;
        font-weight: bold;
    }

.or-divider {
    text-align: center;
    font-size: 14px;
    margin: 15px 0;
    color: #888;
}

.coupon-list .card:not(.disabled):hover {
    background-color: #ffa500 !important;
    transition: background-color 0.3s ease;
    cursor: pointer;
    color: var(--white)
}

.coupon-list {
    overflow-y: auto;
    max-height: 300px;
    padding-right: 10px;
    box-sizing: border-box;
}

    .coupon-list .disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.coupon-item .active {
    background-color: #ffa500;
    color: white;
}


.col-auto .disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
    .coupon-list input[type="radio"] {
        margin-right: 10px;
        transform: scale(1.2);
    }


.discount-code-prefix {
    color: #999;
    font-weight: bold;
}

.apply-button {
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}


    .apply-button:disabled {
        background-color: #ccc;
        cursor: not-allowed;
        color: #666;
    }

.coupon-applied {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 6px 10px;
    background-color: #f0f9f5;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #28a745;
    transition: all 0.4s ease;
    opacity: 1;
    max-height: 50px; /* cao vừa đủ */
    overflow: hidden;
}

    /* Trạng thái ẩn */
    .coupon-applied.hidden {
        opacity: 0;
        max-height: 0;
        padding: 0;
        margin: 0;
    }

.coupon-applied .discount-amount {
    font-weight: bold;
    color: #ee0e00;
}

.coupon-applied a#change-coupon {
    color: #007bff;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .coupon-applied a#change-coupon:hover {
        text-decoration: underline;
        color: #0056b3;
    }



#change-coupon {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}


.result-message {
    margin-top: 15px;
    font-weight: bold;
    color: green;
}

@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

.popup.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

.popup.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

/* Hình ảnh minh họa */
.illustration {
    text-align: center;
    color: #666;
}

    .illustration img {
        width: 120px;
        opacity: 0.5;
    }

.empty {
    font-weight: bold;
    margin-top: 10px;
}

.note {
    font-size: 14px;
}
