/* ========================================
   OJS BUILDER
======================================== */

.builder-container {
    padding-top: 34px;
    padding-bottom: 60px;
}


/* HERO */

.builder-hero {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 24px;
    padding: 42px;

    background:
        linear-gradient(
            135deg,
            #101828,
            #172554
        );

    border-radius: 18px;
}

.builder-hero::after {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -80px;
    top: -100px;

    background:
        rgba(59, 130, 246, .18);

    border-radius: 50%;
}

.builder-hero-content {
    position: relative;
    z-index: 2;

    max-width: 700px;
}

.builder-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: #93c5fd;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .1em;
}

.builder-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(
        28px,
        4vw,
        46px
    );

    line-height: 1.08;
}

.builder-hero h1 span {
    color: #60a5fa;
}

.builder-hero p {
    max-width: 650px;

    margin: 15px 0 0;

    color: #cbd5e1;

    font-size: 12px;
    line-height: 1.75;
}

.builder-hero-badge {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;

    padding: 10px 14px;

    background:
        rgba(255, 255, 255, .08);

    border:
        1px solid
        rgba(255, 255, 255, .16);

    border-radius: 10px;

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;
}


/* PANEL */

.builder-panel {
    margin-top: 18px;
    padding: 24px;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 15px;

    box-shadow:
        0 5px 20px
        rgba(16, 24, 40, .035);
}

.builder-panel-heading {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding-bottom: 18px;

    border-bottom:
        1px solid #f2f4f7;
}

.builder-section-number {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    background: #eff8ff;

    border-radius: 50%;

    color: #175cd3;

    font-size: 10px;
    font-weight: 800;
}

.builder-section-yellow {
    background: #fffaeb;
    color: #b54708;
}

.builder-section-label {
    display: block;

    margin-bottom: 4px;

    color: #175cd3;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .08em;
}

.builder-panel-heading h2,
.builder-workspace h2 {
    margin: 0;

    color: #172033;

    font-size: 17px;
}

.builder-panel-heading p,
.builder-workspace > div > p {
    margin: 5px 0 0;

    color: #667085;

    font-size: 10px;
    line-height: 1.6;
}


/* FORM */

.builder-form-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 16px;

    margin-top: 20px;
}

.builder-field label,
.builder-color-field label {
    display: block;

    margin-bottom: 6px;

    color: #344054;

    font-size: 10px;
    font-weight: 700;
}

.builder-field input {
    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    outline: none;

    color: #101828;

    font-size: 11px;

    transition:
        border .2s ease,
        box-shadow .2s ease;
}

.builder-field input:focus {
    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .12);
}

.builder-field small {
    display: block;

    margin-top: 5px;

    color: #98a2b3;

    font-size: 8px;
}


/* THEMES */

.builder-theme-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 20px;
}

.builder-theme-card {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 14px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 10px;

    cursor: pointer;

    text-align: left;

    transition: .2s ease;
}

.builder-theme-card:hover {
    border-color: #84adff;
}

.builder-theme-card.active {
    border-color: #2e90fa;

    box-shadow:
        0 0 0 2px
        rgba(46, 144, 250, .10);
}

.builder-theme-dot {
    width: 12px;
    height: 12px;

    flex: 0 0 12px;

    border-radius: 50%;
}

.builder-theme-card strong {
    display: block;

    color: #344054;

    font-size: 10px;
}

.builder-theme-card small {
    display: block;

    margin-top: 2px;

    color: #98a2b3;

    font-size: 8px;
}


/* COLORS */

.builder-color-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 14px;

    margin-top: 18px;
}

.builder-color-field {
    padding: 13px;

    background: #f8fafc;

    border: 1px solid #eaecf0;
    border-radius: 9px;
}

.builder-color-control {
    display: flex;

    gap: 8px;
}

.builder-color-control input[type="color"] {
    width: 38px;
    height: 36px;

    padding: 2px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 6px;

    cursor: pointer;
}

.builder-color-control input[type="text"] {
    min-width: 0;
    flex: 1;

    padding: 8px 9px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 6px;

    color: #344054;

    font-size: 10px;
}


/* TABS */

.builder-tabs {
    display: flex;

    gap: 6px;

    margin-top: 22px;
    padding: 6px;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 12px;
}

.builder-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    flex: 1;

    min-width: 145px;

    padding: 10px 12px;

    background: transparent;

    border: 0;
    border-radius: 8px;

    color: #667085;

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.builder-tab span {
    color: #98a2b3;

    font-size: 8px;
}

.builder-tab.active {
    background: #1570ef;
    color: #ffffff;
}

.builder-tab.active span {
    color: #d1e9ff;
}


/* WORKSPACE */

.builder-workspace {
    margin-top: 16px;
    padding: 25px;

    min-height: 230px;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 14px;
}

.builder-tab-panel {
    display: none;
}

.builder-tab-panel.active {
    display: block;
}

.builder-coming {
    margin-top: 20px;
    padding: 22px;

    background: #f8fafc;

    border: 1px dashed #d0d5dd;
    border-radius: 10px;

    color: #667085;

    font-size: 10px;

    text-align: center;
}


/* RESPONSIVE */

@media (max-width: 850px) {

    .builder-theme-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .builder-color-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .builder-container {
        padding-top: 22px;
    }

    .builder-hero {
        padding: 28px 22px;
    }

    .builder-hero-badge {
        display: none;
    }

    .builder-form-grid,
    .builder-theme-grid {
        grid-template-columns: 1fr;
    }

    .builder-panel {
        padding: 18px;
    }

    .builder-workspace {
        padding: 19px;
    }

}

/* =========================================================
   SUMMARY JOURNAL BUILDER
========================================================= */

/* COMPONENT HEADER */

.builder-component-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
    padding-bottom: 18px;

    border-bottom: 1px solid #eaecf0;
}

.builder-component-header h2 {
    margin: 3px 0 0;

    color: #101828;
    font-size: 18px;
    line-height: 1.3;
}

.builder-component-header p {
    max-width: 620px;

    margin: 6px 0 0;

    color: #667085;
    font-size: 10px;
    line-height: 1.65;
}

.builder-component-badge {
    display: inline-flex;
    align-items: center;

    flex: 0 0 auto;

    padding: 7px 10px;

    background: #eff8ff;

    border: 1px solid #b2ddff;
    border-radius: 7px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .05em;
}


/* =========================================================
   SUMMARY GRID
========================================================= */

.summary-builder-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);

    gap: 18px;

    align-items: start;
}


/* =========================================================
   CONFIGURATION COLUMN
========================================================= */

.summary-config {
    padding: 20px;

    background: #f8fafc;

    border: 1px solid #eaecf0;
    border-radius: 12px;
}

.summary-block-heading {
    margin-bottom: 20px;
    padding-bottom: 15px;

    border-bottom: 1px solid #eaecf0;
}

.summary-block-heading > span {
    display: block;

    margin-bottom: 4px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}

.summary-block-heading h3 {
    margin: 0;

    color: #101828;

    font-size: 14px;
}

.summary-block-heading p {
    margin: 5px 0 0;

    color: #667085;

    font-size: 9px;
    line-height: 1.6;
}


/* =========================================================
   SUMMARY FIELDS
========================================================= */

.summary-field {
    margin-top: 16px;
}

.summary-field:first-of-type {
    margin-top: 0;
}

.summary-field > label {
    display: block;

    margin-bottom: 6px;

    color: #344054;

    font-size: 9px;
    font-weight: 700;
}

.summary-field input[type="text"],
.summary-field input[type="url"],
.summary-field input[type="email"],
.summary-field select,
.summary-field textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    outline: none;

    color: #101828;

    font-family: inherit;
    font-size: 10px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.summary-field textarea {
    min-height: 100px;

    resize: vertical;

    line-height: 1.6;
}

.summary-field select {
    cursor: pointer;
}

.summary-field input:focus,
.summary-field select:focus,
.summary-field textarea:focus {
    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .10);
}

.summary-field small {
    display: block;

    margin-top: 5px;

    color: #98a2b3;

    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   COVER UPLOAD
========================================================= */

.summary-cover-upload {
    position: relative;

    min-height: 92px;

    overflow: hidden;

    background: #ffffff;

    border: 1px dashed #b8c2d0;
    border-radius: 9px;
}

.summary-cover-upload:hover {
    border-color: #84adff;

    background: #f9fbff;
}

.summary-cover-upload input[type="file"] {
    position: absolute;
    z-index: 2;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}

.summary-upload-placeholder {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 15px;

    text-align: center;

    pointer-events: none;
}

.summary-upload-placeholder::before {
    content: "+";

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    margin-bottom: 7px;

    background: #eff8ff;

    border-radius: 50%;

    color: #175cd3;

    font-size: 17px;
    font-weight: 500;
}

.summary-upload-placeholder strong {
    color: #344054;

    font-size: 9px;
}

.summary-upload-placeholder span {
    margin-top: 3px;

    color: #98a2b3;

    font-size: 8px;
}


/* =========================================================
   CHECKBOX OPTIONS
========================================================= */

.summary-checkbox-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}

.summary-checkbox {
    display: flex;
    align-items: center;

    gap: 7px;

    padding: 9px 10px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 7px;

    cursor: pointer;
}

.summary-checkbox:hover {
    border-color: #b2ddff;
}

.summary-checkbox input {
    width: 14px;
    height: 14px;

    margin: 0;

    accent-color: #1570ef;
}

.summary-checkbox span {
    color: #475467;

    font-size: 8px;
    font-weight: 600;
}


/* =========================================================
   PREVIEW COLUMN
========================================================= */

.summary-preview-column {
    min-width: 0;
}

.summary-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;
}

.summary-preview-heading > div > span {
    display: block;

    margin-bottom: 2px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}

.summary-preview-heading > div > strong {
    display: block;

    color: #344054;

    font-size: 11px;
}

.summary-live-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    background: #ecfdf3;

    border: 1px solid #abefc6;
    border-radius: 999px;

    color: #027a48;

    font-size: 7px;
    font-weight: 800;
}

.summary-live-badge::before {
    content: "";

    width: 5px;
    height: 5px;

    background: #12b76a;

    border-radius: 50%;
}


/* =========================================================
   PREVIEW CANVAS
========================================================= */

.summary-preview-canvas {
    --summary-primary: #0066cc;
    --summary-secondary: #1c244b;
    --summary-background: #f8fafc;

    overflow: hidden;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    box-shadow:
        0 8px 24px
        rgba(16, 24, 40, .05);
}


/* PREVIEW TOP */

.summary-preview-top {
    display: grid;

    grid-template-columns: 112px minmax(0, 1fr);

    gap: 18px;

    align-items: start;
}


/* COVER */

.summary-preview-cover {
    width: 112px;
}

.summary-preview-cover-placeholder {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 112px;
    aspect-ratio: 3 / 4;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            var(--summary-secondary),
            var(--summary-primary)
        );

    border-radius: 7px;

    box-shadow:
        0 7px 18px
        rgba(16, 24, 40, .15);
}

.summary-preview-cover-placeholder::before {
    content: "";

    position: absolute;

    width: 90px;
    height: 90px;

    top: -32px;
    right: -32px;

    background:
        rgba(255, 255, 255, .10);

    border-radius: 50%;
}

.summary-preview-cover-placeholder span {
    position: relative;
    z-index: 2;

    padding: 8px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;

    text-align: center;
    word-break: break-word;
}

.summary-preview-cover-placeholder img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* JOURNAL INFORMATION */

.summary-preview-info {
    min-width: 0;

    padding-top: 3px;
}

.summary-preview-short {
    display: inline-flex;

    margin-bottom: 7px;
    padding: 4px 7px;

    background: var(--summary-primary);

    border-radius: 4px;

    color: #ffffff;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .06em;
}

.summary-preview-info h3 {
    margin: 0;

    color: var(--summary-secondary);

    font-size: 19px;
    line-height: 1.25;

    word-break: break-word;
}

.summary-preview-info > p {
    margin: 7px 0 12px;

    color: #667085;

    font-size: 9px;
    line-height: 1.5;
}

.summary-preview-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 6px;
}

.summary-preview-meta span {
    display: inline-flex;

    padding: 5px 7px;

    background: var(--summary-background);

    border: 1px solid #eaecf0;
    border-radius: 5px;

    color: #475467;

    font-size: 7px;
    font-weight: 600;
}


/* =========================================================
   PREVIEW CONTENT
========================================================= */

.summary-preview-section {
    margin-top: 20px;
    padding-top: 17px;

    border-top: 1px solid #eaecf0;
}

.summary-preview-label {
    display: block;

    margin-bottom: 7px;

    color: var(--summary-primary);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
}

.summary-preview-section p {
    margin: 0;

    color: #475467;

    font-size: 9px;
    line-height: 1.7;
}


/* TOPICS */

.summary-preview-topics {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;
}

.summary-preview-topics span {
    display: inline-flex;

    padding: 5px 8px;

    background: var(--summary-background);

    border: 1px solid #e4e7ec;
    border-radius: 999px;

    color: #475467;

    font-size: 7px;
    font-weight: 600;
}


/* EDITOR */

.summary-preview-editor {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 18px;
    padding: 10px 12px;

    background: var(--summary-background);

    border-left:
        3px solid
        var(--summary-primary);

    border-radius: 5px;
}

.summary-preview-editor span {
    color: #667085;

    font-size: 8px;
}

.summary-preview-editor strong {
    color: var(--summary-secondary);

    font-size: 8px;

    text-align: right;
}


/* =========================================================
   PREVIEW BUTTONS
========================================================= */

.summary-preview-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 18px;
}

.summary-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 0 11px;

    background: var(--summary-primary);

    border: 1px solid var(--summary-primary);
    border-radius: 6px;

    color: #ffffff;

    font-size: 7px;
    font-weight: 700;

    text-decoration: none;

    transition:
        transform .15s ease,
        opacity .15s ease;
}

.summary-preview-button:hover {
    opacity: .9;

    transform: translateY(-1px);
}

.summary-preview-button-light {
    background: #ffffff;

    color: var(--summary-primary);
}


/* =========================================================
   GENERATED CODE
========================================================= */

.summary-code-section {
    margin-top: 15px;

    overflow: hidden;

    background: #101828;

    border-radius: 10px;
}

.summary-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 15px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);
}

.summary-code-header > div > span {
    display: block;

    color: #84adff;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
}

.summary-code-header > div > strong {
    display: block;

    margin-top: 2px;

    color: #ffffff;

    font-size: 9px;
}

.summary-copy-button {
    padding: 7px 10px;

    background: #1570ef;

    border: 0;
    border-radius: 6px;

    color: #ffffff;

    font-family: inherit;
    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}

.summary-copy-button:hover:not(:disabled) {
    background: #175cd3;
}

.summary-copy-button:disabled {
    opacity: .45;

    cursor: not-allowed;
}

.summary-code-placeholder {
    min-height: 85px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px;

    text-align: center;
}

.summary-code-placeholder span {
    max-width: 320px;

    color: #98a2b3;

    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   SUMMARY INFORMATION
========================================================= */

.summary-information {
    margin-top: 18px;
    padding: 14px 16px;

    background: #eff8ff;

    border: 1px solid #b2ddff;
    border-radius: 8px;
}

.summary-information strong {
    display: block;

    color: #175cd3;

    font-size: 9px;
}

.summary-information p {
    margin: 5px 0 0;

    color: #475467;

    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .summary-builder-grid {
        grid-template-columns: 1fr;
    }

    .summary-preview-column {
        margin-top: 4px;
    }

}


@media (max-width: 650px) {

    .builder-component-header {
        flex-direction: column;
    }

    .summary-config,
    .summary-preview-canvas {
        padding: 16px;
    }

    .summary-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .summary-preview-top {
        grid-template-columns: 85px minmax(0, 1fr);

        gap: 13px;
    }

    .summary-preview-cover,
    .summary-preview-cover-placeholder {
        width: 85px;
    }

    .summary-preview-info h3 {
        font-size: 15px;
    }

    .summary-preview-editor {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-preview-editor strong {
        text-align: left;
    }

}


@media (max-width: 420px) {

    .summary-preview-top {
        grid-template-columns: 1fr;
    }

    .summary-preview-cover,
    .summary-preview-cover-placeholder {
        width: 105px;
    }

}

/* =========================================================
   SUMMARY CODE VIEWER
========================================================= */

.summary-code-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-code-format {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 9px;

    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 5px;

    color: #d0d5dd;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: .04em;
}


/* CODE AREA */

.summary-code-viewer {
    margin: 14px;

    overflow: hidden;

    background: #071426;

    border: 1px solid #344054;
    border-radius: 8px;
}

.summary-code-viewer pre {
    max-height: 330px;

    margin: 0;
    padding: 16px;

    overflow: auto;

    white-space: pre-wrap;
    word-break: break-word;

    scrollbar-width: thin;
}

.summary-code-viewer code {
    display: block;

    color: #67e8f9;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 9px;
    line-height: 1.7;

    tab-size: 4;
}


/* Scrollbar */

.summary-code-viewer pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.summary-code-viewer pre::-webkit-scrollbar-track {
    background: #101828;
}

.summary-code-viewer pre::-webkit-scrollbar-thumb {
    background: #475467;
    border-radius: 10px;
}

.summary-code-viewer pre::-webkit-scrollbar-thumb:hover {
    background: #667085;
}


/* HIDDEN COPY SOURCE */

.summary-generated-source {
    position: fixed !important;

    width: 1px !important;
    height: 1px !important;

    left: -9999px !important;
    top: -9999px !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* GUIDE */

.summary-code-guide {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 14px;
    padding: 12px 13px;

    background: rgba(255, 255, 255, .06);

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 7px;
}

.summary-code-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 19px;
    height: 19px;

    border: 1px solid #fdb022;
    border-radius: 50%;

    color: #fdb022;

    font-size: 10px;
    font-weight: 800;
}

.summary-code-guide strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 9px;
}

.summary-code-guide p {
    margin: 0;

    color: #d0d5dd;

    font-size: 8px;
    line-height: 1.6;
}


/* RESPONSIVE */

@media (max-width: 650px) {

    .summary-code-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-code-actions {
        width: 100%;
    }

    .summary-copy-button {
        margin-left: auto;
    }

    .summary-code-viewer pre {
        max-height: 260px;
    }

}

/* =========================================================
   SUMMARY COVER URL
========================================================= */

.summary-cover-divider {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 14px 0;
}

.summary-cover-divider::before,
.summary-cover-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e4e7ec;
}

.summary-cover-divider span {
    flex: 0 0 auto;

    padding: 0 9px;

    color: #98a2b3;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
}

.summary-cover-url-field {
    margin-top: 0;
}

/* =========================================================
   SIDEBAR MENU BUILDER
========================================================= */


/* =========================================================
   SIDEBAR GRID
========================================================= */

.sidebar-builder-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);

    gap: 18px;

    align-items: start;
}


/* =========================================================
   CONFIGURATION
========================================================= */

.sidebar-config {
    padding: 20px;

    background: #f8fafc;

    border: 1px solid #eaecf0;
    border-radius: 12px;
}


.sidebar-block-heading {
    margin-bottom: 20px;
    padding-bottom: 15px;

    border-bottom: 1px solid #eaecf0;
}


.sidebar-block-heading > span {
    display: block;

    margin-bottom: 4px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}


.sidebar-block-heading h3 {
    margin: 0;

    color: #101828;

    font-size: 14px;
}


.sidebar-block-heading p {
    margin: 5px 0 0;

    color: #667085;

    font-size: 9px;
    line-height: 1.6;
}


/* =========================================================
   SIDEBAR FIELDS
========================================================= */

.sidebar-field {
    margin-top: 16px;
}


.sidebar-field:first-of-type {
    margin-top: 0;
}


.sidebar-field > label {
    display: block;

    margin-bottom: 6px;

    color: #344054;

    font-size: 9px;
    font-weight: 700;
}


.sidebar-field input[type="text"],
.sidebar-field input[type="url"],
.sidebar-field select {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    outline: none;

    color: #101828;

    font-family: inherit;
    font-size: 10px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.sidebar-field input[type="text"]:focus,
.sidebar-field input[type="url"]:focus,
.sidebar-field select:focus {
    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .10);
}


.sidebar-field select {
    cursor: pointer;
}


/* =========================================================
   MENU OPTIONS
========================================================= */

.sidebar-menu-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;
}


.sidebar-checkbox {
    display: flex !important;
    align-items: center;

    gap: 7px;

    margin: 0 !important;
    padding: 9px 10px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 7px;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease;
}


.sidebar-checkbox:hover {
    background: #f9fbff;

    border-color: #b2ddff;
}


.sidebar-checkbox input {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    margin: 0;

    accent-color: #1570ef;
}


.sidebar-checkbox span {
    color: #475467;

    font-size: 8px;
    font-weight: 600;

    line-height: 1.35;
}


/* =========================================================
   PREVIEW COLUMN
========================================================= */

.sidebar-preview-column {
    min-width: 0;
}


.sidebar-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;
}


.sidebar-preview-heading > div > span {
    display: block;

    margin-bottom: 2px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}


.sidebar-preview-heading > div > strong {
    display: block;

    color: #344054;

    font-size: 11px;
}


.sidebar-live-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    background: #ecfdf3;

    border: 1px solid #abefc6;
    border-radius: 999px;

    color: #027a48;

    font-size: 7px;
    font-weight: 800;
}


.sidebar-live-badge::before {
    content: "";

    width: 5px;
    height: 5px;

    background: #12b76a;

    border-radius: 50%;
}


/* =========================================================
   PREVIEW CANVAS
========================================================= */

.sidebar-preview-canvas {
    --sidebar-primary: #0066cc;
    --sidebar-secondary: #1c244b;
    --sidebar-background: #f8fafc;

    min-height: 360px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    box-sizing: border-box;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #f1f5f9
        );

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    box-shadow:
        0 8px 24px
        rgba(16, 24, 40, .05);
}


/* =========================================================
   PREVIEW WIDGET
========================================================= */

.sidebar-preview-widget {
    width: 100%;
    max-width: 310px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 10px;

    box-shadow:
        0 8px 22px
        rgba(16, 24, 40, .08);
}


/* TITLE */

.sidebar-preview-title {
    position: relative;

    padding: 14px 16px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--sidebar-secondary),
            var(--sidebar-primary)
        );

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .03em;
}


.sidebar-preview-title::after {
    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    top: -42px;
    right: -28px;

    background:
        rgba(255, 255, 255, .10);

    border-radius: 50%;
}


/* =========================================================
   PREVIEW MENU
========================================================= */

.sidebar-preview-menu {
    display: block;

    padding: 7px 0;
}


.sidebar-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin: 0 7px;
    padding: 10px 10px;

    border-bottom: 1px solid #f2f4f7;

    color: #475467;

    font-size: 9px;
    font-weight: 600;

    line-height: 1.35;

    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;
}


.sidebar-preview-item:last-child {
    border-bottom: 0;
}


.sidebar-preview-item:hover {
    background: var(--sidebar-background);

    color: var(--sidebar-primary);

    transform: translateX(2px);
}


.sidebar-preview-item-label {
    min-width: 0;

    word-break: break-word;
}


.sidebar-preview-arrow {
    flex: 0 0 auto;

    color: var(--sidebar-primary);

    font-size: 13px;
    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   SIDEBAR STYLE : MINIMAL
========================================================= */

.sidebar-preview-widget.sidebar-style-minimal {
    border: 0;
    border-radius: 0;

    box-shadow: none;
}


.sidebar-preview-widget.sidebar-style-minimal
.sidebar-preview-title {
    padding: 10px 4px;

    background: transparent;

    border-bottom:
        2px solid
        var(--sidebar-primary);

    color: var(--sidebar-secondary);
}


.sidebar-preview-widget.sidebar-style-minimal
.sidebar-preview-title::after {
    display: none;
}


.sidebar-preview-widget.sidebar-style-minimal
.sidebar-preview-menu {
    padding: 4px 0;
}


.sidebar-preview-widget.sidebar-style-minimal
.sidebar-preview-item {
    margin: 0;
    padding-left: 4px;
    padding-right: 4px;
}


/* =========================================================
   SIDEBAR STYLE : SOLID
========================================================= */

.sidebar-preview-widget.sidebar-style-solid {
    background: var(--sidebar-secondary);

    border-color: var(--sidebar-secondary);
}


.sidebar-preview-widget.sidebar-style-solid
.sidebar-preview-title {
    background: var(--sidebar-primary);
}


.sidebar-preview-widget.sidebar-style-solid
.sidebar-preview-item {
    border-bottom-color:
        rgba(255, 255, 255, .09);

    color: #ffffff;
}


.sidebar-preview-widget.sidebar-style-solid
.sidebar-preview-item:hover {
    background:
        rgba(255, 255, 255, .07);

    color: #ffffff;
}


.sidebar-preview-widget.sidebar-style-solid
.sidebar-preview-arrow {
    color: #ffffff;
}


/* =========================================================
   GENERATED CODE
========================================================= */

.sidebar-code-section {
    margin-top: 15px;

    overflow: hidden;

    background: #101828;

    border-radius: 10px;
}


.sidebar-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 15px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);
}


.sidebar-code-header > div > span {
    display: block;

    color: #84adff;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
}


.sidebar-code-header > div > strong {
    display: block;

    margin-top: 2px;

    color: #ffffff;

    font-size: 9px;
}


.sidebar-code-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.sidebar-code-format {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 9px;

    background:
        rgba(255, 255, 255, .10);

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 5px;

    color: #d0d5dd;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: .04em;
}


.sidebar-copy-button {
    padding: 7px 10px;

    background: #1570ef;

    border: 0;
    border-radius: 6px;

    color: #ffffff;

    font-family: inherit;
    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}


.sidebar-copy-button:hover:not(:disabled) {
    background: #175cd3;
}


.sidebar-copy-button:disabled {
    opacity: .45;

    cursor: not-allowed;
}


/* =========================================================
   CODE VIEWER
========================================================= */

.sidebar-code-viewer {
    margin: 14px;

    overflow: hidden;

    background: #071426;

    border: 1px solid #344054;
    border-radius: 8px;
}


.sidebar-code-viewer pre {
    max-height: 330px;

    margin: 0;
    padding: 16px;

    overflow: auto;

    white-space: pre-wrap;
    word-break: break-word;

    scrollbar-width: thin;
}


.sidebar-code-viewer code {
    display: block;

    color: #67e8f9;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 9px;
    line-height: 1.7;

    tab-size: 4;
}


.sidebar-code-viewer pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


.sidebar-code-viewer pre::-webkit-scrollbar-track {
    background: #101828;
}


.sidebar-code-viewer pre::-webkit-scrollbar-thumb {
    background: #475467;

    border-radius: 10px;
}


/* =========================================================
   HIDDEN GENERATED SOURCE
========================================================= */

.sidebar-generated-source {
    position: fixed !important;

    width: 1px !important;
    height: 1px !important;

    left: -9999px !important;
    top: -9999px !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   INSTALLATION GUIDE
========================================================= */

.sidebar-code-guide {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 14px;
    padding: 12px 13px;

    background:
        rgba(255, 255, 255, .06);

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 7px;
}


.sidebar-code-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 19px;
    height: 19px;

    border: 1px solid #fdb022;
    border-radius: 50%;

    color: #fdb022;

    font-size: 10px;
    font-weight: 800;
}


.sidebar-code-guide strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 9px;
}


.sidebar-code-guide p {
    margin: 0;

    color: #d0d5dd;

    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   INFORMATION
========================================================= */

.sidebar-information {
    margin-top: 18px;
    padding: 14px 16px;

    background: #eff8ff;

    border: 1px solid #b2ddff;
    border-radius: 8px;
}


.sidebar-information strong {
    display: block;

    color: #175cd3;

    font-size: 9px;
}


.sidebar-information p {
    margin: 5px 0 0;

    color: #475467;

    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE SIDEBAR
========================================================= */

@media (max-width: 950px) {

    .sidebar-builder-grid {
        grid-template-columns: 1fr;
    }


    .sidebar-preview-column {
        margin-top: 4px;
    }

}


@media (max-width: 650px) {

    .sidebar-config,
    .sidebar-preview-canvas {
        padding: 16px;
    }


    .sidebar-menu-options {
        grid-template-columns: 1fr;
    }


    .sidebar-preview-canvas {
        min-height: 300px;
    }


    .sidebar-code-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .sidebar-code-actions {
        width: 100%;
    }


    .sidebar-copy-button {
        margin-left: auto;
    }


    .sidebar-code-viewer pre {
        max-height: 260px;
    }

}

/* =========================================================
   SIDEBAR CUSTOM URL
========================================================= */

.sidebar-custom-url {
    grid-column: 1 / -1;

    margin: -2px 0 4px;
    padding: 10px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 7px;
}


.sidebar-custom-url label {
    display: block;

    margin-bottom: 6px;

    color: #475467;

    font-size: 8px;
    font-weight: 700;
}


.sidebar-custom-url input {
    width: 100%;

    box-sizing: border-box;

    padding: 9px 10px;

    background: #f9fafb;

    border: 1px solid #d0d5dd;
    border-radius: 6px;

    outline: none;

    color: #101828;

    font-family: inherit;
    font-size: 9px;
}


.sidebar-custom-url input:focus {
    background: #ffffff;

    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .10);
}


.sidebar-custom-url small {
    display: block;

    margin-top: 5px;

    color: #98a2b3;

    font-size: 7px;
    line-height: 1.5;
}

/* =========================================================
   INDEXING LOGO BUILDER
========================================================= */


/* =========================================================
   INDEXING GRID
========================================================= */

.indexing-builder-grid {
    display: grid;

    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);

    gap: 18px;

    align-items: start;
}


/* =========================================================
   CONFIGURATION
========================================================= */

.indexing-config {
    padding: 20px;

    background: #f8fafc;

    border: 1px solid #eaecf0;
    border-radius: 12px;
}


.indexing-block-heading {
    margin-bottom: 20px;
    padding-bottom: 15px;

    border-bottom: 1px solid #eaecf0;
}


.indexing-block-heading > span {
    display: block;

    margin-bottom: 4px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}


.indexing-block-heading h3 {
    margin: 0;

    color: #101828;

    font-size: 14px;
}


.indexing-block-heading p {
    margin: 5px 0 0;

    color: #667085;

    font-size: 9px;
    line-height: 1.6;
}


/* =========================================================
   FIELDS
========================================================= */

.indexing-field {
    margin-top: 16px;
}


.indexing-field:first-of-type {
    margin-top: 0;
}


.indexing-field > label {
    display: block;

    margin-bottom: 6px;

    color: #344054;

    font-size: 9px;
    font-weight: 700;
}


.indexing-field > input[type="text"],
.indexing-field > input[type="url"],
.indexing-field > select {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    outline: none;

    color: #101828;

    font-family: inherit;
    font-size: 10px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.indexing-field > input:focus,
.indexing-field > select:focus {
    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .10);
}


.indexing-field > select {
    cursor: pointer;
}


/* =========================================================
   INDEXER LIST
========================================================= */

.indexing-list {
    display: grid;

    gap: 9px;
}


.indexing-item {
    padding: 11px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 8px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.indexing-item:hover {
    border-color: #b2ddff;
}


.indexing-checkbox {
    display: flex;
    align-items: center;

    gap: 7px;

    margin: 0 0 8px;

    cursor: pointer;
}


.indexing-checkbox input {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    margin: 0;

    accent-color: #1570ef;
}


.indexing-checkbox span {
    color: #344054;

    font-size: 9px;
    font-weight: 700;
}


.indexing-item > input[type="url"] {
    width: 100%;

    box-sizing: border-box;

    padding: 9px 10px;

    background: #f9fafb;

    border: 1px solid #d0d5dd;
    border-radius: 6px;

    outline: none;

    color: #101828;

    font-family: inherit;
    font-size: 8px;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


.indexing-item > input[type="url"]:focus {
    background: #ffffff;

    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .08);
}


/* Disabled URL when indexer unchecked */

.indexing-item.indexing-disabled {
    opacity: .62;
}


.indexing-item.indexing-disabled > input[type="url"] {
    background: #f2f4f7;

    cursor: not-allowed;
}


/* =========================================================
   GENERAL OPTION
========================================================= */

.indexing-option {
    display: flex !important;
    align-items: center;

    gap: 7px;

    margin: 0 !important;
    padding: 10px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 7px;

    cursor: pointer;
}


.indexing-option input {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    margin: 0;

    accent-color: #1570ef;
}


.indexing-option span {
    color: #475467;

    font-size: 8px;
    font-weight: 600;
}


/* =========================================================
   PREVIEW COLUMN
========================================================= */

.indexing-preview-column {
    min-width: 0;
}


.indexing-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;
}


.indexing-preview-heading > div > span {
    display: block;

    margin-bottom: 2px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}


.indexing-preview-heading > div > strong {
    display: block;

    color: #344054;

    font-size: 11px;
}


.indexing-live-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    background: #ecfdf3;

    border: 1px solid #abefc6;
    border-radius: 999px;

    color: #027a48;

    font-size: 7px;
    font-weight: 800;
}


.indexing-live-badge::before {
    content: "";

    width: 5px;
    height: 5px;

    background: #12b76a;

    border-radius: 50%;
}


/* =========================================================
   PREVIEW CANVAS
========================================================= */

.indexing-preview-canvas {
    --indexing-primary: #0066cc;
    --indexing-secondary: #1c244b;
    --indexing-background: #f8fafc;

    min-height: 360px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    box-sizing: border-box;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #f1f5f9
        );

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    box-shadow:
        0 8px 24px
        rgba(16, 24, 40, .05);
}


/* =========================================================
   PREVIEW WIDGET
========================================================= */

.indexing-preview-widget {
    width: 100%;
    max-width: 380px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 10px;

    box-shadow:
        0 8px 22px
        rgba(16, 24, 40, .08);
}


.indexing-preview-title {
    position: relative;

    padding: 14px 16px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            var(--indexing-secondary),
            var(--indexing-primary)
        );

    color: #ffffff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .03em;
}


.indexing-preview-title::after {
    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    top: -42px;
    right: -28px;

    background:
        rgba(255, 255, 255, .10);

    border-radius: 50%;
}


/* =========================================================
   LOGO LIST : GRID
========================================================= */

.indexing-preview-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 9px;

    padding: 13px;
}


.indexing-preview-logo {
    min-width: 0;
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 10px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 7px;

    color: #344054;

    text-decoration: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}


.indexing-preview-logo:hover {
    border-color:
        var(--indexing-primary);

    box-shadow:
        0 4px 12px
        rgba(16, 24, 40, .06);

    transform:
        translateY(-1px);
}


.indexing-preview-logo img {
    display: block;

    max-width: 100%;
    max-height: 44px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* Placeholder logo until JS loads actual logo */

.indexing-preview-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 36px;

    color: var(--indexing-secondary);

    font-size: 9px;
    font-weight: 800;

    text-align: center;
    line-height: 1.3;
}


/* =========================================================
   STYLE : LOGO + NAME
========================================================= */

.indexing-preview-widget.indexing-style-label
.indexing-preview-list {
    grid-template-columns: 1fr;
}


.indexing-preview-widget.indexing-style-label
.indexing-preview-logo {
    min-height: 58px;

    justify-content: flex-start;

    gap: 12px;
}


.indexing-preview-widget.indexing-style-label
.indexing-preview-logo img {
    width: 80px;
    max-width: 80px;
    max-height: 35px;
}


.indexing-preview-name {
    min-width: 0;

    color: #344054;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   STYLE : COMPACT
========================================================= */

.indexing-preview-widget.indexing-style-compact
.indexing-preview-list {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;
}


.indexing-preview-widget.indexing-style-compact
.indexing-preview-logo {
    width: auto;
    min-width: 70px;
    min-height: 45px;

    flex: 1 1 80px;

    padding: 7px;
}


.indexing-preview-widget.indexing-style-compact
.indexing-preview-logo img {
    max-height: 30px;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.indexing-preview-empty {
    grid-column: 1 / -1;

    padding: 25px 15px;

    color: #98a2b3;

    font-size: 9px;

    line-height: 1.6;
    text-align: center;
}


/* =========================================================
   GENERATED CODE
========================================================= */

.indexing-code-section {
    margin-top: 15px;

    overflow: hidden;

    background: #101828;

    border-radius: 10px;
}


.indexing-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 15px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);
}


.indexing-code-header > div > span {
    display: block;

    color: #84adff;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
}


.indexing-code-header > div > strong {
    display: block;

    margin-top: 2px;

    color: #ffffff;

    font-size: 9px;
}


.indexing-code-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.indexing-code-format {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 9px;

    background:
        rgba(255, 255, 255, .10);

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 5px;

    color: #d0d5dd;

    font-size: 7px;
    font-weight: 700;

    letter-spacing: .04em;
}


.indexing-copy-button {
    padding: 7px 10px;

    background: #1570ef;

    border: 0;
    border-radius: 6px;

    color: #ffffff;

    font-family: inherit;
    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}


.indexing-copy-button:hover:not(:disabled) {
    background: #175cd3;
}


.indexing-copy-button:disabled {
    opacity: .45;

    cursor: not-allowed;
}


/* =========================================================
   CODE VIEWER
========================================================= */

.indexing-code-viewer {
    margin: 14px;

    overflow: hidden;

    background: #071426;

    border: 1px solid #344054;
    border-radius: 8px;
}


.indexing-code-viewer pre {
    max-height: 330px;

    margin: 0;
    padding: 16px;

    overflow: auto;

    white-space: pre-wrap;
    word-break: break-word;

    scrollbar-width: thin;
}


.indexing-code-viewer code {
    display: block;

    color: #67e8f9;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 9px;
    line-height: 1.7;

    tab-size: 4;
}


.indexing-code-viewer pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


.indexing-code-viewer pre::-webkit-scrollbar-track {
    background: #101828;
}


.indexing-code-viewer pre::-webkit-scrollbar-thumb {
    background: #475467;

    border-radius: 10px;
}


.indexing-code-viewer pre::-webkit-scrollbar-thumb:hover {
    background: #667085;
}


/* =========================================================
   HIDDEN GENERATED SOURCE
========================================================= */

.indexing-generated-source {
    position: fixed !important;

    width: 1px !important;
    height: 1px !important;

    left: -9999px !important;
    top: -9999px !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   GUIDE
========================================================= */

.indexing-code-guide {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 14px;
    padding: 12px 13px;

    background:
        rgba(255, 255, 255, .06);

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 7px;
}


.indexing-code-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 19px;
    height: 19px;

    border: 1px solid #fdb022;
    border-radius: 50%;

    color: #fdb022;

    font-size: 10px;
    font-weight: 800;
}


.indexing-code-guide strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 9px;
}


.indexing-code-guide p {
    margin: 0;

    color: #d0d5dd;

    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   INFORMATION
========================================================= */

.indexing-information {
    margin-top: 18px;
    padding: 14px 16px;

    background: #eff8ff;

    border: 1px solid #b2ddff;
    border-radius: 8px;
}


.indexing-information strong {
    display: block;

    color: #175cd3;

    font-size: 9px;
}


.indexing-information p {
    margin: 5px 0 0;

    color: #475467;

    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .indexing-builder-grid {
        grid-template-columns: 1fr;
    }


    .indexing-preview-column {
        margin-top: 4px;
    }

}


@media (max-width: 650px) {

    .indexing-config,
    .indexing-preview-canvas {
        padding: 16px;
    }


    .indexing-preview-list {
        grid-template-columns: 1fr;
    }


    .indexing-preview-widget {
        max-width: 100%;
    }


    .indexing-code-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .indexing-code-actions {
        width: 100%;
    }


    .indexing-copy-button {
        margin-left: auto;
    }


    .indexing-code-viewer pre {
        max-height: 260px;
    }

}

/* =========================================================
   CUSTOM INDEXER
========================================================= */

.indexing-custom-item {
    position: relative;

    margin-top: 4px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );

    border-style: dashed;
    border-color: #b2ccff;
}


/* Custom badge */

.indexing-custom-item::before {
    content: "CUSTOM";

    position: absolute;

    top: 10px;
    right: 10px;

    padding: 3px 6px;

    background: #eff4ff;

    border: 1px solid #c7d7fe;
    border-radius: 4px;

    color: #3538cd;

    font-size: 6px;
    font-weight: 800;

    letter-spacing: .06em;
}


/* =========================================================
   CUSTOM FIELDS
========================================================= */

.indexing-custom-fields {
    display: grid;

    gap: 10px;

    margin-top: 10px;
    padding-top: 10px;

    border-top: 1px solid #eaecf0;

    transition:
        opacity .18s ease;
}


.indexing-custom-field {
    min-width: 0;
}


.indexing-custom-field > label {
    display: block;

    margin-bottom: 5px;

    color: #475467;

    font-size: 8px;
    font-weight: 700;
}


.indexing-custom-field > input {
    width: 100%;

    box-sizing: border-box;

    padding: 9px 10px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 6px;

    outline: none;

    color: #101828;

    font-family: inherit;
    font-size: 8px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.indexing-custom-field > input::placeholder {
    color: #98a2b3;
}


.indexing-custom-field > input:focus {
    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .08);
}


.indexing-custom-field > small {
    display: block;

    margin-top: 5px;

    color: #98a2b3;

    font-size: 7px;
    line-height: 1.5;
}


/* =========================================================
   CUSTOM DISABLED STATE
========================================================= */

.indexing-custom-item.indexing-disabled
.indexing-custom-fields {
    opacity: .55;
}


.indexing-custom-item.indexing-disabled
.indexing-custom-field > input {
    background: #f2f4f7;

    color: #98a2b3;

    cursor: not-allowed;
}


/* Jangan terlalu meredupkan checkbox */

.indexing-custom-item.indexing-disabled
.indexing-checkbox {
    opacity: 1;
}


.indexing-custom-item.indexing-disabled
.indexing-checkbox span {
    color: #344054;
}


/* =========================================================
   CUSTOM ACTIVE STATE
========================================================= */

.indexing-custom-item:not(.indexing-disabled) {
    border-style: solid;
    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .05);
}


.indexing-custom-item:not(.indexing-disabled)::before {
    background: #ecfdf3;

    border-color: #abefc6;

    color: #027a48;
}


/* =========================================================
   CUSTOM PREVIEW FALLBACK
========================================================= */

.indexing-preview-logo.indexing-preview-custom {
    position: relative;
}


.indexing-preview-logo.indexing-preview-custom::after {
    content: "CUSTOM";

    position: absolute;

    top: 4px;
    right: 4px;

    padding: 2px 4px;

    background: #f2f4f7;

    border-radius: 3px;

    color: #667085;

    font-size: 5px;
    font-weight: 800;

    letter-spacing: .04em;
}


/* =========================================================
   RESPONSIVE CUSTOM INDEXER
========================================================= */

@media (max-width: 650px) {

    .indexing-custom-item::before {
        position: static;

        display: inline-flex;

        margin: 0 0 9px;
    }


    .indexing-custom-fields {
        margin-top: 8px;
    }

}

/* =========================================================
   OJS FOOTER BUILDER
========================================================= */


/* =========================================================
   MAIN GRID
========================================================= */

.footer-builder-grid {
    display: grid;
    grid-template-columns:
        minmax(0, .85fr)
        minmax(0, 1.15fr);

    gap: 18px;
    align-items: start;
}


/* =========================================================
   CONFIGURATION
========================================================= */

.footer-config {
    padding: 20px;

    background: #f8fafc;

    border: 1px solid #eaecf0;
    border-radius: 12px;
}


.footer-block-heading {
    margin-bottom: 20px;
    padding-bottom: 15px;

    border-bottom: 1px solid #eaecf0;
}


.footer-block-heading > span {
    display: block;

    margin-bottom: 4px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}


.footer-block-heading h3 {
    margin: 0;

    color: #101828;

    font-size: 14px;
}


.footer-block-heading p {
    margin: 5px 0 0;

    color: #667085;

    font-size: 9px;
    line-height: 1.6;
}


/* =========================================================
   SETTING GROUP
========================================================= */

.footer-setting-group {
    margin-top: 14px;
    padding: 13px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 9px;
}


.footer-setting-title {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 11px;
}


.footer-setting-title > span {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 25px;

    width: 25px;
    height: 25px;

    background: #eff8ff;

    border: 1px solid #b2ddff;
    border-radius: 6px;

    color: #175cd3;

    font-size: 7px;
    font-weight: 800;
}


.footer-setting-title strong {
    display: block;

    color: #344054;

    font-size: 9px;
}


.footer-setting-title small {
    display: block;

    margin-top: 2px;

    color: #98a2b3;

    font-size: 7px;
}


/* =========================================================
   CHECKBOX OPTIONS
========================================================= */

.footer-options {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 7px;
}


.footer-link-options {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


.footer-checkbox {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    padding: 8px 9px;

    background: #f9fafb;

    border: 1px solid #eaecf0;
    border-radius: 6px;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease;
}


.footer-checkbox:hover {
    background: #ffffff;

    border-color: #b2ddff;
}


.footer-checkbox input {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    margin: 0;

    accent-color: #1570ef;
}


.footer-checkbox span {
    min-width: 0;

    color: #475467;

    font-size: 8px;
    font-weight: 600;
}


/* =========================================================
   NORMAL FIELDS
========================================================= */

.footer-field {
    margin-top: 14px;
}


.footer-field > label:not(.footer-option) {
    display: block;

    margin-bottom: 6px;

    color: #344054;

    font-size: 9px;
    font-weight: 700;
}


.footer-field > input[type="text"],
.footer-field > select {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 11px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 8px;

    outline: none;

    color: #101828;

    font-family: inherit;
    font-size: 9px;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}


.footer-field > input[type="text"]:focus,
.footer-field > select:focus {
    border-color: #84adff;

    box-shadow:
        0 0 0 3px
        rgba(46, 144, 250, .09);
}


.footer-field > select {
    cursor: pointer;
}


.footer-field > small {
    display: block;

    margin-top: 5px;

    color: #98a2b3;

    font-size: 7px;
    line-height: 1.5;
}


/* =========================================================
   SINGLE OPTION
========================================================= */

.footer-option {
    display: flex !important;
    align-items: center;

    gap: 7px;

    margin: 0 !important;
    padding: 10px;

    background: #ffffff;

    border: 1px solid #eaecf0;
    border-radius: 7px;

    cursor: pointer;
}


.footer-option:hover {
    border-color: #b2ddff;
}


.footer-option input {
    width: 14px;
    height: 14px;

    flex: 0 0 14px;

    margin: 0;

    accent-color: #1570ef;
}


.footer-option span {
    color: #475467;

    font-size: 8px;
    font-weight: 600;
}


/* =========================================================
   PREVIEW COLUMN
========================================================= */

.footer-preview-column {
    min-width: 0;
}


.footer-preview-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;
}


.footer-preview-heading > div > span {
    display: block;

    margin-bottom: 2px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}


.footer-preview-heading > div > strong {
    display: block;

    color: #344054;

    font-size: 11px;
}


.footer-live-badge {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    background: #ecfdf3;

    border: 1px solid #abefc6;
    border-radius: 999px;

    color: #027a48;

    font-size: 7px;
    font-weight: 800;
}


.footer-live-badge::before {
    content: "";

    width: 5px;
    height: 5px;

    background: #12b76a;

    border-radius: 50%;
}


/* =========================================================
   PREVIEW CANVAS
========================================================= */

.footer-preview-canvas {
    --footer-primary: #0066cc;
    --footer-secondary: #1c244b;
    --footer-background: #f8fafc;

    min-height: 390px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f6
        );

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    box-shadow:
        0 8px 24px
        rgba(16, 24, 40, .05);
}


/* =========================================================
   FOOTER PREVIEW COMPONENT
========================================================= */

.footer-preview-component {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 10px;

    box-shadow:
        0 10px 30px
        rgba(16, 24, 40, .10);
}


/* Accent line */

.footer-preview-component.footer-show-top-line::before {
    content: "";

    display: block;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--footer-primary),
            var(--footer-secondary)
        );
}


/* =========================================================
   FOOTER MAIN CONTENT
========================================================= */

.footer-preview-main {
    display: grid;

    grid-template-columns:
        1.25fr 1fr .85fr;

    gap: 22px;

    padding: 23px;
}


.footer-preview-section {
    min-width: 0;
}


/* =========================================================
   JOURNAL INFORMATION
========================================================= */

.footer-preview-journal-name {
    color: var(--footer-secondary);

    font-size: 13px;
    font-weight: 800;

    line-height: 1.4;
}


.footer-preview-publisher {
    margin-top: 7px;

    color: #475467;

    font-size: 8px;
    font-weight: 600;

    line-height: 1.5;
}


.footer-preview-issn {
    margin-top: 9px;

    color: #667085;

    font-size: 7px;
    line-height: 1.6;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.footer-preview-section-title {
    position: relative;

    margin-bottom: 10px;
    padding-bottom: 7px;

    color: var(--footer-secondary);

    font-size: 9px;
    font-weight: 800;
}


.footer-preview-section-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 25px;
    height: 2px;

    background: var(--footer-primary);

    border-radius: 999px;
}


/* =========================================================
   CONTACT
========================================================= */

.footer-preview-contact {
    display: grid;

    gap: 7px;
}


.footer-preview-contact-item {
    display: flex;
    align-items: flex-start;

    gap: 6px;

    color: #667085;

    font-size: 7px;
    line-height: 1.5;

    word-break: break-word;
}


.footer-preview-contact-icon {
    flex: 0 0 auto;

    color: var(--footer-primary);

    font-size: 8px;
    font-weight: 800;
}


/* =========================================================
   QUICK LINKS
========================================================= */

.footer-preview-links {
    display: grid;

    gap: 5px;
}


.footer-preview-link {
    display: flex;
    align-items: center;

    gap: 6px;

    color: #667085;

    font-size: 7px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color .18s ease,
        transform .18s ease;
}


.footer-preview-link::before {
    content: "›";

    color: var(--footer-primary);

    font-size: 11px;
    font-weight: 800;
}


.footer-preview-link:hover {
    color: var(--footer-primary);

    transform: translateX(2px);
}


/* =========================================================
   COPYRIGHT
========================================================= */

.footer-preview-bottom {
    padding: 11px 23px;

    background: #f8fafc;

    border-top: 1px solid #eaecf0;

    color: #667085;

    font-size: 7px;

    text-align: center;
    line-height: 1.5;
}


/* =========================================================
   STYLE : MINIMAL
========================================================= */

.footer-preview-component.footer-style-minimal {
    box-shadow: none;

    border-radius: 4px;
}


.footer-preview-component.footer-style-minimal
.footer-preview-main {
    padding: 20px;
}


.footer-preview-component.footer-style-minimal
.footer-preview-bottom {
    background: #ffffff;
}


.footer-preview-component.footer-style-minimal
.footer-preview-section-title::after {
    display: none;
}


.footer-preview-component.footer-style-minimal
.footer-preview-section-title {
    padding-bottom: 0;
}


/* =========================================================
   STYLE : SOLID
========================================================= */

.footer-preview-component.footer-style-solid {
    background: var(--footer-secondary);

    border-color: var(--footer-secondary);
}


.footer-preview-component.footer-style-solid
.footer-preview-main {
    background: var(--footer-secondary);
}


.footer-preview-component.footer-style-solid
.footer-preview-journal-name,

.footer-preview-component.footer-style-solid
.footer-preview-section-title {
    color: #ffffff;
}


.footer-preview-component.footer-style-solid
.footer-preview-publisher,

.footer-preview-component.footer-style-solid
.footer-preview-issn,

.footer-preview-component.footer-style-solid
.footer-preview-contact-item,

.footer-preview-component.footer-style-solid
.footer-preview-link {
    color: rgba(255, 255, 255, .72);
}


.footer-preview-component.footer-style-solid
.footer-preview-link:hover {
    color: #ffffff;
}


.footer-preview-component.footer-style-solid
.footer-preview-section-title::after {
    background: var(--footer-primary);
}


.footer-preview-component.footer-style-solid
.footer-preview-contact-icon,

.footer-preview-component.footer-style-solid
.footer-preview-link::before {
    color: var(--footer-primary);
}


.footer-preview-component.footer-style-solid
.footer-preview-bottom {
    background:
        rgba(0, 0, 0, .15);

    border-top-color:
        rgba(255, 255, 255, .10);

    color:
        rgba(255, 255, 255, .65);
}


/* =========================================================
   GENERATED CODE SECTION
========================================================= */

.footer-code-section {
    margin-top: 15px;

    overflow: hidden;

    background: #101828;

    border-radius: 10px;
}


.footer-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 15px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);
}


.footer-code-header > div > span {
    display: block;

    color: #84adff;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
}


.footer-code-header > div > strong {
    display: block;

    margin-top: 2px;

    color: #ffffff;

    font-size: 9px;
}


.footer-code-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.footer-code-format {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 6px 9px;

    background:
        rgba(255, 255, 255, .10);

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 5px;

    color: #d0d5dd;

    font-size: 7px;
    font-weight: 700;
}


.footer-copy-button {
    padding: 7px 10px;

    background: #1570ef;

    border: 0;
    border-radius: 6px;

    color: #ffffff;

    font-family: inherit;
    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}


.footer-copy-button:hover:not(:disabled) {
    background: #175cd3;
}


.footer-copy-button:disabled {
    opacity: .45;

    cursor: not-allowed;
}


/* =========================================================
   CODE VIEWER
========================================================= */

.footer-code-viewer {
    margin: 14px;

    overflow: hidden;

    background: #071426;

    border: 1px solid #344054;
    border-radius: 8px;
}


.footer-code-viewer pre {
    max-height: 330px;

    margin: 0;
    padding: 16px;

    overflow: auto;

    white-space: pre-wrap;
    word-break: break-word;

    scrollbar-width: thin;
}


.footer-code-viewer code {
    display: block;

    color: #67e8f9;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 9px;
    line-height: 1.7;

    tab-size: 4;
}


.footer-code-viewer pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


.footer-code-viewer pre::-webkit-scrollbar-track {
    background: #101828;
}


.footer-code-viewer pre::-webkit-scrollbar-thumb {
    background: #475467;

    border-radius: 10px;
}


/* =========================================================
   HIDDEN GENERATED SOURCE
========================================================= */

.footer-generated-source {
    position: fixed !important;

    width: 1px !important;
    height: 1px !important;

    left: -9999px !important;
    top: -9999px !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   INSTALLATION GUIDE
========================================================= */

.footer-code-guide {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin: 14px;
    padding: 12px 13px;

    background:
        rgba(255, 255, 255, .06);

    border:
        1px solid
        rgba(255, 255, 255, .10);

    border-radius: 7px;
}


.footer-code-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    width: 19px;
    height: 19px;

    border: 1px solid #fdb022;
    border-radius: 50%;

    color: #fdb022;

    font-size: 10px;
    font-weight: 800;
}


.footer-code-guide strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 9px;
}


.footer-code-guide p {
    margin: 0;

    color: #d0d5dd;

    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   INFORMATION
========================================================= */

.footer-information {
    margin-top: 18px;
    padding: 14px 16px;

    background: #eff8ff;

    border: 1px solid #b2ddff;
    border-radius: 8px;
}


.footer-information strong {
    display: block;

    color: #175cd3;

    font-size: 9px;
}


.footer-information p {
    margin: 5px 0 0;

    color: #475467;

    font-size: 8px;
    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .footer-builder-grid {
        grid-template-columns: 1fr;
    }


    .footer-preview-column {
        margin-top: 4px;
    }

}


@media (max-width: 700px) {

    .footer-preview-main {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .footer-preview-canvas {
        min-height: auto;
    }

}


@media (max-width: 650px) {

    .footer-config,
    .footer-preview-canvas {
        padding: 16px;
    }


    .footer-options,
    .footer-link-options {
        grid-template-columns: 1fr;
    }


    .footer-code-header {
        align-items: flex-start;
        flex-direction: column;
    }


    .footer-code-actions {
        width: 100%;
    }


    .footer-copy-button {
        margin-left: auto;
    }


    .footer-code-viewer pre {
        max-height: 260px;
    }


    .footer-preview-main {
        padding: 18px;
    }


    .footer-preview-bottom {
        padding:
            11px 18px;
    }

}
/* =========================================================
   CUSTOM CSS BUILDER
========================================================= */


/* =========================================================
   MAIN GRID
========================================================= */

.custom-css-builder-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 18px;

    align-items: start;
}


/* =========================================================
   EDITOR COLUMN
========================================================= */

.custom-css-editor-column,
.custom-css-preview-column {
    min-width: 0;
}


/* =========================================================
   EDITOR HEADER
========================================================= */

.custom-css-editor-header,
.custom-css-preview-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 10px;
}


.custom-css-editor-header > div:first-child > span,
.custom-css-preview-heading > div > span {
    display: block;

    margin-bottom: 3px;

    color: #175cd3;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .08em;
}


.custom-css-editor-header > div:first-child > strong,
.custom-css-preview-heading > div > strong {
    display: block;

    color: #344054;

    font-size: 11px;
}


/* =========================================================
   EDITOR ACTION
========================================================= */

.custom-css-actions {
    display: flex;

    align-items: center;

    gap: 7px;
}


.custom-css-clear-button {
    padding: 7px 10px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 6px;

    color: #475467;

    font-family: inherit;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .18s ease,
        border-color .18s ease;
}


.custom-css-clear-button:hover {
    background: #f9fafb;

    border-color: #98a2b3;
}


/* =========================================================
   CODE EDITOR
========================================================= */

.custom-css-editor {
    overflow: hidden;

    background: #071426;

    border: 1px solid #344054;
    border-radius: 10px;

    box-shadow:
        0 8px 20px
        rgba(16, 24, 40, .08);
}


.custom-css-editor::before {
    content: "CSS";

    display: block;

    padding: 8px 12px;

    background: #101828;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);

    color: #84adff;

    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
}


.custom-css-editor textarea {
    display: block;

    width: 100%;
    min-height: 365px;

    box-sizing: border-box;

    padding: 17px;

    resize: vertical;

    background: #071426;

    border: 0;
    outline: 0;

    color: #d1f7ff;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 10px;
    line-height: 1.75;

    tab-size: 4;

    caret-color: #67e8f9;
}


.custom-css-editor textarea::placeholder {
    color: #667085;

    opacity: .9;
}


.custom-css-editor textarea:focus {
    box-shadow:
        inset 0 0 0 1px
        rgba(132, 173, 255, .35);
}


/* =========================================================
   SNIPPETS
========================================================= */

.custom-css-snippets {
    margin-top: 10px;

    padding: 11px 12px;

    background: #f8fafc;

    border: 1px solid #eaecf0;
    border-radius: 8px;
}


.custom-css-snippets-title {
    margin-bottom: 8px;

    color: #475467;

    font-size: 8px;
    font-weight: 800;
}


.custom-css-snippets-list {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}


.custom-css-snippet {
    padding: 6px 8px;

    background: #ffffff;

    border: 1px solid #d0d5dd;
    border-radius: 5px;

    color: #475467;

    font-family: inherit;

    font-size: 7px;
    font-weight: 700;

    cursor: pointer;

    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease;
}


.custom-css-snippet:hover {
    background: #eff8ff;

    border-color: #84adff;

    color: #175cd3;
}


/* =========================================================
   EDITOR INFORMATION
========================================================= */

.custom-css-editor-info {
    display: flex;

    align-items: flex-start;

    gap: 9px;

    margin-top: 10px;

    padding: 11px 12px;

    background: #eff8ff;

    border: 1px solid #b2ddff;
    border-radius: 7px;
}


.custom-css-editor-info > span {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 19px;

    width: 19px;
    height: 19px;

    background: #ffffff;

    border: 1px solid #b2ddff;
    border-radius: 50%;

    color: #175cd3;

    font-size: 7px;
    font-weight: 800;
}


.custom-css-editor-info p {
    margin: 2px 0 0;

    color: #475467;

    font-size: 8px;

    line-height: 1.6;
}


/* =========================================================
   LIVE BADGE
========================================================= */

.custom-css-live-badge {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 5px 8px;

    background: #ecfdf3;

    border: 1px solid #abefc6;
    border-radius: 999px;

    color: #027a48;

    font-size: 7px;
    font-weight: 800;
}


.custom-css-live-badge::before {
    content: "";

    width: 5px;
    height: 5px;

    background: #12b76a;

    border-radius: 50%;
}


/* =========================================================
   PREVIEW CANVAS
========================================================= */

.custom-css-preview-canvas {
    --custom-css-primary: #0066cc;
    --custom-css-secondary: #1c244b;

    min-height: 430px;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            #f8fafc,
            #eef2f6
        );

    border: 1px solid #e4e7ec;
    border-radius: 12px;

    box-shadow:
        0 8px 24px
        rgba(16, 24, 40, .05);
}


/* =========================================================
   DEMO CARD
========================================================= */

.custom-css-demo-card {
    position: relative;

    width: 100%;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4e7ec;
    border-radius: 10px;

    box-shadow:
        0 10px 30px
        rgba(16, 24, 40, .10);

    transition:
        all .2s ease;
}


.custom-css-demo-accent {
    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            var(--custom-css-primary),
            var(--custom-css-secondary)
        );
}


.custom-css-demo-content {
    padding: 26px;
}


.custom-css-demo-label {
    display: inline-block;

    margin-bottom: 8px;

    color: var(--custom-css-primary);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .10em;
}


.custom-css-demo-content h3 {
    margin: 0;

    color: var(--custom-css-secondary);

    font-size: 19px;

    line-height: 1.4;
}


.custom-css-demo-content p {
    margin: 10px 0 17px;

    color: #667085;

    font-size: 9px;

    line-height: 1.7;
}


.custom-css-demo-content a {
    display: inline-flex;

    padding: 8px 12px;

    background:
        var(--custom-css-primary);

    border-radius: 6px;

    color: #ffffff;

    font-size: 8px;
    font-weight: 700;

    text-decoration: none;

    transition:
        opacity .18s ease,
        transform .18s ease;
}


.custom-css-demo-content a:hover {
    opacity: .9;

    transform:
        translateY(-1px);
}


/* =========================================================
   GENERATED CODE
========================================================= */

.custom-css-code-section {
    margin-top: 15px;

    overflow: hidden;

    background: #101828;

    border-radius: 10px;
}


.custom-css-code-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    padding: 13px 15px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, .08);
}


.custom-css-code-header > div:first-child > span {
    display: block;

    color: #84adff;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .08em;
}


.custom-css-code-header > div:first-child > strong {
    display: block;

    margin-top: 2px;

    color: #ffffff;

    font-size: 9px;
}


.custom-css-code-actions {
    display: flex;

    align-items: center;

    gap: 8px;
}


.custom-css-code-format {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 6px 9px;

    background:
        rgba(255, 255, 255, .10);

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 5px;

    color: #d0d5dd;

    font-size: 7px;
    font-weight: 700;
}


.custom-css-copy-button {
    padding: 7px 10px;

    background: #1570ef;

    border: 0;
    border-radius: 6px;

    color: #ffffff;

    font-family: inherit;

    font-size: 8px;
    font-weight: 700;

    cursor: pointer;
}


.custom-css-copy-button:hover:not(:disabled) {
    background: #175cd3;
}


.custom-css-copy-button:disabled {
    opacity: .45;

    cursor: not-allowed;
}


/* =========================================================
   CODE VIEWER
========================================================= */

.custom-css-code-viewer {
    margin: 14px;

    overflow: hidden;

    background: #071426;

    border: 1px solid #344054;
    border-radius: 8px;
}


.custom-css-code-viewer pre {
    max-height: 300px;

    margin: 0;
    padding: 16px;

    overflow: auto;

    white-space: pre-wrap;
    word-break: break-word;

    scrollbar-width: thin;
}


.custom-css-code-viewer code {
    display: block;

    color: #67e8f9;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        Menlo,
        monospace;

    font-size: 9px;

    line-height: 1.7;
}


.custom-css-code-viewer pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}


.custom-css-code-viewer pre::-webkit-scrollbar-track {
    background: #101828;
}


.custom-css-code-viewer pre::-webkit-scrollbar-thumb {
    background: #475467;

    border-radius: 10px;
}


/* =========================================================
   HIDDEN SOURCE
========================================================= */

.custom-css-generated-source {
    position: fixed !important;

    width: 1px !important;
    height: 1px !important;

    left: -9999px !important;
    top: -9999px !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* =========================================================
   INFORMATION
========================================================= */

.custom-css-information {
    margin-top: 18px;

    padding: 14px 16px;

    background: #f9f5ff;

    border: 1px solid #d6bbfb;
    border-radius: 8px;
}


.custom-css-information strong {
    display: block;

    color: #6941c6;

    font-size: 9px;
}


.custom-css-information p {
    margin: 5px 0 0;

    color: #475467;

    font-size: 8px;

    line-height: 1.6;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    .custom-css-builder-grid {
        grid-template-columns: 1fr;
    }


    .custom-css-preview-column {
        margin-top: 4px;
    }

}


@media (max-width: 650px) {

    .custom-css-editor-header,
    .custom-css-preview-heading,
    .custom-css-code-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .custom-css-actions,
    .custom-css-code-actions {
        width: 100%;
    }


    .custom-css-clear-button,
    .custom-css-copy-button {
        margin-left: auto;
    }


    .custom-css-editor textarea {
        min-height: 300px;

        font-size: 9px;
    }


    .custom-css-preview-canvas {
        min-height: 330px;

        padding: 16px;
    }


    .custom-css-demo-content {
        padding: 20px;
    }


    .custom-css-snippets-list {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}