.wa-notify-button {
    margin-top: 1em;
    padding: 10px 20px;
    background-color: var(--wa-button-color, #25D366);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    max-width: 300px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.wa-notify-button:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="white" d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>') center/contain no-repeat;
}

.wa-notify-button:hover {
    background-color: var(--wa-button-hover-color, #128C7E);
}

.wa-restock-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
}

.wa-restock-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.wa-restock-close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.wa-restock-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.wa-restock-form input[type="tel"] {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wa-restock-form input[type="tel"]:focus {
    border-color: #25D366;
    outline: none;
}

.wa-restock-submit {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.wa-restock-success {
    color: #28a745;
    padding: 15px;
    background-color: #d4edda;
    border-radius: 6px;
    text-align: center;
}

.wa-restock-error {
    color: #dc3545;
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* Admin styles */
.wa-restock-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wa-restock-stat-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.wa-restock-stat-number {
    font-size: 36px;
    font-weight: bold;
    margin: 10px 0;
    color: #25D366;
}

.wa-manual-notify-form {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.wa-manual-notify-form select {
    min-width: 300px;
}

.wa-restock-variation-buttons {
    margin-top: 1em;
}

.wa-variation-button {
    margin-bottom: 0.5em;
}

.wa-variation-button .wa-notify-button {
    width: 100%;
    max-width: none;
}

.wa-restock-already-registered {
    margin-top: 1em;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    text-align: center;
    font-style: italic;
}
.iti--separate-dial-code .iti__selected-dial-code{
    margin-right:6px;
}

/* ===== GENERAL POPUP STYLES ===== */

.wa-general-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.wa-general-popup {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.wa-general-popup-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.wa-general-popup-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    text-align: center;
}

.wa-general-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.wa-general-popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.wa-general-popup-body {
    padding: 20px 25px 25px;
}

.wa-general-popup-body p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.5;
    text-align: center;
}

.wa-general-popup-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wa-general-popup-form input[type="tel"] {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    text-align: center;
}

.wa-general-popup-form input[type="tel"]:focus {
    border-color: #25D366;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.wa-general-popup-submit {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wa-general-popup-submit:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="white" d="M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z"/></svg>') center/contain no-repeat;
}

.wa-general-popup-submit:hover {
    background-color: #128C7E;
}

.wa-general-popup-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.wa-general-popup-success {
    color: #28a745;
    padding: 15px;
    background-color: #d4edda;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

.wa-general-popup-error {
    color: #dc3545;
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 8px;
    text-align: center;
    margin-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .wa-general-popup {
        width: 95%;
        margin: 20px;
    }
    
    .wa-general-popup-header,
    .wa-general-popup-body {
        padding: 15px 20px;
    }
    
    .wa-general-popup-header h3 {
        font-size: 1.2em;
    }
    .wa-general-popup-close{
        position: absolute;
        right: -10px;
        top: 10px;
    }
    .iti.iti--allow-dropdown input{ 
        width: 68% !important;
    }
}

.wa-general-popup button::before {
    content: none !important;
    display: none !important;
}
.iti.iti--allow-dropdown input{
    text-align: end;
}
.iti.iti--allow-dropdown input{
    width: 75% !important;
}

/* WhatsApp notification checkbox in admin */
.misc-pub-section label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #25D366;
}

.misc-pub-section input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #25D366;
}

.misc-pub-section input[type="checkbox"]:checked {
    background-color: #25D366;
}

/* WhatsApp meta box styles */
.wa-whatsapp-meta-box {
    padding: 10px 0;
}

.wa-whatsapp-meta-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #25D366;
    cursor: pointer;
}

.wa-whatsapp-meta-box input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #25D366;
}

.wa-whatsapp-meta-box .description {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.wa-notify-button::before {
    content: none !important;
    display: none !important;
}
