@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Admin Menu Styles */
.wp-submenu li a[href="admin.php?page=cpb-upgrade"] {
    background-color: #004b9b !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.product-builder_page_cpb-settings {
    background: #f2f6ff;
}

/* Onboarding Dashboard Styles */
.cpb-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
}

.cpb-toggle-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.cpb-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

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

.cpb-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: .4s;
    border-radius: 34px;
}

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

input:checked+.cpb-slider {
    background-color: #3498db;
}

input:checked+.cpb-slider:before {
    transform: translateX(22px);
}

.cpb-configure-btn {
    width: 100%;
    padding: 10px 0px 4px 0px;
    background: #fff;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
}

.cpb-configure-btn:hover {
    background: #3498db;
    color: #fff;
}

/* Modal Styles */
.cpb-modal-content {
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 12px;
    width: 700px;
    max-width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

.cpb-modal-header {
    padding: 18px 35px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

.cpb-modal-header h2 {
    font-size: 22px;
    margin: 0;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.3px;
    font-family: 'Poppins', sans-serif;
}

.cpb-modal-body {
    padding: 25px 35px;
    height: 420px;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    font-family: 'Poppins', sans-serif;
}

/* Custom scrollbar */
.cpb-modal-body::-webkit-scrollbar {
    width: 8px;
}

.cpb-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.cpb-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.cpb-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.cpb-modal-footer {
    padding: 0;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    text-align: right;
}

.cpb-done-btn,
.cpb-next-step {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 12px 35px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2) !important;
    text-shadow: none !important;
    height: auto !important;
    line-height: 1 !important;
    font-family: 'Poppins', sans-serif !important;
}

.cpb-prev-step {
    background: #fff !important;
    border: none !important;
    color: #3498db !important;
    padding: 12px 35px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2) !important;
    text-shadow: none !important;
    height: auto !important;
    line-height: 1 !important;
    font-family: 'Poppins', sans-serif !important;
}

.cpb-done-btn:hover,
.cpb-next-step:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%) !important;
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3) !important;
}

.cpb-close-modal {
    color: #a0aec0;
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.cpb-modal-section {
    margin-bottom: 30px;
}

.cpb-modal-section:last-of-type {
    margin-bottom: 15px;
}

.cpb-modal-section h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #2d3748;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.cpb-modal-section h3 .dashicons {
    margin-right: 8px;
    color: #3498db;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cpb-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.cpb-image-item {
    position: relative;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px;
    background: #fff;
    transition: border-color 0.2s;
}

.cpb-image-item:hover {
    border-color: #3498db;
}

.cpb-image-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.cpb-remove-img {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
}

.cpb-edit-img {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #3b82f6;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    cursor: pointer;
    border: 2px solid #fff;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.cpb-edit-img:hover {
    background: #2563eb;
}

.cpb-upload-placeholder {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #718096;
    cursor: pointer;
    transition: all 0.2s;
}

.cpb-upload-placeholder:hover {
    border-color: #3498db;
    color: #3498db;
    background: #f0f9ff;
}

/* AI Generated tile — Pro only (free plugin): greyed + badge */
.cpb-ai-creative-pro-lock {
    display: block;
    text-decoration: none !important;
    color: inherit;
    box-shadow: none;
}

.cpb-ai-creative-pro-lock:hover,
.cpb-ai-creative-pro-lock:focus {
    text-decoration: none !important;
    outline: none;
    box-shadow: none;
}

.cpb-ai-creative--pro-locked {
    position: relative;
    margin: 0;
    cursor: pointer;
    border-color: #e2e8f0 !important;
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}

.cpb-ai-creative--pro-locked:hover {
    border-color: #cbd5e1 !important;
    background: #e2e8f0 !important;
    color: #64748b !important;
}

.cpb-ai-creative--pro-locked .dashicons {
    color: #94a3b8 !important;
}

.cpb-ai-creative--pro-locked:hover .dashicons {
    color: #64748b !important;
}

.cpb-ai-creative-label {
    font-size: 11px;
    margin-top: 5px;
    font-weight: 600;
}

.cpb-ai-creative-pro-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #ffb700 0%, #ff8c00 100%);
    color: #fff !important;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(255, 140, 0, 0.35);
    z-index: 2;
    pointer-events: none;
}

.cpb-pro-info-static {
    display: block;
    background: #fef3c7;
    color: #92400e;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 11px;
    margin-top: 20px;
    border: 1px solid #fde68a;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

/* Wizard Styles */
.cpb-wizard-modal {
    max-width: 800px !important;
    width: 90% !important;
}

.cpb-wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    gap: 0;
}

.cpb-wizard-steps::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 130px;
    right: 130px;
    height: 3px;
    background: #e2e8f0;
    z-index: 0;
}

.cpb-wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    flex: 1;
}

.cpb-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e8f0;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s;
}

.cpb-wizard-step.active .cpb-step-number {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.cpb-wizard-step.completed .cpb-step-number {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}

.cpb-wizard-step.completed .cpb-step-number::before {
    content: '✓';
    font-size: 24px;
    font-weight: bold;
}

.cpb-wizard-step.completed .cpb-step-number {
    font-size: 0;
}

.cpb-step-label {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

.cpb-wizard-step.active .cpb-step-label {
    color: #3b82f6;
}

.cpb-wizard-step.completed .cpb-step-label {
    color: #3b82f6;
}

/* Progress line filled dynamically */
.cpb-wizard-progress-fill {
    position: absolute;
    top: 38px;
    left: 130px;
    height: 3px;
    background: #3b82f6;
    z-index: 0;
    transition: width 0.3s ease;
}

.cpb-wizard-content {
    display: none;
    min-height: 350px;
}

.cpb-wizard-content.active {
    display: block;
}

/* Builder Type Options */
.cpb-builder-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.cpb-builder-option {
    cursor: pointer;
    display: block;
    position: relative;
}

.cpb-builder-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.cpb-builder-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.cpb-advanced-builder-type-gif {
    position: fixed;
    top: 173px;
    left: 60%;
    transform: translate(-50%, -50%);
    height: 202px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 2;
    border: 1px solid #2897ff;
    border-radius: 10px;
}

.cpb-builder-option:hover .cpb-advanced-builder-type-gif {
    opacity: 1;
}

.cpb-builder-type-gif {
    position: fixed;
    top: 173px;
    left: 40%;
    transform: translate(-50%, -50%);
    height: 202px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 2;
    border: 1px solid #2897ff;
    border-radius: 10px;
}

.cpb-builder-option:hover .cpb-builder-type-gif {
    opacity: 1;
}

@media (max-width: 700px) {
    .cpb-builder-type-gif {
        width: 90px;
        height: 90px;
    }
}

.cpb-builder-card .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #64748b;
    margin: 0 auto 15px;
    display: block;
    transition: all 0.3s;
}

.cpb-builder-card h3 {
    font-size: 18px;
    margin: 0 0 10px;
    color: #1e293b;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.cpb-builder-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.cpb-builder-option:hover .cpb-builder-card {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.1);
}

.cpb-builder-option:hover .cpb-builder-card .dashicons {
    color: #3b82f6;
}

.cpb-builder-option.selected .cpb-builder-card {
    border-color: #3b82f6;
    background: #eff6ff;
}

.cpb-builder-option.selected .cpb-builder-card .dashicons {
    color: #3b82f6;
}

.cpb-builder-option.selected .cpb-builder-card h3 {
    color: #3b82f6;
}

/* PRO Builder Option */
.cpb-builder-option.cpb-pro-option {
    cursor: pointer;
}

.cpb-builder-option.cpb-pro-option .cpb-builder-card {
    background: #f8fafc;
    border-color: #e2e8f0;
    position: relative;
    opacity: 0.7;
}

.cpb-builder-option.cpb-pro-option:hover .cpb-builder-card {
    opacity: 1;
    border-color: #f59e0b;
    background: #fffbeb;
}

.cpb-builder-option.cpb-pro-option .cpb-builder-card .dashicons {
    color: #94a3b8;
}

.cpb-builder-option.cpb-pro-option:hover .cpb-builder-card .dashicons {
    color: #f59e0b;
}

.cpb-builder-option.cpb-pro-option .cpb-builder-card h3 {
    color: #64748b;
}

.cpb-builder-option.cpb-pro-option:hover .cpb-builder-card h3 {
    color: #f59e0b;
}

.cpb-pro-badge-onboarding {
    position: absolute;
    top: -31px;
    right: -108px;
    background: #4f46e5;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.3);
}

.cpb-pro-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.cpb-upgrade-link {
    display: block;
    margin-top: 15px;
    color: #3b82f6;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.cpb-builder-option.cpb-pro-option:hover .cpb-upgrade-link {
    color: #f59e0b;
}

/* Button Toggles */
.cpb-button-toggles {
    padding-bottom: 15px;
}

.cpb-button-toggles h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #1e293b;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.cpb-button-toggles>p {
    margin-bottom: 20px;
    font-size: 12px;
}

.cpb-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpb-toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.cpb-toggle-item:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    cursor: pointer;
}

.cpb-toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.cpb-toggle-info .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 0;
}

.cpb-toggle-info strong {
    display: block;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 3px;
}

.cpb-toggle-info p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

/* Wizard Footer */
.cpb-wizard-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 40px;
    gap: 15px;
    font-family: 'Poppins', sans-serif;
}

.cpb-prev-step {
    background: #fff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    margin-right: auto;
}

.cpb-prev-step:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.cpb-prev-step .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Settings Page Styles*/
.cpbwc-settings-wrap {
    background: #f2f6ff;
    margin-left: -20px;
    padding: 0;
    min-height: 100vh;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cpbwc-settings-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cpbwc-success-message {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
    animation: slideInDown 0.4s ease-out;
    font-family: 'Poppins', sans-serif;
}

.cpbwc-success-message svg {
    flex-shrink: 0;
    stroke: white;
}

.cpbwc-success-message span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.cpbwc-success-message .cpbwc-dismiss-message {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.cpbwc-success-message .cpbwc-dismiss-message:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cpbwc-success-message .cpbwc-dismiss-message svg {
    stroke: white;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cpbwc-settings-header {
    background: white;
    padding: 32px 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    gap: 20px;
}

.cpbwc-header-icon {
    background: #EFF6FF;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cpbwc-header-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #338eef;
}

.cpbwc-header-content h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    color: #1E293B;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.cpbwc-header-content .description {
    margin: 0;
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
    font-family: 'Poppins', sans-serif;
}

.cpbwc-settings-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    font-family: 'Poppins', sans-serif;
}

.cpbwc-field-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.cpbwc-field-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.cpbwc-label-icon {
    width: 40px;
    height: 40px;
    background: #F8FAFC;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cpbwc-label-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #64748B;
}

.cpbwc-field-label label {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.cpbwc-field-input {
    width: 100%;
}

.cpbwc-font-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 16px;
    background: #F8FAFC;
    border-radius: 8px;
    border: 2px dashed #E2E8F0;
    min-height: 80px;
}

.cpbwc-font-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.cpbwc-font-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #338eef;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.cpbwc-remove-font {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cpbwc-remove-font:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cpbwc-add-font-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.cpbwc-add-font-btn:hover {
    background: #E2E8F0;
    color: #338eef;
}

.cpbwc-add-font-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cpbwc-field-description {
    margin: 12px 0 0 0;
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
}

.cpbwc-settings-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 32px;
    margin-top: 32px;
    display: flex;
    justify-content: flex-start;
}

.cpbwc-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #338eef;
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.cpbwc-save-btn:hover {
    background: #1D4ED8;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.cpbwc-save-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.cpbwc-settings-info {
    margin-top: 24px;
}

.cpbwc-info-box {
    background: #DBEAFE;
    border-left: 4px solid #338eef;
    padding: 20px 24px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cpbwc-info-box .dashicons {
    color: #338eef;
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cpbwc-info-box strong {
    display: block;
    margin-bottom: 6px;
    color: #1E40AF;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.cpbwc-info-box p {
    margin: 0;
    color: #1E40AF;
    font-size: 13px;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
}

/* Modal Styles */
.cpbwc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cpbwc-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.cpbwc-modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cpbwc-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1E293B;
}

.cpbwc-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.cpbwc-modal-close:hover {
    background: #F1F5F9;
}

.cpbwc-modal-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #64748B;
}

.cpbwc-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
}

.cpbwc-font-search {
    margin-bottom: 20px;
}

.cpbwc-font-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.cpbwc-font-search input:focus {
    border-color: #338eef;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.cpbwc-font-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.cpbwc-font-item {
    padding: 12px 16px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
    color: #1E293B;
    font-family: 'Poppins', sans-serif;
}

.cpbwc-font-item:hover {
    border-color: #338eef;
    background: #EFF6FF;
}

.cpbwc-font-item.selected {
    border-color: #338eef;
    background: #EFF6FF;
    color: #338eef;
    font-weight: 500;
}

/* Pro Settings Gray Out */
.cpbwc-settings-wrap.is-pro-disabled .cpbwc-settings-form,
.cpb-toggle-action.is-pro-disabled {
    pointer-events: none;
    user-select: none;
    cursor: not-allowed;
}

/* Apply filter to specific elements to keep PRO tags vibrant */
.cpbwc-settings-wrap.is-pro-disabled .cpbwc-field-row .cpbwc-field-label,
.cpbwc-settings-wrap.is-pro-disabled .cpbwc-field-row .cpbwc-field-input,
.cpbwc-settings-wrap.is-pro-disabled .cpbwc-settings-footer,
.cpb-toggle-action.is-pro-disabled .cpb-switch {
    filter: grayscale(1) opacity(0.5);
}

.cpbwc-settings-card {
    position: relative;
    overflow: hidden;
}

.cpb-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(3px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    pointer-events: all;
}

.cpb-locked-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 320px;
    border: 1px solid #e2e8f0;
}

.cpb-locked-content .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #FF8C00;
    margin-bottom: 15px;
}

.cpb-locked-content h4 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.cpb-locked-content p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

.cpb-upgrade-now-btn {
    display: inline-block;
    background: linear-gradient(135deg, #FFB700 0%, #FF8C00 100%);
    color: white !important;
    text-decoration: none !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.cpb-upgrade-now-btn:hover {
    box-shadow: 0 6px 15px rgba(255, 140, 0, 0.4);
    color: white !important;
}

.cpb-title-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cpb-pro-tag {
    background: linear-gradient(135deg, #FFB700 0%, #FF8C00 100%);
    color: #fff !important;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(255, 140, 0, 0.2);
    display: inline-block;
    vertical-align: middle;
    margin-top: -4px;
    filter: none !important;
    opacity: 1 !important;
}

/* Toggle List Styles */
.cpb-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.cpb-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 2px;
}

.cpb-toggle-item:hover {
    border-color: #338eef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cpb-toggle-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cpb-toggle-info .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #338eef;
    background: #eff6ff;
    padding: 10px;
    border-radius: 10px;
}

.cpb-toggle-info strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.cpb-toggle-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* Small Badge above Switch */
.cpb-toggle-action {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 60px;
}

.cpb-pro-tag-badge {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFB700 0%, #FF8C00 100%);
    color: #fff !important;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(255, 140, 0, 0.3);
    display: inline-block;
    filter: none !important;
    opacity: 1 !important;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}

/* admin.php?page=cpb-dashboard — match WP chrome to app background */
body.toplevel_page_cpb-dashboard {
    background: #f2f6ff !important;
}

body.toplevel_page_cpb-dashboard #wpcontent,
body.toplevel_page_cpb-dashboard #wpbody,
body.toplevel_page_cpb-dashboard #wpbody-content {
    background: #f2f6ff !important;
}

body.toplevel_page_cpb-dashboard #wpfooter {
    background: #f2f6ff !important;
}

/* Redesigned Onboarding Page Styles (Premium match) */
.cpb-onboarding-page {
    min-height: 100vh;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    color: #1e293b;
    background: transparent;
    margin-left: -20px;
    margin-bottom: -20px;
}

.cpb-onboarding-header {
    max-width: 800px;
    margin: 0 auto 20px;
    text-align: center;
}

.cpb-onboarding-logo {
    margin-bottom: 24px;
}

.cpb-onboarding-logo img {
    max-width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.cpb-card-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.cpb-onboarding-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #0f172a;
}

.cpb-onboarding-header p {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    max-width: 650px;
    margin: 0 auto;
}

.cpb-onboarding-content {
    max-width: 840px;
    margin: 0 auto;
}

.cpb-onboarding-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    border: 1px solid #f1f5f9;
}

.cpb-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cpb-header-indicator {
    width: 4px;
    height: 24px;
    border-radius: 2px;
}

.indicator-blue {
    background: #3b82f6;
}

.indicator-green {
    background: #10b981;
}

.cpb-card-header.centered {
    justify-content: center;
}

.cpb-card-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 auto 30px;
}

.cpb-card-subtitle.centered {
    text-align: center;
}

/* Video Placeholder */
.cpb-video-placeholder-new {
    background: #000 no-repeat center center;
    background-size: cover;
    border-radius: 16px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cpb-video-placeholder-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
    pointer-events: none;
}

.cpb-video-placeholder-new:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.cpb-play-button-wrapper {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cpb-play-button-wrapper:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

.cpb-play-button {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: #3b82f6;
}

.cpb-play-button .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    margin-left: 4px;
    /* Optical centering for play icon */
}

/* Actions */
.cpb-onboarding-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.cpb-btn-primary-new {
    background: #3b82f6;
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.cpb-btn-primary-new:hover {
    background: #2563eb;
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.cpb-btn-outline-new {
    background: #ffffff;
    color: #1e293b !important;
    padding: 12px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.cpb-btn-outline-new:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* Features Grid */
.cpb-features-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cpb-feature-item-new {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.cpb-feature-item-new:hover {
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.cpb-feature-icon-wrap {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #3b82f6;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.cpb-feature-icon-wrap .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.cpb-feature-item-new h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #0f172a;
}

.cpb-feature-item-new p {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

.cpb-pro-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

/* Upgrade Card */
.cpb-upgrade-card {
    border: 2px solid #e0e7ff;
    overflow: hidden;
}

.cpb-best-value-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #3b82f6;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 20px;
    border-bottom-left-radius: 20px;
}

.cpb-upgrade-header.centered {
    text-align: center;
}

.cpb-upgrade-icon {
    width: 48px;
    height: 48px;
    background: #f5f3ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #6366f1;
}

.cpb-upgrade-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.cpb-upgrade-header h2 {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 700;
}

.cpb-upgrade-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    margin-bottom: 40px;
}

.cpb-upgrade-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    font-weight: 500;
}

.cpb-feature-svg-wrap {
    width: 36px;
    height: 36px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    flex-shrink: 0;
}

.cpb-feature-svg-wrap svg {
    width: 18px;
    height: 18px;
    display: block;
}

.cpb-pricing-container-new {
    background: #fdfefe;
    border: 1px solid #ebf0fe;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.03);
}

.cpb-pricing-box {
    margin-bottom: 24px;
}

.cpb-price {
    font-size: 40px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cpb-price .currency {
    font-size: 24px;
    font-weight: 600;
    align-self: flex-start;
    margin-top: 8px;
}

.cpb-price .period {
    font-size: 16px;
    color: #64748b;
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 12px;
}

.cpb-price-note {
    font-size: 14px;
    color: #64748b;
    margin: 8px 0 0;
}

.cpb-btn-upgrade-new {
    background: #3b82f6;
    color: #ffffff !important;
    padding: 12px 0 12px 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    width: 100%;
    max-width: 400px;
}

.cpb-btn-upgrade-new:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Review Section */
.cpb-review-card-new {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.cpb-review-card-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cpb-review-avatar {
    width: 54px;
    height: 54px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 16px;
}

.cpb-review-stars {
    color: #fbbf24;
    margin-bottom: 12px;
    display: flex;
    gap: 2px;
}

.cpb-review-stars .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.cpb-review-main p {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 12px;
    font-weight: 500;
}

.cpb-review-main cite {
    font-size: 14px;
    color: #64748b;
    font-style: normal;
}

.cpb-onboarding-footer {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
}

.cpb-onboarding-footer p {
    font-size: 13px;
    color: #94a3b8;
}

.cpb-onboarding-footer a {
    color: #3b82f6;
    text-decoration: none;
}

/* Video Modal Styles Rewrite */
.cpb-video-modal {
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpb-video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cpb-video-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cpb-video-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cpb-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.cpb-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Logo restriction modal (Pro preview — free plugin) — Poppins + polished actions */
.cpb-restrict-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cpb-restrict-modal__content {
    width: min(900px, 96vw);
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.cpb-restrict-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e8eef4;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.cpb-restrict-modal__title {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.cpb-restrict-close {
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cpb-restrict-close--icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.cpb-restrict-close--icon:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.cpb-restrict-close--icon:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.cpb-restrict-modal__body {
    padding: 18px 18px 20px;
}

.cpb-restrict-hint {
    margin: 0 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
}

.cpb-restrict-pro-visual {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Free: no blur overlay — show clear preview; cursor shows area is not editable */
.cpb-restrict-no-drop-zone {
    cursor: no-drop;
    user-select: none;
}

.cpb-restrict-no-drop-zone * {
    cursor: no-drop;
}

.cpb-restrict-no-drop-zone input:disabled {
    cursor: no-drop;
}

.cpb-restrict-stage {
    position: relative;
    width: 100%;
    height: 420px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.cpb-restrict-preview-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95%;
    max-height: 95%;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    line-height: 0;
}

.cpb-restrict-stage img {
    display: block;
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

.cpb-restrict-box {
    position: absolute !important;
    border: 2px solid #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    min-width: 20px;
    min-height: 20px;
    box-sizing: border-box;
    z-index: 10;
}

.cpb-restrict-box--locked-preview {
    pointer-events: none;
}

.cpb-restrict-fields {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cpb-restrict-fields label {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #334155;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cpb-restrict-fields input {
    font-family: 'Poppins', sans-serif;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    background: #f8fafc;
}

.cpb-restrict-pro-upgrade {
    background: #3b82f6;
    color: #ffffff !important;
    padding: 12px 0 12px 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    width: 174px;
    max-width: 400px;
}

.cpb-restrict-pro-upgrade:hover {
    color: #fff !important;
    filter: brightness(1.05);
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.5), 0 1px 0 rgba(255, 255, 255, 0.2) inset !important;
    transform: translateY(-1px);
}

.cpb-restrict-pro-upgrade:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 3px;
}

.cpb-restrict-modal__footer {
    padding: 14px 18px;
    border-top: 1px solid #e8eef4;
    background: #fafbfc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.cpb-restrict-close--footer {
    min-height: 42px;
    padding: 0 24px !important;
    border-radius: 10px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    color: #475569 !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.cpb-restrict-close--footer:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.cpb-restrict-close--footer:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}