/* کانتینر اصلی */
.khot-container {
    max-width: 520px;
    margin: 40px auto;
    padding: 25px 22px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    font-family: IRANSans, sans-serif;
    direction: rtl;
    text-align: right;
}

/* عنوان‌ها */
.khot-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: #c4161c;
    margin-bottom: 8px;
}

.khot-subtitle {
    text-align: center;
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

/* فرم */
.khot-form {
    margin-bottom: 10px;
}

.khot-field {
    margin-bottom: 15px;
}

.khot-field label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #444;
}

.khot-field input {
    width: 100%;
    padding: 11px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.khot-field input:focus {
    border-color: #c4161c;
    box-shadow: 0 0 0 2px rgba(196,22,28,0.15);
    outline: none;
}

/* دکمه */
.khot-btn {
    width: 100%;
    padding: 12px;
    background: #c4161c;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.khot-btn:hover {
    background: #a51217;
    transform: translateY(-1px);
}

/* باکس نتیجه */
.khot-result-box {
    margin-top: 20px;
}

/* وضعیت */
.khot-status {
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    margin-bottom: 15px;
    animation: khotFadeIn 0.3s ease-out;
}

.khot-status.success {
    background: #e8f9ee;
    border: 1px solid #b6e7c5;
}

.khot-status.error {
    background: #fff3f3;
    border: 1px solid #f7b1b1;
}

.khot-icon {
    font-size: 32px;
    margin-bottom: 6px;
}

.khot-status p {
    margin: 0;
    font-size: 14px;
    color: #444;
}

/* جزئیات سفارش */
.khot-order-details {
    padding: 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    margin-top: 15px;
}

.khot-order-details h3 {
    font-size: 17px;
    margin-bottom: 15px;
    color: #c4161c;
    font-weight: 800;
}

.khot-detail-item {
    display: flex;
    justify-content: space-between;
    background: #fafafa;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    border: 1px solid #eee;
}

.khot-detail-item.total {
    background: #fff4f4;
    border-color: #f5b5b8;
    font-weight: 700;
}

/* محصولات */
.khot-products {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.khot-products li {
    display: flex;
    justify-content: space-between;
    padding: 8px 10px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #eee;
    margin-bottom: 6px;
    font-size: 13px;
}

/* باکس رسید باربری */
.khot-receipt-box {
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(135deg, #eef3ff, #f7faff);
    border: 1px solid #d6e4ff;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.khot-receipt-box h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 800;
    color: #2f54eb;
}

.khot-receipt-img {
    width: 100%;
    max-width: 380px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: transform .2s;
}

.khot-receipt-img:hover {
    transform: scale(1.03);
}

/* انیمیشن */
@keyframes khotFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* موبایل */
@media (max-width: 600px) {
    .khot-container {
        margin: 20px 10px;
        padding: 18px 15px;
    }
}
