/* ==========================================================================
   Shopify Code Library — Frontend Styles  v4.2.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   Live Preview  [scl_preview id="…"]
   -------------------------------------------------------------------------- */

.scl-preview {
    width: 100%;
    margin: 24px 0;
    border: 1px solid #d4dfc9;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.scl-preview-label {
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5e8e3e;
    background: #f6f9f2;
    border-bottom: 1px solid #d4dfc9;
    user-select: none;
}

.scl-preview-frame {
    display: block;
    width: 100%;
    min-height: 40px;
    height: 40px;          /* overridden dynamically via postMessage */
    border: 0;
    background: #fff;
    overflow: hidden;
    transition: height 0.12s ease;
}

/* --------------------------------------------------------------------------
   Code Display  [scl_code id="…"]
   -------------------------------------------------------------------------- */

.scl-code-box {
    width: 100%;
    margin: 24px 0;
    background: #000;
    border: 1px solid #222;
    overflow: hidden;
    box-sizing: border-box;
}

.scl-code-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: #111;
    border-bottom: 1px solid #2b2b2b;
}

.scl-code-toolbar strong {
    font-size: 11px;
    font-weight: 700;
    color: #95bf47;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.scl-copy-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    padding: 7px 13px;
    background: #95bf47;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    transition: opacity 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.scl-copy-btn:hover {
    opacity: 0.82;
}

.scl-copy-btn.scl-copied {
    background: #fff;
    color: #000;
    opacity: 1;
}

.scl-code-box pre {
    margin: 0 !important;
    padding: 18px 20px !important;
    background: #000 !important;
    color: #fff !important;
    white-space: pre !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco,
                 Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 13.5px !important;
    line-height: 1.7 !important;
    -webkit-text-size-adjust: 100%;
    tab-size: 2;
}

.scl-code-box pre code {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font: inherit !important;
    white-space: inherit !important;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */

.scl-empty {
    padding: 14px 16px;
    border: 1px solid #ddd;
    color: #777;
    font-size: 14px;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 600px) {
    .scl-preview-label,
    .scl-code-toolbar strong {
        font-size: 10px;
    }

    .scl-code-toolbar {
        padding: 10px 12px;
    }

    .scl-code-box pre {
        padding: 14px 14px !important;
        font-size: 12px !important;
    }

    .scl-copy-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}
