/* General Modal Overlay */
.woo-sms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Modern dark slate backdrop */
    backdrop-filter: blur(4px); /* Modern blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    direction: rtl;
}

/* Modal Container - exactly styled like the simulator column */
.woo-sms-modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 360px; /* Exact match with the simulator */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
    border: 1px solid rgba(226, 232, 240, 0.5); /* border-slate-200/50 */
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Close Button */
.woo-sms-modal-close {
    position: absolute;
    top: 12px;
    left: 15px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #94a3b8;
    z-index: 10;
    line-height: 1;
    transition: color 0.2s;
}
.woo-sms-modal-close:hover {
    color: #ffffff;
}
.woo-sms-modal-body .input-group { 
    display: inline !important;
}
#woo-sms-signup-form .input-group label {
    margin-top: 15px;
}

/* Tabs Header - matching the simulator perfectly */
.woo-sms-tabs-header {
    display: flex;
    background: #f8fafc; /* slate-50 */
    border-bottom: 1px solid #f1f5f9; /* border-slate-100 */
}
.woo-sms-tab-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: bold;
    color: #94a3b8; /* text-slate-400 */
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 0;
    margin: 0;
}
.woo-sms-tab-btn.active {
    background: #ffffff;
    color: #1e293b; /* text-slate-800 */
    border-bottom: 2px solid var(--woo-primary);
}
.woo-sms-tab-btn:not(.active):hover {
    color: #ffffff; /* text-slate-700 */
}
#woo-sms-trigger-forgot {
    color: var(--ast-global-color-0) !important;
}
#woo-sms-trigger-forgot:hover {
    color: #ffffff !important;
    padding: 5px 8px;
}
.forgot-password-wrapper button {
    margin: 15px 0 5px 0;
}
#woo-sms-popup-modal .link-btn:hover {
    text-decoration: none;
}
#woo-sms-login-form input[type="text"] {
    margin-bottom: 20px;
}
#woo-sms-login-form .field-icon {
    top: 35%;
}
/* Modal Body */
.woo-sms-modal-body {
    padding: 20px; /* p-5 */
    text-align: right;
}

/* Panel Title / Section Header */
.panel-title {
    font-size: 14px;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 15px;
    text-align: center;
}

/* Info badges / mini banners matching the simulator */
.sim-badge {
    text-align: center;
    margin-bottom: 12px;
    background-color: rgba(240, 253, 244, 0.5); /* bg-emerald-50/50 */
    padding: 6px;
    border-radius: 6px;
    font-size: 10px;
    color: #065f46; /* text-emerald-800 */
    font-weight: bold;
}

/* Input Groups styling exactly like simulator */
.input-group {
    margin-bottom: 12px;
    text-align: right;
    width: 100%;
}
.input-group label {
    display: block;
    font-size: 10px; /* text-[10px] */
    color: #64748b; /* text-slate-500 */
    margin-bottom: 4px;
    font-weight: bold;
}
.input[type="text"] {
    border-width: 1px;
    border-style: solid;
    border-color: var(--ast-border-color);
    border-radius: 10px;
    background: var(--ast-comment-inputs-background);
}
#woo-sms-signup-form input[type="password"] {
    margin-top: 10px;
}

/* Form fields with inner icons (with pr-8 padding) */
.input-icon-wrapper {
    position: relative;
}
.input-icon-wrapper svg, .input-icon-wrapper .field-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: #94a3b8; /* text-slate-400 */
    pointer-events: none;
}
.input-icon-wrapper .country-code {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: bold;
    color: #94a3b8; /* text-slate-400 */
    direction: ltr;
}

/* Input Element styling (pr-8, bg-slate-50, border-slate-200) */
.woo-sms-input {
    width: 100% !important;
    padding: 8px 32px 8px 12px !important; /* pr-8 pl-3 py-1.5 */
    background: #f8fafc !important; /* bg-slate-50 */
    border: 1px solid #e2e8f0 !important; /* border-slate-200 */
    border-radius: 8px !important;
    box-sizing: border-box !important;
    font-size: 12px; /* text-xs */
    transition: all 0.2s ease !important;
    outline: none;
}
.woo-sms-input:focus {
    border-color: var(--woo-primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--woo-primary)15;
}
/* For left aligned text input (email, numbers) */
.woo-sms-input.ltr-input {
    text-align: left;
    direction: ltr;
    margin-top: 10px;
}

/* Action button exactly like simulator buttons */
.woo-sms-btn {
    width: 100%;
    padding: 10px; /* py-2 */
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-size: 12px; /* text-xs */
    font-weight: bold;
    border-radius: 8px;
    transition: opacity 0.2s ease, transform 0.1s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
    text-align: center;
    background-color: #4CAF50;
    margin: 25px 0 15px 0;
    text-decoration: none;
}
.woo-sms-btn:hover {
    opacity: 0.9;
}
.woo-sms-btn:active {
    transform: scale(0.98);
}
.woo-sms-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Checkbox option rows */
.woo-sms-checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0;
    font-size: 9px; /* text-[9px] */
    color: #475569; /* text-slate-600 */
    font-weight: bold;
    background: #f8fafc; /* bg-slate-50 */
    padding: 6px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}
.woo-sms-checkbox-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: var(--woo-primary);
}

/* Forgot password link styles */
.forgot-password-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.link-btn {
    background: none;
    border: none;
    color: var(--woo-primary);
    font-size: 9px; /* text-[9px] */
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}
.link-btn:hover {
    text-decoration: underline;
}

/* Errors & Success locally handled alerts */
.woo-sms-error {
    color: #ef4444; /* text-red-500 */
    background: #fef2f2;
    border: 1px solid #fee2e2;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 11px;
    text-align: center;
    line-height: 1.5;
}
.woo-sms-success {
    color: #10b981; /* text-emerald-500 */
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 11px;
    text-align: center;
    line-height: 1.5;
}

/* Description style */
.desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: center;
}
.timer-wrapper {
    font-size: 9px;
    color: #64748b;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}
.timer-wrapper strong {
    color: var(--woo-primary);
}
body.logged-in .woo-sms-guest-only { display: none !important; }
body.logged-in .woo-sms-logged-in-only { display: inline-block !important; }
body:not(.logged-in) .woo-sms-guest-only { display: inline-block !important; }
body:not(.logged-in) .woo-sms-logged-in-only { display: none !important; }

/* Social Login & Popup Themes styling */
.woo-sms-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    font-size: 10px;
    color: #94a3b8;
}
.woo-sms-social-divider::before, .woo-sms-social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}
.woo-sms-social-divider::before {
    margin-left: 10px;
}
.woo-sms-social-divider::after {
    margin-right: 10px;
}
.woo-sms-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #334155;
    text-decoration: none;
}
.social-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.social-btn.google-btn {
    border-color: #fca5a5;
}
.social-btn.google-btn:hover {
    background: #fef2f2;
}
.social-btn.linkedin-btn {
    border-color: #93c5fd;
}
.social-btn.linkedin-btn:hover {
    background: #eff6ff;
}
.social-btn.github-btn {
    border-color: #cbd5e1;
}
.social-btn.github-btn:hover {
    background: #f1f5f9;
}
.social-btn.telegram-btn {
    border-color: #bae6fd;
}
.social-btn.telegram-btn:hover {
    background: #f0f9ff;
}
.social-btn svg {
    width: 16px;
    height: 16px;
}

/* Custom Popup Theme styles */
.theme-dark.woo-sms-modal-container,
.theme-dark .woo-sms-modal-container {
    background: #0f172a !important;
    color: #f1f5f9 !important;
    border-color: #1e293b !important;
}
.theme-dark .woo-sms-tabs-header {
    background: #1e293b !important;
    border-bottom: 1px solid #334155 !important;
}
.theme-dark .woo-sms-tab-btn {
    color: #64748b !important;
}
.theme-dark .woo-sms-tab-btn.active {
    background: #0f172a !important;
    color: #f1f5f9 !important;
}
.theme-dark .woo-sms-input {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}
.theme-dark .woo-sms-input:focus {
    background: #0f172a !important;
}
.theme-dark .panel-title, .theme-dark .input-group label, .theme-dark .desc {
    color: #e2e8f0 !important;
}
.theme-dark .woo-sms-checkbox-row {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

.theme-glass.woo-sms-modal-container,
.theme-glass .woo-sms-modal-container {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
.theme-glass .woo-sms-tabs-header {
    background: rgba(248, 250, 252, 0.5) !important;
}
.theme-glass .woo-sms-input {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(226, 232, 240, 0.8) !important;
}

.theme-gradient.woo-sms-modal-container,
.theme-gradient .woo-sms-modal-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-top: 4px solid var(--woo-primary) !important;
}

/* Layout specific styles */
.layout-split.woo-sms-modal-container {
    max-width: 520px !important;
    display: flex !important;
    flex-direction: row !important;
    overflow: hidden !important;
    padding: 0 !important;
}
.layout-split .woo-sms-split-sidebar {
    width: 170px;
    background: linear-gradient(135deg, var(--woo-primary), var(--woo-primary)dd) !important;
    color: #ffffff !important;
    padding: 24px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: right !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}
.layout-split .woo-sms-split-sidebar h4 {
    font-size: 13px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    margin-top: 0 !important;
}
.layout-split .woo-sms-split-sidebar p {
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    margin: 0 !important;
}
.layout-split .woo-sms-split-sidebar .sidebar-badge {
    font-size: 9px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: bold !important;
}
.layout-split .woo-sms-split-main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    padding: 16px !important;
}
.layout-split .woo-sms-modal-close {
    left: 12px !important;
    top: 12px !important;
}
@media (max-width: 600px) {
    .layout-split.woo-sms-modal-container {
        flex-direction: column !important;
        max-width: 340px !important;
    }
    .layout-split .woo-sms-split-sidebar {
        width: 100% !important;
        padding: 12px 16px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        justify-content: space-between !important;
    }
    .layout-split .woo-sms-split-sidebar h4 {
        margin-bottom: 0 !important;
    }
    .layout-split .woo-sms-split-sidebar p {
        display: none !important;
    }
}

.layout-minimal.woo-sms-modal-container {
    max-width: 300px !important;
}
.layout-minimal .woo-sms-tabs-header {
    background: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
}
.layout-minimal .woo-sms-tab-btn {
    background: transparent !important;
}
.layout-minimal .woo-sms-tab-btn.active {
    border-bottom: 2px solid var(--woo-primary) !important;
    background: transparent !important;
    color: #334155 !important;
}
.layout-minimal .woo-sms-input {
    padding-right: 12px !important;
}
.layout-minimal .field-icon {
    display: none !important;
}

${config.enableCustomCss ? config.customCss : ""}