.wppromo-root-container {
    --wppromo-primary: #2563eb;
    --wppromo-border: #e2e8f0;
    --wppromo-bg-mute: #f1f5f9;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    display: flex;
    justify-content: center;
}

.wppromo-root-container *, 
.wppromo-root-container *:before, 
.wppromo-root-container *:after {
    box-sizing: border-box; /* Ensures padding doesn't break layout */
}

.wppromo-form-card {
    background: #ffffff;
    max-width: 800px;
    width: 100%;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--wppromo-border);
}

.wppromo-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--wppromo-border);
    padding-bottom: 16px;
}

.wppromo-title { margin: 0; font-size: 1.4rem; color: #1e293b; }
.wppromo-subtitle { margin: 4px 0 0; color: #64748b; font-size: 0.9rem; }

.wppromo-form-group { margin-bottom: 18px; }

.wppromo-field-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

.wppromo-input, 
.wppromo-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--wppromo-border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.wppromo-input:focus, 
.wppromo-textarea:focus {
    outline: none;
    border-color: var(--wppromo-primary);
}

.wppromo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Toggles */
.wppromo-switch-group {
    display: flex;
    gap: 24px;
    background: var(--wppromo-bg-mute);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.wppromo-switch-item { display: flex; align-items: center; gap: 10px; }

.wppromo-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    margin: 0;
}

.wppromo-switch input { opacity: 0; width: 0; height: 0; }

.wppromo-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
    border-radius: 22px;
}

.wppromo-slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.wppromo-switch input:checked + .wppromo-slider { background-color: var(--wppromo-primary); }
.wppromo-switch input:checked + .wppromo-slider:before { transform: translateX(18px); }

.wppromo-label-text { font-size: 0.85rem; font-weight: 500; color: #475569; }

/* Editor Box */
.wppromo-editor-container {
    border: 1px solid var(--wppromo-border);
    border-radius: 6px;
    overflow: hidden;
}

.wppromo-editor-toolbar {
    background: #f8fafc;
    padding: 6px;
    border-bottom: 1px solid var(--wppromo-border);
    display: flex;
    gap: 6px;
}

.wppromo-tool {
    padding: 2px 8px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    font-size: 11px;
    cursor: default;
}

.wppromo-textarea {
    border: none !important;
    border-radius: 0;
    resize: vertical;
    min-height: 100px;
}

.wppromo-btn-submit {
    width: 100%;
    background-color: var(--wppromo-primary);
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
}

.wppromo-btn-submit:hover { background-color: #1d4ed8; }


/*COUNTDOWN CSS*/
.wppromo-count-month { 
    color: #d9534f; 
    font-weight: bold; 
    font-size: 1.3em;
    display: inline-block;
    padding: 0 3px;
}

.wppromo-count-day { 
    color: #f0ad4e; 
    font-weight: bold;
    font-size: 1.3em;
    display: inline-block;
    padding: 0 3px;
}

.wppromo-count-hour { 
    color: #5bc0de;
    font-weight: bold;
    font-size: 1.3em; 
    display: inline-block;
    padding: 0 3px;
}

.wppromo-count-minute { 
    color: #5cb85c; 
    font-weight: bold; 
    font-size: 1.3em; 
    display: inline-block;
    padding: 0 3px;
}

.wppromo-count-second { 
    color: #CC2D39; 
    font-weight: bold; 
    font-size: 1.3em; 
    display: inline-block;
    padding: 0 3px;
}

.wppromo-count-month,
.wppromo-count-day,
.wppromo-count-hour,
.wppromo-count-minute,
.wppromo-count-second{
    font-size: 1.4em; 
}


.wppromo-event-reached { 
    color: #9D1C30; 
    font-size: 1.3em; 
    font-weight: bold; 
}
/*END OF COUNT DOWN CSS*/

@media (max-width: 500px) {
    .wppromo-grid { grid-template-columns: 1fr; }
    .wppromo-switch-group { flex-direction: column; }
}

.wppromo-notice-baord{
    display: none;
}


@media (max-width: 767px) {
    .wppromo-count-month,
    .wppromo-count-day,
    .wppromo-count-hour,
    .wppromo-count-minute,
    .wppromo-count-second{
        font-size: 1em; 
    }

}


/* load omre metrics */
/* ======================= */
/* WPPromo Load More Button */
.wppromo_insights_table_load_more {
    display: inline-block;
    padding: 8px 16px;
    margin: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background-color: #0073aa; /* WordPress admin blue */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wppromo_insights_table_load_more:hover {
    background-color: #005177;
}

.wppromo_insights_table_load_more:disabled {
    background-color: #999999;
    cursor: not-allowed;
}
