/*==================================================
   ESSALEK COD FORM
   كل الألوان والأحجام تأتي من متغيرات --es-* التي تُضبط من لوحة التحكم
   (القيم هنا افتراضية فقط، وتُستبدل بالقيم المحفوظة عبر CSS مضاف بعد هذا الملف)
==================================================*/
.essalek-form,
.essalek-thank-you {
    --es-primary: #ff5a1f;
    --es-primary-hover: #e84b12;
    --es-primary-soft: rgba(255,90,31,.08);
    --es-primary-ring: rgba(255,90,31,.18);
    --es-btn-text: #ffffff;
    --es-success: #16a34a;
    --es-success-soft: rgba(22,163,74,.10);
    --es-bg: #ffffff;
    --es-text: #222222;
    --es-soft-bg: rgba(34,34,34,.05);
    --es-border: #e2e2e2;
    --es-input-bg: #ffffff;
    --es-radius: 12px;
    --es-card-radius: 18px;
    --es-shadow: 0 8px 25px rgba(0,0,0,.06);
    --es-max-width: 700px;
    --es-font: inherit;
}

/* Card Container */
.essalek-form {
    max-width: var(--es-max-width);
    margin: 30px auto;
    padding: 30px;
    background: var(--es-bg);
    color: var(--es-text);
    border: 1px solid var(--es-border);
    border-radius: var(--es-card-radius);
    box-shadow: var(--es-shadow);
    box-sizing: border-box;
    font-family: var(--es-font);
}

.essalek-form input,
.essalek-form select,
.essalek-form button {
    font-family: inherit;
}

/* Product Card */
.essalek-product-card {
    background: var(--es-bg);
    border: 1px solid var(--es-border);
    border-radius: var(--es-card-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--es-shadow);
}

/* Image */
.essalek-image img {
    width: 220px;
    max-width: 100%;
    border-radius: var(--es-radius);
    height: auto;
}

/* Title */
.essalek-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--es-text);
    margin: 20px 0 10px;
}

/* Price */
.essalek-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--es-success);
    margin-bottom: 20px;
}

/* ========================================
   Quantity Control Buttons
======================================== */
.essalek-qty {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* تثبيت المقاسات حتى لا تكبّرها أنماط القالب (padding / min-width / line-height) */
.essalek-qty button {
    flex: 0 0 auto;
    width: var(--es-qty-size, 48px);
    height: var(--es-qty-size, 48px);
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1;
    border: none;
    border-radius: var(--es-radius);
    background: var(--es-qty-bg, var(--es-primary));
    color: var(--es-qty-text, var(--es-btn-text));
    font-size: calc(var(--es-qty-size, 48px) * .5);
    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(--es-qty-bg-hover, var(--es-primary-hover));
}

.essalek-qty input {
    flex: 0 0 auto;
    width: var(--es-qty-input-w, 70px);
    max-width: 100%;
    height: var(--es-qty-size, 48px);
    min-height: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: var(--es-qty-font, 22px);
    font-weight: 700;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    background: var(--es-input-bg);
    color: var(--es-text);
    outline: none;
    box-sizing: border-box;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* إخفاء أسهم الزيادة/النقصان الافتراضية لحقل الأرقام (تكبّر الحقل على الهاتف) */
.essalek-qty input::-webkit-outer-spin-button,
.essalek-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* نمط: أزرار دائرية */
.essalek-qty--round button {
    border-radius: 50%;
}

/* نمط: شريط واحد متصل */
.essalek-qty--joined {
    gap: 0;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--es-border);
    border-radius: calc(var(--es-radius) + 2px);
    overflow: hidden;
    background: var(--es-input-bg);
}

.essalek-qty--joined button,
.essalek-qty--joined input {
    border-radius: 0;
}

.essalek-qty--joined input {
    border: 0;
}

/* ========================================
   Summary & Total Section
======================================== */
.essalek-summary {
    display: flex;
    flex-wrap: wrap;            /* إذا ضاق المكان ينزل السعر تحت الكمية بدل أن يخرج من الإطار */
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 25px 0;
}

.essalek-summary-col {
    flex: 1 1 150px;
    min-width: 0;
}

.essalek-summary-col--qty {
    flex-basis: 190px;
}

.essalek-summary-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--es-text);
    opacity: .8;
    text-align: center;
}

#essalek-total-price,
.essalek-total-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: var(--es-qty-size, 48px);
    font-size: var(--es-total-size, 28px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--es-success);
    overflow-wrap: anywhere;
}

/* تخطيط: الكمية فوق والسعر تحتها */
.essalek-summary--stack {
    flex-direction: column;
    align-items: stretch;
}

.essalek-summary--stack .essalek-summary-col {
    flex: 0 0 auto;
    width: 100%;
}

.essalek-summary--stack .essalek-total-price {
    justify-content: center;
}

@media (max-width: 480px) {
    .essalek-form {
        padding: 20px 16px;
    }

    .essalek-summary--stack-mobile {
        flex-direction: column;
        align-items: stretch;
    }

    .essalek-summary--stack-mobile .essalek-summary-col {
        flex: 0 0 auto;
        width: 100%;
    }

    .essalek-summary--stack-mobile .essalek-total-price {
        justify-content: center;
    }
}

/* إخفاء عناصر الملخص (الجافا سكريبت يبقى يعمل عليها) */
.essalek-is-hidden {
    display: none !important;
}

/* ========================================
   Customer Fields
======================================== */
.essalek-customer {
    margin-top: 30px;
}

.essalek-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: right;
    color: var(--es-text);
}

.essalek-field {
    margin-bottom: 15px;
}

.essalek-field input,
.essalek-field select {
    width: 100%;
    height: 52px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    padding: 0 18px;
    font-size: 16px;
    background: var(--es-input-bg);
    color: var(--es-text);
    transition: .3s;
    box-sizing: border-box;
    text-align: right;
}

.essalek-field input::placeholder {
    color: var(--es-text);
    opacity: .45;
}

.essalek-field select option {
    background: var(--es-input-bg);
    color: var(--es-text);
}

.essalek-field input:focus,
.essalek-field select:focus {
    border-color: var(--es-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--es-primary-ring);
}

/* نمط الحقول: مملوء */
.essalek-fields-filled .essalek-field input,
.essalek-fields-filled .essalek-field select {
    border-color: transparent;
}

.essalek-fields-filled .essalek-field input:focus,
.essalek-fields-filled .essalek-field select:focus {
    border-color: var(--es-primary);
}

/* نمط الحقول: خط سفلي */
.essalek-fields-underline .essalek-field input,
.essalek-fields-underline .essalek-field select {
    border-width: 0 0 2px 0;
    border-color: var(--es-border);
    border-radius: 0;
    background: transparent;
    padding: 0 4px;
}

.essalek-fields-underline .essalek-field input:focus,
.essalek-fields-underline .essalek-field select:focus {
    border-color: var(--es-primary);
    box-shadow: none;
}

/* ========================================
   Submit Button
======================================== */
.essalek-submit {
    margin-top: 30px;
}

.essalek-submit-button {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: calc(var(--es-radius) + 2px);
    background-color: var(--es-primary) !important; /* يجبر الزر على أخذ اللون الأساسي المحدد */
    color: var(--es-btn-text) !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(--es-primary-hover) !important;
}

.essalek-submit-button:disabled {
    background-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
}

/* زر أضف إلى السلة */
.essalek-add-to-cart-button {
    width: 100%;
    height: 52px;
    border: 2px solid var(--es-primary);
    border-radius: calc(var(--es-radius) + 2px);
    background-color: transparent !important;
    color: var(--es-primary) !important;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s ease;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    touch-action: manipulation; /* إلغاء تأخير النقرات في الهواتف */
}

.essalek-add-to-cart-button:hover {
    background-color: var(--es-primary) !important;
    color: var(--es-btn-text) !important;
}

.essalek-add-to-cart-button:disabled {
    background-color: #cccccc !important;
    border-color: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed;
}

.essalek-secure {
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
    color: var(--es-text);
    opacity: .75;
}

/* ========================================
   Variations (الخيارات)
======================================== */
.essalek-variations {
    margin: 20px 0;
}

.essalek-variation-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--es-text);
    opacity: .8;
}

.essalek-variation-msg {
    min-height: 18px;
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
}

/* قطع الطلب (خيارات مختلفة لكل قطعة) */
.essalek-piece {
    padding: 14px 16px 4px;
    margin-bottom: 12px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    background: var(--es-soft-bg);
}

.essalek-piece-title {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--es-text);
}

.essalek-copy-first {
    margin: 0 0 12px;
    padding: 8px 14px;
    border: 1px dashed var(--es-border);
    border-radius: var(--es-radius);
    background: var(--es-input-bg);
    color: var(--es-text);
    font-size: 14px;
    cursor: pointer;
}

/* ========================================
   Offers (عروض الكمية)
======================================== */
.essalek-offers {
    margin: 20px 0;
}

.essalek-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 2px solid var(--es-border);
    border-radius: var(--es-radius);
    background: var(--es-input-bg);
    color: var(--es-text);
    cursor: pointer;
    text-align: right;
    transition: .2s;
    box-sizing: border-box;
}

.essalek-offer.is-active {
    border-color: var(--es-primary);
    background: var(--es-primary-soft);
}

.essalek-offer.is-disabled {
    opacity: .45;
}

.essalek-offer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.essalek-offer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--es-text);
}

.essalek-offer-benefit {
    font-size: 13px;
    font-weight: 600;
    color: var(--es-success);
}

.essalek-offer-price {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--es-text);
}

/* ========================================
   سطور الخصم والتوصيل + التنبيه
======================================== */
.essalek-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: -10px 0 20px;
}

.essalek-shipping-line,
.essalek-discount-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--es-radius);
    font-size: 15px;
    font-weight: 600;
}

.essalek-shipping-line {
    background: var(--es-soft-bg);
    color: var(--es-text);
}

.essalek-discount-line {
    background: var(--es-success-soft);
    color: var(--es-success);
}

.essalek-notice {
    margin: 0 0 15px;
    padding: 10px 14px;
    background: #fef2f2;
    border-radius: var(--es-radius);
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
}

/* ========================================
   صفحة الشكر
======================================== */
.essalek-thank-you {
    max-width: var(--es-max-width);
    margin: 30px auto;
    padding: 30px;
    background: var(--es-bg);
    color: var(--es-text);
    border: 1px solid var(--es-border);
    border-radius: var(--es-card-radius);
    box-shadow: var(--es-shadow);
    box-sizing: border-box;
    font-family: var(--es-font);
}

.essalek-thank-you h2 {
    color: var(--es-success);
    margin-top: 0;
}

.essalek-thank-you h3,
.essalek-thank-you p,
.essalek-thank-you strong {
    color: var(--es-text);
}

.essalek-thank-you hr {
    border: 0;
    border-top: 1px solid var(--es-border);
    margin: 20px 0;
}

/* ========================================
   حقل الملاحظات (textarea)
======================================== */
.essalek-form textarea {
    font-family: inherit;
}

.essalek-field textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid var(--es-border);
    border-radius: var(--es-radius);
    padding: 14px 18px;
    font-size: 16px;
    background: var(--es-input-bg);
    color: var(--es-text);
    transition: .3s;
    box-sizing: border-box;
    text-align: right;
    resize: vertical;
}

.essalek-field textarea::placeholder {
    color: var(--es-text);
    opacity: .45;
}

.essalek-field textarea:focus {
    border-color: var(--es-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--es-primary-ring);
}

.essalek-fields-filled .essalek-field textarea {
    border-color: transparent;
}

.essalek-fields-filled .essalek-field textarea:focus {
    border-color: var(--es-primary);
}

.essalek-fields-underline .essalek-field textarea {
    border-width: 0 0 2px 0;
    border-color: var(--es-border);
    border-radius: 0;
    background: transparent;
    padding: 12px 4px;
}

.essalek-fields-underline .essalek-field textarea:focus {
    border-color: var(--es-primary);
    box-shadow: none;
}

/* ========================================
   زر واتساب
======================================== */
.essalek-whatsapp-button {
    --es-wa: #25d366;
    --es-wa-text: #ffffff;
    width: 100%;
    height: 52px;
    margin: 0 0 10px;
    border: 2px solid var(--es-wa);
    border-radius: calc(var(--es-radius) + 2px);
    background-color: var(--es-wa) !important;
    color: var(--es-wa-text) !important;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .25s ease;
    touch-action: manipulation;
}

.essalek-whatsapp-button:hover {
    filter: brightness(.94);
}

.essalek-whatsapp-button.is-outline {
    background-color: transparent !important;
    color: var(--es-wa) !important;
}

.essalek-whatsapp-button.is-outline:hover {
    background-color: var(--es-wa) !important;
    color: var(--es-wa-text) !important;
    filter: none;
}

.essalek-privacy-note {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--es-text);
    opacity: .6;
}

/* ========================================
   تخطيط الحقول (حقلان في صف) والعروض والخيارات
======================================== */
.essalek-field-grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--es-fields-gap, 12px);
}

.essalek-field-grid > .essalek-field {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.essalek-field-grid > .essalek-field--half {
    flex: 0 0 calc(50% - (var(--es-fields-gap, 12px) / 2));
    max-width: calc(50% - (var(--es-fields-gap, 12px) / 2));
}

@media (max-width: 520px) {
    .essalek-stack-mobile > .essalek-field--half {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* العروض: شبكة بعمودين */
.essalek-offers--grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.essalek-offers--grid .essalek-section-title {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.essalek-offers--grid .essalek-offer {
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
    text-align: center;
}

.essalek-offers--grid .essalek-offer-info {
    align-items: center;
}

.essalek-offers--grid .essalek-offer:last-child:nth-child(even) {
    grid-column: 1 / -1;
}

/* خيارات المنتج (لون، مقاس...) بجانب بعضها */
.essalek-variations--row .essalek-piece {
    display: flex;
    flex-wrap: wrap;
    column-gap: var(--es-fields-gap, 12px);
}

.essalek-variations--row .essalek-piece-title {
    flex: 0 0 100%;
}

.essalek-variations--row .essalek-variation-field {
    flex: 1 1 140px;
    min-width: 0;
}

/* ========================================
   الكمية والسعر في صف واحد دائمًا (حتى على الهاتف)
======================================== */
.essalek-summary--row {
    flex-wrap: nowrap;
    gap: 10px;
}

.essalek-summary--row .essalek-summary-col--qty {
    flex: 0 0 auto;
}

.essalek-summary--row .essalek-summary-col--total {
    flex: 1 1 0;
    min-width: 0;
}

@media (max-width: 480px) {
    /* على الشاشات الصغيرة نصغّر الأزرار والسعر (حدًّا أقصى) ليتسع الصف دون أن يخرج السعر من الإطار */
    .essalek-summary--row {
        gap: 8px;
    }

    .essalek-summary--row .essalek-qty {
        gap: 6px;
    }

    .essalek-summary--row .essalek-qty button {
        width: min(var(--es-qty-size, 48px), 38px);
        height: min(var(--es-qty-size, 48px), 38px);
        font-size: 19px;
    }

    .essalek-summary--row .essalek-qty input {
        width: min(var(--es-qty-input-w, 70px), 46px);
        height: min(var(--es-qty-size, 48px), 38px);
        font-size: min(var(--es-qty-font, 22px), 18px);
    }

    .essalek-summary--row .essalek-total-price {
        min-height: 38px;
        font-size: min(var(--es-total-size, 28px), 22px);
    }
}

@media (max-width: 360px) {
    .essalek-summary--row .essalek-total-price {
        font-size: min(var(--es-total-size, 28px), 19px);
    }
}

/* ========================================
   الحماية من الطلبات الوهمية
======================================== */
.essalek-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.essalek-captcha {
    display: flex;
    justify-content: center;
    margin: 12px 0;
}

/* ========================================
   الزر الثابت أسفل الشاشة
======================================== */
.essalek-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99990;
    transform: translateY(115%);
    transition: transform .3s ease;
    pointer-events: none;
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
}

.essalek-sticky.is-visible {
    transform: translateY(0);
}

.essalek-sticky--bar {
    background: var(--es-st-bar, #ffffff);
    color: var(--es-st-text, #222222);
    box-shadow: 0 -4px 18px rgba(0,0,0,.12);
}

.essalek-sticky--bar.is-visible {
    pointer-events: auto;
}

.essalek-sticky-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    padding: 10px 14px;
    box-sizing: border-box;
}

.essalek-sticky-price {
    flex: 0 1 auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.essalek-sticky-btn {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: var(--es-st-radius, 12px);
    background: var(--es-st-btn, #ff5a1f) !important;
    color: var(--es-st-btn-text, #ffffff) !important;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

/* شكل: زر عائم فقط بدون شريط */
.essalek-sticky--button .essalek-sticky-btn {
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* الأجهزة: الهاتف فقط (الافتراضي) أو الكل */
.essalek-sticky--mobile {
    display: none;
}

@media (max-width: 768px) {
    .essalek-sticky--mobile {
        display: block;
    }

    body.essalek-sticky-mobile {
        padding-bottom: 76px;
    }
}

body.essalek-sticky-all {
    padding-bottom: 76px;
}

/* حركة الزر لجذب الانتباه */
@keyframes essalek-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}

@keyframes essalek-shake {
    0%, 86%, 100% { transform: translateX(0); }
    89%, 95%      { transform: translateX(-5px); }
    92%, 98%      { transform: translateX(5px); }
}

@keyframes essalek-bounce {
    0%, 70%, 100% { transform: translateY(0); }
    80%           { transform: translateY(-8px); }
    90%           { transform: translateY(0); }
    95%           { transform: translateY(-4px); }
}

@keyframes essalek-glow {
    0%   { box-shadow: 0 0 0 0 var(--es-st-glow, rgba(255,90,31,.5)); }
    70%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.essalek-anim--pulse  .essalek-sticky-btn { animation: essalek-pulse 1.6s ease-in-out infinite; }
.essalek-anim--shake  .essalek-sticky-btn { animation: essalek-shake 3s ease-in-out infinite; }
.essalek-anim--bounce .essalek-sticky-btn { animation: essalek-bounce 2.4s ease-in-out infinite; }
.essalek-anim--glow   .essalek-sticky-btn { animation: essalek-glow 1.8s ease-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .essalek-sticky-btn {
        animation: none !important;
    }

    .essalek-sticky {
        transition: none;
    }
}

/* ========================================
   تصاميم بطاقات العروض
======================================== */
.essalek-offer {
    position: relative;
}

.essalek-offer-radio,
.essalek-offer-qty {
    display: none;
}

.essalek-offer-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.essalek-offers--grid .essalek-offer-prices {
    align-items: center;
}

.essalek-offer-old {
    font-size: 12px;
    font-weight: 600;
    text-decoration: line-through;
    opacity: .55;
    color: var(--es-text);
}

/* شارة العرض (الأكثر طلبًا ...) */
.essalek-offer.has-badge {
    margin-top: 16px;
}

.essalek-offer-badge {
    position: absolute;
    top: -11px;
    inset-inline-end: 14px;
    z-index: 2;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--es-primary);
    color: var(--es-btn-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

/* ---- تصميم: دائرة اختيار ---- */
.essalek-offers--design-radio .essalek-offer {
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-width: 1px;
}

.essalek-offers--design-radio .essalek-offer-radio {
    display: inline-block;
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--es-border);
    border-radius: 50%;
    background: var(--es-input-bg);
    box-sizing: border-box;
}

.essalek-offers--design-radio .essalek-offer.is-active .essalek-offer-radio {
    border-color: var(--es-primary);
}

.essalek-offers--design-radio .essalek-offer.is-active .essalek-offer-radio::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    bottom: 3px;
    left: 3px;
    border-radius: 50%;
    background: var(--es-primary);
}

.essalek-offers--design-radio .essalek-offer-info {
    flex: 1 1 auto;
}

/* ---- تصميم: تذكرة (رقم الكمية في جانب ملوّن) ---- */
.essalek-offers--design-ticket .essalek-offer {
    padding: 0;
    gap: 0;
    overflow: hidden;
    align-items: stretch;
}

.essalek-offers--design-ticket .essalek-offer-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    background: var(--es-soft-bg);
    color: var(--es-text);
    font-size: 24px;
    font-weight: 800;
}

.essalek-offers--design-ticket .essalek-offer.is-active .essalek-offer-qty {
    background: var(--es-primary);
    color: var(--es-btn-text);
}

.essalek-offers--design-ticket .essalek-offer-info {
    flex: 1 1 auto;
    padding: 12px 14px;
}

.essalek-offers--design-ticket .essalek-offer-prices {
    justify-content: center;
    padding: 0 14px;
}

.essalek-offers--design-ticket .essalek-offer-badge {
    top: 0;
    border-radius: 0 0 8px 8px;
}

/* ---- تصميم: مربعات بأعمدة (رقم كبير فوق السعر) ---- */
.essalek-offers.essalek-offers--design-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 10px;
}

.essalek-offers--design-boxes .essalek-section-title {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.essalek-offers--design-boxes .essalek-offer {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 16px 8px 12px;
    text-align: center;
}

.essalek-offers--design-boxes .essalek-offer.has-badge {
    margin-top: 12px;
}

.essalek-offers--design-boxes .essalek-offer-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--es-soft-bg);
    color: var(--es-text);
    font-size: 22px;
    font-weight: 800;
}

.essalek-offers--design-boxes .essalek-offer.is-active .essalek-offer-qty {
    background: var(--es-primary);
    color: var(--es-btn-text);
}

.essalek-offers--design-boxes .essalek-offer-info,
.essalek-offers--design-boxes .essalek-offer-prices {
    align-items: center;
}

.essalek-offers--design-boxes .essalek-offer-badge {
    inset-inline-end: 50%;
    transform: translateX(50%);
}

[dir="rtl"] .essalek-offers--design-boxes .essalek-offer-badge {
    transform: translateX(-50%);
}

/* ---- تصميم: أزرار مضغوطة في سطر واحد ---- */
.essalek-offers.essalek-offers--design-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.essalek-offers--design-chips .essalek-section-title {
    flex: 0 0 100%;
    margin-bottom: 0;
}

.essalek-offers--design-chips .essalek-offer {
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    padding: 8px 14px;
    border-width: 2px;
    border-radius: 999px;
    justify-content: center;
    gap: 8px;
}

.essalek-offers--design-chips .essalek-offer.has-badge {
    margin-top: 10px;
}

.essalek-offers--design-chips .essalek-offer-benefit,
.essalek-offers--design-chips .essalek-offer-old {
    display: none;
}

.essalek-offers--design-chips .essalek-offer-title,
.essalek-offers--design-chips .essalek-offer-price {
    font-size: 14px;
}

.essalek-offers--design-chips .essalek-offer-badge {
    top: -9px;
    font-size: 11px;
}

/* ========================================
   تخصيص الحقول: الحواف والحجم والظل
======================================== */
.essalek-field input,
.essalek-field select,
.essalek-field textarea {
    border-width: var(--es-field-bw, 1px);
    border-style: solid;
    border-color: var(--es-field-border, var(--es-border));
    border-radius: var(--es-field-radius, var(--es-radius));
    padding-left: var(--es-field-px, 18px);
    padding-right: var(--es-field-px, 18px);
    font-size: var(--es-field-font, 16px);
    text-align: var(--es-field-align, right);
    box-shadow: var(--es-field-shadow, none);
}

.essalek-field input,
.essalek-field select {
    height: var(--es-field-h, 52px);
}

.essalek-field textarea {
    min-height: calc(var(--es-field-h, 52px) * 1.8);
}

.essalek-field input:focus,
.essalek-field select:focus,
.essalek-field textarea:focus {
    border-color: var(--es-field-focus, var(--es-primary));
    box-shadow: var(--es-field-ring, 0 0 0 3px var(--es-primary-ring));
}

/* نمط «معبأ بدون إطار» */
.essalek-fields-filled .essalek-field input,
.essalek-fields-filled .essalek-field select,
.essalek-fields-filled .essalek-field textarea {
    border-color: transparent;
}

.essalek-fields-filled .essalek-field input:focus,
.essalek-fields-filled .essalek-field select:focus,
.essalek-fields-filled .essalek-field textarea:focus {
    border-color: var(--es-field-focus, var(--es-primary));
}

/* نمط «خط سفلي فقط» */
.essalek-fields-underline .essalek-field input,
.essalek-fields-underline .essalek-field select,
.essalek-fields-underline .essalek-field textarea {
    border-width: 0 0 var(--es-field-bw, 2px) 0;
    border-color: var(--es-field-border, var(--es-border));
    border-radius: 0;
    box-shadow: none;
}

.essalek-fields-underline .essalek-field input:focus,
.essalek-fields-underline .essalek-field select:focus,
.essalek-fields-underline .essalek-field textarea:focus {
    border-color: var(--es-field-focus, var(--es-primary));
    box-shadow: none;
}

/* ========================================
   الحقول المخصصة: أزرار الاختيار وخانة الموافقة
======================================== */
.essalek-choice-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.essalek-choice-label {
    flex: 0 0 100%;
    font-size: 14px;
    font-weight: 600;
    color: var(--es-text);
    opacity: .85;
}

.essalek-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--es-text);
    font-size: 15px;
}

.essalek-field .essalek-choice input[type="radio"],
.essalek-field .essalek-choice input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0 !important;
    box-shadow: none !important;
    accent-color: var(--es-primary);
}
