:root {
    --mdx-accent: var(--wp-admin-theme-color, #2271b1);
    --mdx-accent-700: color-mix(in oklab, var(--mdx-accent) 90%, #0000);
    --mdx-surface: #ffffff;
    --mdx-muted: #f6f7f7;
    --mdx-border: #dcdcde;
    --mdx-text: #1d2327;
    --mdx-subtext: #50575e;

    /* Required field color */
    --mdx-required: #d63638;

    /* Shadows and rings */
    --mdx-shadow-sm: 0 2px 6px rgba(0,0,0,.06);
    --mdx-shadow: 0 6px 20px rgba(30, 41, 59, 0.08);
    --mdx-shadow-lg: 0 14px 36px rgba(2, 6, 23, 0.12);
    --mdx-ring: 0 0 0 2px #fff, 0 0 0 4px var(--mdx-accent);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --mdx-surface: #0b1220;
        --mdx-muted: #0f172a;
        --mdx-border: #1e293b;
        --mdx-text: #e5e7eb;
        --mdx-subtext: #9ca3af;

        --mdx-required: #ff6b6b;

        --mdx-shadow-sm: 0 2px 6px rgba(0,0,0,.35);
        --mdx-shadow: 0 10px 30px rgba(0,0,0,.45);
        --mdx-shadow-lg: 0 20px 60px rgba(0,0,0,.55);
    }
}

/* Page title polish */
.wrap > h1 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 10px;
    background:
            radial-gradient(1000px 70px at 0% 0%, color-mix(in oklab, var(--mdx-accent), #fff 90%), transparent 70%),
            transparent;
    color: var(--mdx-text);
}

/* Container card */
.mdxcsp-settings-container {
    position: relative;
    background: var(--mdx-surface);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--mdx-shadow);
    max-width: 1000px;
    width: 100%;
    margin-top: 16px;
    border: 1px solid var(--mdx-border);
    overflow: hidden;
}
.mdxcsp-settings-container::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background:
            linear-gradient(180deg, color-mix(in oklab, var(--mdx-accent), transparent 92%), transparent 70%),
            radial-gradient(1200px 120px at 10% -40px, color-mix(in oklab, var(--mdx-accent), #fff 92%), transparent 40%);
    opacity: .25;
}

/* Rows */
.mdxcsp-form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f1;
}
.mdxcsp-form-row:last-child { border-bottom: 0; }

/* Status Row */
.mdxcsp-row-status {
    background:
            linear-gradient(180deg, color-mix(in oklab, var(--mdx-accent), #fff 94%), color-mix(in oklab, var(--mdx-accent), #fff 98%));
    border-radius: 14px;
    padding: 16px;
    border: 1px solid color-mix(in oklab, var(--mdx-accent), #fff 65%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-row-status {
        background:
                linear-gradient(180deg, color-mix(in oklab, var(--mdx-accent), #000 90%), color-mix(in oklab, var(--mdx-accent), #000 96%));
        border-color: color-mix(in oklab, var(--mdx-accent), #000 70%);
    }
}
.mdxcsp-status-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mdxcsp-status-text {
    font-weight: 700;
    color: var(--mdx-text);
}
.mdxcsp-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid var(--mdx-border);
    background: #fff;
    color: var(--mdx-subtext);
    box-shadow: var(--mdx-shadow-sm);
}
.mdxcsp-status-pill::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #9ca3af;
    box-shadow: 0 0 0 2px rgba(255,255,255,.6);
}
.mdxcsp-status-pill.is-on {
    background: color-mix(in oklab, var(--mdx-accent), #fff 86%);
    color: var(--mdx-accent);
    border-color: color-mix(in oklab, var(--mdx-accent), #fff 70%);
}
.mdxcsp-status-pill.is-on::before { background: #10b981; }
.mdxcsp-status-pill.is-off {
    background: #fff;
    color: #64748b;
}

/* Toggle */
.mdxcsp-toggle-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 32px;
}
.mdxcsp-toggle-switch input {
    opacity: 0.0001;
    width: 0; height: 0;
    position: absolute;
}
.mdxcsp-slider {
    position: absolute;
    inset: 0;
    background: #c7c7c7;
    border-radius: 100px;
    transition: .25s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
.mdxcsp-slider:before {
    content: "";
    position: absolute;
    left: 4px; top: 4px;
    width: 24px; height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: .25s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.mdxcsp-toggle-switch input:checked + .mdxcsp-slider {
    background: linear-gradient(90deg, var(--mdx-accent), color-mix(in oklab, var(--mdx-accent), #0000 10%));
    box-shadow: 0 4px 12px color-mix(in oklab, var(--mdx-accent), #0000 75%);
}
.mdxcsp-toggle-switch input:checked + .mdxcsp-slider:before { transform: translateX(30px); }
.mdxcsp-toggle-switch input:focus-visible + .mdxcsp-slider {
    box-shadow: var(--mdx-ring);
    outline: none;
}

/* Section titles */
.mdxcsp-row-title label {
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--mdx-text);
}
.mdxcsp-row-title .description {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: var(--mdx-subtext);
}
.mdxcsp-section-title {
    margin: 12px 0 4px;
    font-weight: 800;
    color: var(--mdx-text);
    letter-spacing: .2px;
}
.mdxcsp-section-desc {
    margin: 0 0 12px;
    color: var(--mdx-subtext);
}

/* Templates grid */
.mdxcsp-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: minmax(0, auto);
    gap: 18px;
    margin: 14px 0 8px;
    transition: height 280ms ease;
    will-change: height;
    align-items: start;
    align-content: start;
}
.mdxcsp-templates-grid.is-animating { overflow: hidden; }

.mdxcsp-template-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #fff, color-mix(in oklab, var(--mdx-accent), #fff 98%));
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--mdx-border);
    box-shadow: var(--mdx-shadow-sm);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    will-change: transform, opacity, box-shadow;
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-template-card {
        background: linear-gradient(180deg, #0b1220, color-mix(in oklab, var(--mdx-accent), #000 92%));
    }
}
.mdxcsp-template-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, color-mix(in oklab, var(--mdx-accent), #fff 40%), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .0;
    transition: opacity .18s ease;
    pointer-events: none;
}
.mdxcsp-template-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,.10);
    border-color: color-mix(in oklab, var(--mdx-accent), #fff 70%);
}
.mdxcsp-template-card:hover::before { opacity: .6; }
.mdxcsp-template-card.is-selected {
    border-color: var(--mdx-accent);
    box-shadow: 0 12px 28px color-mix(in oklab, var(--mdx-accent), #0000 82%);
    background: linear-gradient(180deg, #fff, color-mix(in oklab, var(--mdx-accent), #fff 96%));
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-template-card.is-selected {
        background: linear-gradient(180deg, #0b1220, color-mix(in oklab, var(--mdx-accent), #000 84%));
    }
}
.mdxcsp-template-card.is-selected::before { opacity: 1; }
.mdxcsp-template-card:focus-within {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mdx-accent), 0 16px 38px rgba(0,0,0,.15);
}
.mdxcsp-template-card input {
    position: absolute;
    opacity: 0.0001;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    pointer-events: none;
}
.mdxcsp-template-card img {
    display: block;
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-template-card img {
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    }
}
.mdxcsp-template-title {
    font-weight: 700;
    color: var(--mdx-text);
}
.mdxcsp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: linear-gradient(180deg, var(--mdx-accent), color-mix(in oklab, var(--mdx-accent), #0000 10%));
    color: #fff;
    font-size: 11px;
    border-radius: 999px;
    display: none;
    box-shadow: 0 6px 16px color-mix(in oklab, var(--mdx-accent), #0000 70%);
}
.mdxcsp-template-card.is-selected .mdxcsp-badge { display: inline-block; }

/* Divider */
.mdxcsp-divider {
    border: 0;
    border-top: 1px solid #ebedf0;
    margin: 18px 0;
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-divider { border-top-color: #1f2937; }
}

/* Template options card */
.mdxcsp-template-options {
    background: #fff;
    border: 1px solid var(--mdx-border);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--mdx-shadow);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-template-options { background: #0b1220; }
}
.mdxcsp-template-options::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 80px at 0% -20px, color-mix(in oklab, var(--mdx-accent), #fff 90%), transparent 60%);
    opacity: .2;
    pointer-events: none;
}
.mdxcsp-card-title {
    margin: 6px 6px 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--mdx-text);
    letter-spacing: .2px;
}

/* Accordion */
.mdxcsp-acc {
    border: none;
    border-radius: 12px;
    margin: 12px 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-acc { background: #0b1220; border-color: #1e293b; box-shadow: none; }
}
.mdxcsp-acc > summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--mdx-text);
    background: linear-gradient(180deg, var(--mdx-muted), #ffffff);
    position: relative;
    border-bottom: 1px solid var(--mdx-border);
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-acc > summary { background: linear-gradient(180deg, #101827, #0b1220); }
}
.mdxcsp-acc > summary::marker { display: none; }
.mdxcsp-acc > summary:after {
    content: "▾";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform .2s ease;
    color: var(--mdx-subtext);
}
.mdxcsp-acc[open] > summary:after { transform: translateY(-50%) rotate(-180deg); }
.mdxcsp-acc .form-table { margin: 0; }
.mdxcsp-acc .form-table th {
    width: 240px;
    color: var(--mdx-subtext);
}
.mdxcsp-acc-locked > summary { cursor: default; pointer-events: none; }
.mdxcsp-acc-locked > summary:after { display: none !important; }

/* Form table subtle row hover */
.mdxcsp-acc .form-table tr:hover {
    background: color-mix(in oklab, var(--mdx-accent), #fff 96%);
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-acc .form-table tr:hover {
        background: color-mix(in oklab, var(--mdx-accent), #000 92%);
    }
}

/* Image fields */
.mdxcsp-image-field {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.mdxcsp-image-preview-wrap { position: relative; }
.mdxcsp-image-preview {
    background: var(--mdx-muted);
    border: 1px solid var(--mdx-border);
    border-radius: 10px;
    padding: 4px;
    display: block;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}

/* Inline field with color picker (text + color) */
.mdxcsp-inline-field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mdxcsp-inline-field .wp-picker-container { vertical-align: middle; }

/* Menu Items Styling - FIXED VERSION */
.mdxcsp-menu-items-container {
    position: relative;
}

.mdxcsp-menu-item {
    background: var(--mdx-muted);
    border: 1px solid var(--mdx-border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.mdxcsp-menu-item:hover {
    border-color: color-mix(in oklab, var(--mdx-accent), #fff 70%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mdxcsp-menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mdx-border);
}

.mdxcsp-menu-item-header label {
    font-weight: 600;
    color: var(--mdx-text);
    margin: 0;
}

.mdxcsp-remove-menu-item {
    color: #d63638;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mdxcsp-remove-menu-item:hover {
    background: #d63638;
    color: white;
    border-color: #d63638;
}

.mdxcsp-url-label {
    display: block;
    margin: 12px 0 6px 0;
    font-weight: 500;
    color: var(--mdx-subtext);
}

.mdxcsp-nav-color-section {
    margin: 20px 0 16px 0;
    padding: 16px;
    background: color-mix(in oklab, var(--mdx-accent), #fff 96%);
    border-radius: 8px;
    border: 1px dashed color-mix(in oklab, var(--mdx-accent), #fff 70%);
}

@media (prefers-color-scheme: dark) {
    .mdxcsp-nav-color-section {
        background: color-mix(in oklab, var(--mdx-accent), #000 92%);
        border-color: color-mix(in oklab, var(--mdx-accent), #000 70%);
    }
}

.mdxcsp-nav-color-section label {
    font-weight: 600;
    color: var(--mdx-text);
    margin-bottom: 8px;
    display: block;
}

/* Add buttons (progressive fields) */
.mdxcsp-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px dashed color-mix(in oklab, var(--mdx-accent), #fff 30%);
    background: #fff;
    color: var(--mdx-accent);
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,.04);
    transition: transform .12s ease, border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-add-btn {
        background: #0b1220;
        border-color: color-mix(in oklab, var(--mdx-accent), #000 65%);
    }
}
.mdxcsp-add-btn:hover {
    transform: translateY(-1px);
    border-color: var(--mdx-accent);
    background: color-mix(in oklab, var(--mdx-accent), #fff 92%);
    box-shadow: 0 8px 16px rgba(0,0,0,.06);
}
.mdxcsp-add-btn:focus-visible {
    outline: none;
    box-shadow: var(--mdx-ring);
}
.mdxcsp-add-btn-icon {
    display: inline-flex;
    width: 18px; height: 18px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--mdx-accent);
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

/* Sticky Save Bar */
.mdxcsp-sticky-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-top: 18px;
    background:
            linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.96));
    backdrop-filter: blur(6px);
    border: 1px solid var(--mdx-border);
    border-radius: 12px;
    box-shadow: var(--mdx-shadow);
    z-index: 10;
}
@media (prefers-color-scheme: dark) {
    .mdxcsp-sticky-actions {
        background: linear-gradient(180deg, rgba(16,24,39,.75), rgba(11,18,32,.85));
    }
}
/* Full-width blue line indicator when unsaved */
.mdxcsp-sticky-actions::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--mdx-accent), color-mix(in oklab, var(--mdx-accent), #0000 10%));
    border-radius: 3px 3px 0 0;
    transition: width .25s ease;
}
body.mdxcsp-dirty .mdxcsp-sticky-actions::before { width: 100%; }
.mdxcsp-sticky-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--mdx-subtext);
    font-weight: 700;
}
.mdxcsp-dirty-indicator {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
body.mdxcsp-dirty .mdxcsp-dirty-indicator {
    background: var(--mdx-accent);
    box-shadow: 0 0 0 4px color-mix(in oklab, var(--mdx-accent), #fff 80%);
}
.mdxcsp-sticky-right .button-primary {
    box-shadow: 0 6px 16px color-mix(in oklab, var(--mdx-accent), #0000 70%);
}

/* Buttons polish */
.button,
.button-secondary,
.button-primary {
    border-radius: 8px;
}
.button-primary:focus-visible,
#mdxcsp-load-more:focus-visible,
#mdxcsp-show-less:focus-visible {
    box-shadow: var(--mdx-ring) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mdxcsp-template-card,
    .mdxcsp-slider,
    .mdxcsp-acc > summary:after,
    .mdxcsp-menu-item {
        transition: none !important;
    }
}

/* Fixed-columns grid */
@media (min-width: 1024px) {
    .mdxcsp-templates-grid { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .mdxcsp-templates-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}
@media (max-width: 639px) {
    .mdxcsp-templates-grid { grid-template-columns: 1fr; }
}

/* Reveal animation */
.mdxcsp-template-card.is-revealed { animation: mdxcsp-fade-up 280ms ease-out both; }
@keyframes mdxcsp-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Menu item reveal animation */
.mdxcsp-menu-item {
    animation: mdxcsp-menu-item-fade-in 0.3s ease-out;
}

@keyframes mdxcsp-menu-item-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Load More (WP accent) */
#mdxcsp-load-more {
    display: block;
    margin: 10px auto 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--mdx-border);
    background: var(--mdx-accent);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease, background-color .2s ease;
}
#mdxcsp-load-more:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,.08);
    border-color: var(--mdx-accent-700);
    background: var(--mdx-accent-700);
    color: #fff;
}
#mdxcsp-load-more::after {
    content: "▾";
    margin-left: 8px;
    font-size: 12px;
    display: inline-block;
    transform: translateY(1px);
}
#mdxcsp-load-more.is-busy { pointer-events: none; opacity: .85; }
#mdxcsp-load-more.is-busy::after {
    content: "";
    width: 12px; height: 12px; margin-left: 8px;
    border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent;
    display: inline-block;
    animation: mdxcsp-spin .6s linear infinite;
}
@keyframes mdxcsp-spin { to { transform: rotate(360deg); } }

/* Show Less (neutral) */
#mdxcsp-show-less {
    display: block;
    margin: 10px auto 0;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--mdx-border);
    background: var(--mdx-muted);
    color: var(--mdx-text);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
    transition: box-shadow .2s ease, transform .12s ease, border-color .2s ease, background-color .2s ease;
}
#mdxcsp-show-less:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(0,0,0,.08);
    border-color: color-mix(in oklab, var(--mdx-accent), #fff 70%);
}
#mdxcsp-show-less::after {
    content: "▴";
    margin-left: 8px;
    font-size: 12px;
    display: inline-block;
    transform: translateY(1px);
}

/* REQUIRED FIELD INDICATORS ONLY - NO VALIDATION */
.mdxcsp-required-label {
    position: relative;
    display: inline-block;
}

.mdxcsp-required-label::after {
    content: "*";
    color: var(--mdx-required);
    margin-left: 4px;
    font-weight: 800;
    font-size: 14px;
}

/* Enhanced description styling */
.mdxcsp-acc .form-table td .description {
    font-style: italic;
    color: var(--mdx-subtext);
    margin-top: 6px;
    display: block;
}

.mdxcsp-menu-main-tnt {
    display: flex;
    justify-content: center;
    align-items: start;
    gap: 30px;
}

.menu-url-input input {
    margin-top: 10px;
}

.mdxcsp-nav-color-section {
    display: none;
}

.icons_url {
    display: flex;
    justify-content: start;
    align-items: start;
    gap: 10px;
}

.icon_btw-border {
    height: 1px;
    width: 100%;
    background-color: gray;
    margin-top:20px;
    margin-bottom: 15px;
}

/* Required Field Validation Styles */
.mdxcsp-field-error {
    position: relative;
}

.mdxcsp-field-error input:not(.mdxcsp-color-picker),
.mdxcsp-field-error textarea {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px #d63638 !important;
}

.mdxcsp-field-error .mdxcsp-image-field {
    border: 1px solid #d63638 !important;
    padding: 10px;
    border-radius: 4px;
    background-color: #fff8f8;
}

.mdxcsp-error-message {
    color: #d63638;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* Make the required labels more noticeable */
.mdxcsp-required-label {
    font-weight: 600;
}

.mdxcsp-required-label::after {
    content: " *";
    color: #d63638;
}