/**
 * WhatsApp Modal Styles
 */

.malt-whatsapp-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.malt-whatsapp-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.malt-whatsapp-modal-header {
    padding: 20px;
    background: #25D366;
    color: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.malt-whatsapp-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.malt-whatsapp-modal-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
    opacity: 0.9;
}

.malt-whatsapp-modal-close:hover {
    opacity: 1;
}

.malt-whatsapp-modal-body {
    padding: 20px;
}

.malt-whatsapp-modal-body p {
    margin: 0 0 15px 0;
    color: #333;
}

.malt-whatsapp-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.malt-whatsapp-input:focus {
    outline: none;
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

/* intlTelInput styling */
.iti {
    width: 100%;
}

.iti__flag-container {
    border-radius: 4px 0 0 4px;
}

.malt-whatsapp-input.iti-input {
    padding-left: 52px;
}

.malt-whatsapp-hint {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
}

.malt-whatsapp-modal-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 8px 8px;
}

.malt-whatsapp-modal-footer .button {
    padding: 8px 16px;
}

.malt-whatsapp-modal-footer .button-primary {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.malt-whatsapp-modal-footer .button-primary:hover {
    background: #20ba5a;
    border-color: #20ba5a;
}

/* Floating WhatsApp Button (bottom right) */
.malt-floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999998;
}

.malt-floating-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
    border: none;
}

.malt-floating-whatsapp-btn:hover {
    background-color: #20ba5a;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.malt-floating-whatsapp-btn svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 768px) {
    .malt-floating-whatsapp {
        bottom: 16px;
        right: 16px;
    }
    .malt-floating-whatsapp-btn {
        width: 52px;
        height: 52px;
    }
    .malt-floating-whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }
}
