/* Public storefront copy editor. It deliberately uses the existing admin tokens so it remains readable in light and dark themes. */
body.admin-surface .storefront-content-studio {
    max-width: 1500px;
}

body.admin-surface .storefront-content-heading,
body.admin-surface .storefront-content-links,
body.admin-surface .storefront-content-language,
body.admin-surface .storefront-content-language > div,
body.admin-surface .storefront-content-actions,
body.admin-surface .storefront-content-restore {
    display: flex;
    align-items: center;
}

body.admin-surface .storefront-content-heading {
    justify-content: space-between;
    gap: 16px;
}

body.admin-surface .storefront-content-heading p:not(.eyebrow) {
    max-width: 760px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

body.admin-surface .storefront-content-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

body.admin-surface .storefront-content-language,
body.admin-surface .storefront-content-note,
body.admin-surface .storefront-content-restore {
    margin-top: 16px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}

body.admin-surface .storefront-content-language {
    flex-wrap: wrap;
    gap: 10px;
}

body.admin-surface .storefront-content-language > span,
body.admin-surface .storefront-content-language small {
    color: var(--muted);
    font-size: 10px;
}

body.admin-surface .storefront-content-language > span {
    font-weight: 800;
    color: var(--ink);
}

body.admin-surface .storefront-content-language > div {
    gap: 5px;
}

body.admin-surface .storefront-content-language a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

body.admin-surface .storefront-content-language a:hover,
body.admin-surface .storefront-content-language a.active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand);
}

body.admin-surface .storefront-content-language small {
    margin-left: auto;
}

body.admin-surface .storefront-content-note {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    align-items: start;
    border-left: 4px solid var(--brand);
    background: color-mix(in srgb, var(--brand) 6%, var(--paper));
}

body.admin-surface .storefront-content-note .ui-icon {
    width: 18px;
    height: 18px;
    color: var(--brand);
}

body.admin-surface .storefront-content-note p,
body.admin-surface .storefront-content-restore small,
body.admin-surface .storefront-content-actions p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

body.admin-surface .storefront-content-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

body.admin-surface .storefront-content-section {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

body.admin-surface .storefront-content-section legend {
    margin-left: 14px;
    padding: 0 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
}

body.admin-surface .storefront-content-fields {
    display: grid;
    gap: 12px;
    padding: 10px 15px 16px;
}

body.admin-surface .storefront-content-field {
    display: grid;
    gap: 5px;
}

body.admin-surface .storefront-content-field > span {
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
}

body.admin-surface .storefront-content-field i {
    color: var(--danger);
    font-style: normal;
}

body.admin-surface .storefront-content-field small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

body.admin-surface .storefront-content-field textarea {
    width: 100%;
    min-height: 40px;
    resize: vertical;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--paper);
    color: var(--ink);
    font: 500 11px/1.5 inherit;
}

body.admin-surface .storefront-content-field textarea:focus {
    outline: 2px solid color-mix(in srgb, var(--brand) 32%, transparent);
    outline-offset: 1px;
    border-color: var(--brand);
}

body.admin-surface .storefront-content-field .field-validation-error {
    color: var(--danger);
    font-size: 9px;
    font-style: normal;
}

body.admin-surface .storefront-content-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
}

body.admin-surface .storefront-content-actions p {
    max-width: 650px;
}

body.admin-surface .storefront-content-actions .button {
    white-space: nowrap;
}

body.admin-surface .storefront-content-restore {
    justify-content: space-between;
    gap: 16px;
}

body.admin-surface .storefront-content-restore > div {
    display: grid;
    gap: 4px;
}

body.admin-surface .storefront-content-restore b {
    color: var(--ink);
    font-size: 11px;
}

body.marketplace-surface .market-page-heading-copy {
    max-width: 620px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 900px) {
    body.admin-surface .storefront-content-form {
        grid-template-columns: 1fr;
    }

    body.admin-surface .storefront-content-heading,
    body.admin-surface .storefront-content-actions,
    body.admin-surface .storefront-content-restore {
        align-items: flex-start;
        flex-direction: column;
    }

    body.admin-surface .storefront-content-links,
    body.admin-surface .storefront-content-actions .button,
    body.admin-surface .storefront-content-restore .danger-action {
        width: 100%;
    }

    body.admin-surface .storefront-content-links > *,
    body.admin-surface .storefront-content-actions .button,
    body.admin-surface .storefront-content-restore .danger-action {
        justify-content: center;
        text-align: center;
    }

    body.admin-surface .storefront-content-language small {
        width: 100%;
        margin-left: 0;
    }
}
