/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://dogsfood.co.il/
 Description:  Child theme for Hello Elementor – Shipping badges, tooltip & popup
 Author:       Emek HaKlavim
 Template:     hello-elementor
 Version:      10.0.0
 Text Domain:  hello-elementor-child
*/

/* =========================================================
   בסיס כללי
   ========================================================= */

body {
    direction: rtl;
}

/* =========================================================
   SHIPPING BADGE – תגיות משלוח
   ========================================================= */

.shipping-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    white-space: nowrap;
    direction: rtl;
    text-align: right;
    background-color: #C2A86E; /* זהב */
    color: #121212;            /* שחור עמוק */
}

.shipping-badge__label {
    display: inline-block;
}

/* בועית "i" הקטנה */
.shipping-badge__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 700;
    background-color: rgba(0,0,0,0.2);
    color: #FFFFFF;
}

/* במובייל – אפשר להסתיר את הבועית אם רוצים */
@media (max-width: 767px) {
    .shipping-badge__hint {
        display: none;
    }
}

/* מצבי צבע לפי סוג משלוח */
.shipping-badge-local {
    background-color: #3E5E3C; /* ירוק עמק */
    color: #F5F3EB;
}

.shipping-badge-national {
    background-color: #C2A86E; /* זהב */
    color: #121212;
}

.shipping-badge-special {
    background-color: #8E4B10;
    color: #FDF7E9;
}

/* תג לחיץ */
.shipping-info-trigger {
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.shipping-info-trigger:hover,
.shipping-info-trigger:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    outline: none;
}

/* תגיות בסל/קופה – קצת יותר קטנות */
.ek-cart-shipping-badge {
    font-size: 12px;
    padding-inline: 8px;
}

/* הודעה מתחת למוצר מקומי בסל/קופה */
/* הודעה מתחת למוצר מקומי בסל/קופה – שמנת מודגשת */
.ek-local-only-note {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #F5F3EB;      /* שמנת חמה */
    font-weight: 600;    /* מודגש, אבל לא "צעקני" מדי */
    text-shadow: 0 1px 2px rgba(0,0,0,0.6); /* קל – רק כדי להרים מהרקע */
}


/* רקע קל לשורות בסל/קופה/מיני לפי סוג משלוח */
.ek-cart-item-local-shipping {
    background-color: rgba(62, 94, 60, 0.04);
}

.ek-cart-item-national-shipping {
    background-color: rgba(194, 168, 110, 0.03);
}

.ek-cart-item-special-shipping {
    background-color: rgba(142, 75, 16, 0.04);
}

/* קצת רווח בתא המוצר בסל */
.woocommerce-cart .cart_item td.product-name,
.woocommerce-checkout .cart_item td.product-name {
    padding-top: 12px;
    padding-bottom: 12px;
}

/* במיני-קארט */
.woocommerce-mini-cart-item {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* =========================================================
   TOOLTIP – ההסבר הקטן במעבר עכבר
   ========================================================= */

.shipping-tooltip {
    position: absolute;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 10px;
    background-color: #121212;
    color: #F5F3EB;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 8px 18px rgba(0,0,0,0.35);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.12s ease, transform 0.12s ease;
    text-align: right;
    direction: rtl;
}

.shipping-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* חץ קטן (לא חובה, אבל יפה) */
.shipping-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    border-width: 6px 6px 0 6px;
    border-style: solid;
    border-color: #121212 transparent transparent transparent;
}

/* =========================================================
   POPUP – חלון רשימת היישובים
   ========================================================= */

.shipping-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.shipping-modal-overlay.is-open {
    display: flex;
}

.shipping-modal {
    background-color: #F5F3EB;
    color: #121212;
    max-width: 720px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 22px 22px 26px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
    direction: rtl;
    text-align: right;
    position: relative;
}

/* כפתור X */
.shipping-modal-close {
    position: absolute;
    top: 10px;
    left: 12px;
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 0;
}

.shipping-modal-close:hover {
    color: #000;
}

#shipping-modal-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #3E5E3C;
}

.shipping-modal-subtitle {
    margin: 6px 0 10px;
    font-size: 14px;
    line-height: 1.6;
}

.shipping-modal-body {
    font-size: 14px;
    line-height: 1.7;
}

.shipping-modal-body p {
    margin-bottom: 10px;
}

.shipping-modal-body ul {
    margin: 0 0 10px 0;
    padding-right: 18px;
    list-style: disc;
}

.shipping-modal-body li {
    margin-bottom: 4px;
}

.shipping-modal-list-title {
    margin-top: 8px;
    margin-bottom: 4px;
    font-weight: 700;
    color: #3E5E3C;
}

/* כפתורי טלפון / וואטסאפ */
.shipping-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.shipping-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid transparent;
}

.shipping-contact-link.phone {
    background-color: #FFFFFF;
    border-color: #C2A86E;
    color: #121212;
}

.shipping-contact-link.whatsapp {
    background-color: #25D366;
    color: #FFFFFF;
}

.shipping-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
}

.phone-icon {
    background-color: rgba(0,0,0,0.06);
}

.whatsapp-icon {
    background-color: rgba(0,0,0,0.25);
}

/* טקסט */
.shipping-contact-text {
    white-space: nowrap;
}

/* מובייל */
@media (max-width: 480px) {
    .shipping-modal {
        width: 96%;
        padding: 18px 16px 20px;
        border-radius: 14px;
    }

    #shipping-modal-title {
        font-size: 18px;
    }

    .shipping-contact-row {
        flex-direction: column;
        align-items: stretch;
    }

    .shipping-contact-link {
        justify-content: center;
        width: 100%;
    }
}

/* =========================================================
   הודעות שגיאה / מידע – "סל מעורב" / חסימת מקומי
   ========================================================= */

.ek-notice-dark {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background-color: #121212;
    color: #F5F3EB;
    font-size: 14px;
    line-height: 1.6;
}

.ek-local-shipping-error strong,
.ek-mixed-shipping-notice strong {
    color: #FFD75A;
}

.ek-mixed-shipping-notice {
    margin-top: 10px;
}

.ek-mixed-local-products {
    margin: 6px 0 8px;
    padding-right: 18px;
    list-style: disc;
}

.ek-mixed-local-products li {
    margin-bottom: 3px;
}

.ek-mixed-tag-line {
    margin: 6px 0;
    font-size: 13px;
}

/* כפתורים בתוך ההודעה */
.ek-mixed-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ek-mixed-btn,
.ek-pickup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.ek-mixed-btn-edit-cart {
    background-color: #F5F3EB;
    color: #121212;
}

.ek-mixed-btn-edit-cart:hover {
    background-color: #FFFFFF;
}

.ek-pickup-button {
    background-color: #3E5E3C;
    color: #F5F3EB;
}

.ek-pickup-button:hover {
    background-color: #324D31;
}

/* הודעת חסימה */
.ek-local-shipping-error {
    margin-top: 10px;
}

/* מובייל – כפתורים אחד מתחת לשני */
@media (max-width: 600px) {
    .ek-mixed-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .ek-mixed-btn,
    .ek-pickup-button {
        width: 100%;
    }
}
.ek-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* =========================================================
   כפתורי הודעות משלוח – עיצוב מקצועי וברור
   ========================================================= */

.ek-shipping-actions a.button {
    background-color: #C2A86E !important; /* זהב */
    color: #121212 !important; /* שחור */
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    text-align: center;
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: 0.2s ease-in-out;
}

.ek-shipping-actions a.button:hover {
    background-color: #b8965e !important; /* גוון זהב כהה בהובר */
    color: #121212 !important;
    transform: translateY(-2px);
}

.ek-shipping-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important; /* ריווח בין הכפתורים */
    margin-top: 20px !important;
}

/* טיפול במובייל */
@media (max-width: 768px) {
    .ek-shipping-actions a.button {
        width: 100% !important; /* כל כפתור שורה מלאה */
    }
}
/* =========================================
תיקון שדה כמות - WooCommerce
========================================= */

.woocommerce div.product form.cart .quantity input.qty {
    width: 90px !important;
    min-width: 90px !important;
    padding: 0 12px !important;
    text-align: center !important;
    box-sizing: border-box !important;

    appearance: textfield !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
}

/* ביטול מלא של חיצי הדפדפן */
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}
/* =========================================================
   PRIMAL SPIRIT – תיבת מחירי כמות
   ========================================================= */

.ek-primal-pricing-box {
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(194,168,110,0.35);
    border-radius: 18px;
    padding: 22px;
    margin-top: 24px;
    color: #F5F3EB;
    max-width: 420px;
}

.ek-primal-pricing-box h3 {
    color: #C2A86E;
    font-size: 28px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.ek-primal-pricing-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ek-primal-pricing-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 20px;
}

.ek-primal-pricing-box li:last-child {
    border-bottom: none;
}

.ek-primal-pricing-box strong {
    color: #FFFFFF;
    font-weight: 700;
}

.ek-primal-pricing-note {
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.6;
    color: #F5F3EB;
    font-weight: 600;
}

.ek-primal-pricing-small {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(245,243,235,0.78);
}

/* מובייל */
@media (max-width: 767px) {

    .ek-primal-pricing-box {
        padding: 18px;
        max-width: 100%;
    }

    .ek-primal-pricing-box h3 {
        font-size: 24px;
    }

    .ek-primal-pricing-box li {
        font-size: 18px;
    }

    .ek-primal-pricing-note {
        font-size: 16px;
    }
}