/* ═══════════════════════════════════════════════════════════
   Kitronic — Mobile WhatsApp Buttons (صفحة المنتج)
   لون العلامة التجارية — استثناء معتمد
   ═══════════════════════════════════════════════════════════ */

.kt-mobile-wa-wrap {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

/* «كل الأجهزة» — يظهر على الديسكتوب أيضاً (خيار في تاب زر واتساب المنتج). */
.kt-mobile-wa-wrap--all {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.kt-mobile-wa-wrap--all .kt-mobile-wa-btn {
    flex: 1 1 200px;
    width: auto;
}

@media (max-width: 768px) {
    .kt-mobile-wa-wrap {
        display: flex;
    }

    .kt-mobile-wa-wrap--all {
        flex-direction: column;
    }

    .kt-mobile-wa-wrap--all .kt-mobile-wa-btn {
        flex: 1 0 100%;
        width: 100%;
    }
}

.kt-mobile-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--kt-text) 10%, transparent);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    background: var(--kt-mobile-wa-btn-bg, var(--kt-brand-whatsapp));
}

.kt-mobile-wa-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px color-mix(in srgb, var(--kt-text) 15%, transparent);
}

.kt-mobile-wa-btn:active {
    transform: scale(0.98);
}

.kt-mobile-wa-btn i {
    font-size: 20px;
    line-height: 1;
}

/* زر الاتصال (ثانوي) — يتبع الثيم */
.kt-mobile-wa-btn--call {
    background: var(--kt-text);
    color: var(--kt-on-text) !important;
}

.kt-mobile-wa-btn--call:hover {
    background: color-mix(in srgb, var(--kt-text) 85%, black);
}

/* Layout guard: stay full-width even if a theme prints this inside the flex cart row */
.product form.cart .kt-mobile-wa-wrap,
form.cart .kt-mobile-wa-wrap {
    flex: 1 0 100%;
    min-width: 0;
    box-sizing: border-box;
}
