.discount-container {
    max-width: 420px;        /* عرض بیشتر */
    margin: 15px auto 15px 0; /* چسبیده به چپ */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.discount-form {
    background: #fff;
    border-radius: 10px;
    padding: 14px;      /* کمتر */
    border: 1px solid #f0f0f0;
}

.discount-input-wrapper {
    display: flex;
    gap: 8px;           /* فاصله کمتر */
}

.discount-input {
    flex: 1;
    padding: 10px 12px; /* جمع‌وجور */
    font-size: 13px;
    border-radius: 7px;
}

.discount-button {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 7px;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    color: #fff;

    background: linear-gradient(135deg, #ff7a18, #ffb347); /* نارنجی جذاب */
    box-shadow: 0 4px 12px rgba(255, 122, 24, 0.35);

    transition: all 0.3s ease;
}

.discount-button:hover {
    background: linear-gradient(135deg, #ff6a00, #ffa63d);
    box-shadow: 0 6px 16px rgba(255, 122, 24, 0.45);
    transform: translateY(-1px);
}

.discount-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(255, 122, 24, 0.3);
}


/*استایل پیام های  toast*/
.toast {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.4s ease;
    max-width: 300px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
}

/* استایل برای پیغام موفقیت */
.toast.success {
    background-color: #28a745;
    border-right: 5px solid #218838;
}

/* استایل برای پیغام خطا */
.toast.error {
    background-color: #dc3545;
    border-right: 5px solid #c82333;
}

/* استایل هنگام نمایش */
.toast.show {
    opacity: 1;
    transform: translateX(0);
}


/* آیکون وضعیت */
.toast-icon {
    margin-left: 10px;
    font-size: 20px;
}


