/*==================================================
   ESSALEK COD FORM
==================================================*/
/*==================================================
   ESSALEK COD FORM
==================================================*/
:root {
    --primary: #ff5a1f;
    --primary-hover: #e84b12;
    --success: #16a34a;
    --border: #e5e5e5;
    --radius: 16px;
}

/* Card Container */
.essalek-form {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
    box-sizing: border-box;
}

/* Product Card */
.essalek-product-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,.05);
}

/* Image */
.essalek-image img {
    width: 220px;
    max-width: 100%;
    border-radius: 14px;
    height: auto;
}

/* Title */
.essalek-title {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin: 20px 0 10px;
}

/* Price */
.essalek-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 20px;
}

/* ========================================
   Quantity Control Buttons (تم الإصلاح والتأمين)
======================================== */
.essalek-qty {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
}

.essalek-qty button {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    touch-action: manipulation; /* إلغاء تأخر النقرات على الهواتف */
    user-select: none;          /* منع ظهور تظليل النص عند تكرار الضغط */
}

.essalek-qty button:hover {
    background: var(--primary-hover);
}

.essalek-qty input {
    width: 70px;
    height: 48px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    box-sizing: border-box;
}

/* ========================================
   Summary & Total Section
======================================== */
.essalek-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 25px 0;
}

.essalek-summary-col {
    flex: 1;
}

.essalek-summary-col label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

#essalek-total-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 48px;
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
}

/* ========================================
   Customer Fields
======================================== */
.essalek-customer {
    margin-top: 30px;
}

.essalek-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: right;
}

.essalek-field {
    margin-bottom: 15px;
}

.essalek-field input {
    width: 100%;
    height: 52px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 16px;
    transition: .3s;
    box-sizing: border-box;
    text-align: right;
}

.essalek-field input:focus {
    border-color: #ff5a1f;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,90,31,.15);
}

/* ========================================
   Submit Button
======================================== */
/* ========================================
   Submit Button (تم إصلاح الألوان بالكامل)
======================================== */
.essalek-submit {
    margin-top: 30px;
}

.essalek-submit-button {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 14px;
    background-color: var(--primary) !important; /* يجبر الزر على أخذ اللون الأساسي المحدد */
    color: #ffffff !important;                   /* لون النص الأبيض */
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.25s ease;
    position: relative;
    z-index: 99;
    touch-action: manipulation;
}

.essalek-submit-button:hover {
    background-color: var(--primary-hover) !important; /* لون الزر عند تمرير الماوس */
}

.essalek-submit-button:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
}