/* Shop editor — only rules the snapshot/mods editor shell cannot express. */

.sc-shop-editor-toast-slot {
    position: relative;
    flex-shrink: 0;
    height: 0;
    z-index: 5;
    pointer-events: none;
}

.sc-shop-editor-toast-slot:empty {
    display: none;
}

.sc-shop-editor .sc-toast--inset {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 10px;
    z-index: 2;
    width: auto;
    max-width: none;
    min-height: 0;
    margin: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: none;
    opacity: 0;
    transition: opacity 200ms ease;
    pointer-events: auto;
}

.sc-shop-editor .sc-toast--inset.is-visible {
    transform: none;
    opacity: 1;
}

.sc-shop-editor .sc-toast--inset.sc-toast--compact {
    padding: 12px 10px;
    gap: 8px;
    min-height: 0;
}

.sc-shop-editor .sc-toast--inset .sc-toast__title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.sc-shop-editor .sc-toast--inset.sc-toast--compact .sc-toast__icon {
    width: 14px;
    height: 14px;
}

.sc-shop-editor .sc-toast--inset .sc-toast__progress {
    display: none;
}

/* Info-pane snapshot fields (identity, contact, hours, socials) — not menu rows. */
.sc-shop-editor .sc-snapshot-field__input,
.sc-shop-editor .sc-snap-select__el {
    border-radius: 4px;
    padding: 4px 6px;
}

@media (min-width: 480px) {
    .sc-shop-editor .sc-snapshot-field__input,
    .sc-shop-editor .sc-snap-select__el {
        padding: 6px 8px;
    }

    .sc-shop-editor [data-shop-group="contact"] .sc-snapshot-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sc-shop-editor [data-shop-group="contact"] .sc-snapshot-field--full {
        grid-column: 1 / -1;
    }
}

/* Header already has a bottom rule — avoid a second line on the first pane block. */
.sc-shop-editor .sc-snap-group {
    border-top: 0;
    margin-bottom: 12px;
    padding-top: 8px;
}

.sc-shop-editor .sc-snap-group[data-shop-group="hours"]:not([hidden]) {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
}

@media (min-width: 480px) {
    .sc-shop-editor .sc-snap-group {
        padding-top: 10px;
        margin-bottom: 16px;
    }

    .sc-shop-editor .sc-snap-group[data-shop-group="hours"]:not([hidden]) {
        padding-top: 16px;
    }
}

.sc-shop-editor .sc-shop-editor-hours-time select {
    font-variant-numeric: tabular-nums;
    color-scheme: dark;
}

.sc-shop-editor-box__actions {
    gap: 0;
}

.sc-shop-editor-menu-add {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.sc-shop-editor-lucide {
    display: block;
    flex-shrink: 0;
}

.sc-shop-editor-lucide--trash {
    width: 14px;
    height: 14px;
    margin: 0;
}

.sc-shop-editor-row__chev-icon,
.sc-shop-editor-box__chev-icon {
    width: 14px;
    height: 14px;
    transition: transform 200ms ease;
}

.sc-shop-editor-box__chev[aria-expanded="false"] .sc-shop-editor-box__chev-icon,
.sc-shop-editor-row__chev-toggle[aria-expanded="false"] .sc-shop-editor-row__chev-icon {
    transform: rotate(-90deg);
}

.sc-shop-editor-box__chev[aria-expanded="true"] .sc-shop-editor-box__chev-icon,
.sc-shop-editor-row__chev-toggle[aria-expanded="true"] .sc-shop-editor-row__chev-icon {
    transform: rotate(0);
}

.sc-shop-editor-cats-box > .sc-shop-menu-box__head {
    border-bottom: 0;
}

.sc-shop-editor-menu-cats {
    min-width: 0;
}

.sc-shop-editor-cat-add {
    flex: 0 1 auto;
    width: auto;
    max-width: 100%;
    gap: 4px;
    padding: 2px 2px 2px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    -webkit-tap-highlight-color: transparent;
}

.sc-shop-editor-cat-add:focus-within {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    outline: none;
}

.sc-shop-editor-cat-add[hidden] {
    display: none !important;
}

.sc-shop-editor .sc-shop-editor-cat-add__input,
.sc-shop-editor [data-shop-menu-cat-input] {
    flex: 0 1 auto;
    width: 11ch;
    min-width: 11ch;
    max-width: 24ch;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    outline: none;
    box-shadow: none;
    field-sizing: content;
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.sc-shop-editor .sc-shop-editor-cat-add__input:hover,
.sc-shop-editor .sc-shop-editor-cat-add__input:focus,
.sc-shop-editor .sc-shop-editor-cat-add__input:focus-visible,
.sc-shop-editor .sc-shop-editor-cat-add__input:active,
.sc-shop-editor [data-shop-menu-cat-input]:hover,
.sc-shop-editor [data-shop-menu-cat-input]:focus,
.sc-shop-editor [data-shop-menu-cat-input]:focus-visible,
.sc-shop-editor [data-shop-menu-cat-input]:active {
    outline: none;
    box-shadow: none;
    border: 0;
    border-color: transparent;
    background: transparent;
}

.sc-shop-editor-cat-add__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.sc-shop-editor-cat-add__btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.sc-shop-editor-cat-add__btn:focus,
.sc-shop-editor-cat-add__btn:focus-visible {
    outline: none;
    box-shadow: none;
}

.sc-shop-editor-chip__x:hover {
    color: #fff;
}

.sc-shop-editor-chip__label {
    cursor: text;
}

.sc-shop-editor-chip__label[hidden] {
    display: none !important;
}

.sc-shop-editor-chip__rename {
    width: 7.5rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.sc-shop-editor [data-shop-cat-field][hidden],
.sc-shop-editor [data-shop-box-body][hidden],
.sc-shop-editor [data-shop-labor-empty][hidden],
.sc-shop-editor [data-shop-parts-empty][hidden],
.sc-shop-editor [data-shop-service-add][hidden],
.sc-shop-editor [data-shop-part-add][hidden],
.sc-shop-editor [data-shop-svc-clear][hidden],
.sc-shop-editor [data-shop-part-clear][hidden] {
    display: none !important;
}

.sc-shop-editor-row__commit:not(:has([data-shop-svc-clear]:not([hidden]), [data-shop-part-clear]:not([hidden]))) {
    justify-content: flex-end;
}

.sc-shop-editor-row__commit:not(:has([data-shop-svc-clear]:not([hidden]), [data-shop-part-clear]:not([hidden]))) [data-shop-svc-save],
.sc-shop-editor-row__commit:not(:has([data-shop-svc-clear]:not([hidden]), [data-shop-part-clear]:not([hidden]))) [data-shop-part-save] {
    margin-left: 0;
}

.sc-shop-editor-list-add {
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.72);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.sc-shop-editor-list-add:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
}

.sc-shop-editor-row:not([data-shop-row-draft]) .sc-shop-editor-row__commit {
    display: none !important;
}

.sc-shop-editor-row[data-shop-row-draft] .sc-shop-editor-row__commit [data-shop-svc-save],
.sc-shop-editor-row[data-shop-row-draft] .sc-shop-editor-row__commit [data-shop-part-save] {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
}

.sc-shop-editor-row .sc-snapshot-field.is-invalid {
    border-color: rgba(226, 56, 56, 0.7);
    background: rgba(226, 56, 56, 0.06);
}

.sc-shop-editor-row .sc-snapshot-field.is-flash {
    animation: sc-shop-field-flash 280ms ease-in-out 2;
}

@keyframes sc-shop-field-flash {
    0%,
    100% {
        border-color: rgba(226, 56, 56, 0.28);
        background: rgba(226, 56, 56, 0.03);
    }
    50% {
        border-color: rgba(226, 56, 56, 0.95);
        background: rgba(226, 56, 56, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sc-shop-editor-row .sc-snapshot-field.is-flash {
        animation: none;
        border-color: rgba(226, 56, 56, 0.85);
    }
}

.sc-shop-editor-row .sc-snapshot-field > .sc-shop-editor-svc-price {
    flex: 1 1 auto;
    min-width: 0;
}

.sc-shop-editor-svc-price__main {
    padding-right: 6px;
    background-color: #222;
}

.sc-shop-editor-svc-price__main .sc-snapshot-field__input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.sc-shop-editor-svc-price__main .sc-snapshot-field__input[hidden] {
    display: none;
}

.sc-shop-editor-svc-price__quote-input[readonly]:not(:focus) {
    cursor: text;
}

.sc-shop-editor-svc-price__mode {
    padding: 4px 6px 4px 4px;
    min-height: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.sc-shop-editor-svc-price__mode-icon {
    width: 12px;
    height: 12px;
    opacity: 0.55;
    transition: opacity 140ms ease;
}

.sc-shop-editor-svc-price__mode:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
}

.sc-shop-editor-svc-price__mode:hover .sc-shop-editor-svc-price__mode-icon {
    opacity: 0.88;
}

.sc-shop-editor-svc-price__mode[aria-pressed="true"] {
    border-color: rgba(226, 56, 56, 0.55);
    background: rgba(226, 56, 56, 0.18);
    color: #fff;
}

.sc-shop-editor-svc-price__mode[aria-pressed="true"] .sc-shop-editor-svc-price__mode-icon {
    opacity: 1;
}

.sc-shop-editor-svc-price__mode[aria-pressed="true"]:hover {
    border-color: rgba(226, 56, 56, 0.65);
    background: rgba(226, 56, 56, 0.26);
    color: #fff;
}

.sc-shop-editor-svc-price__mode:focus-visible {
    outline: 2px solid rgba(226, 56, 56, 0.55);
    outline-offset: 1px;
}

.sc-shop-editor-hours-tools {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-shop-editor-hours-seg {
    display: flex;
    flex-shrink: 0;
    gap: 2px;
    padding: 2px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.sc-shop-editor-hours-copy {
    min-height: 26px;
    padding: 3px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.sc-shop-editor-hours-copy:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sc-shop-editor-hours-copy.is-copied {
    background: rgba(67, 196, 106, 0.18);
    color: #43c46a;
}

.sc-shop-editor-hours {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    container-type: inline-size;
    container-name: shop-hours;
}

.sc-shop-editor-hours-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "day toggle"
        "times times";
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-shop-editor-hours-row:first-child {
    border-top: 0;
}

.sc-shop-editor-hours-row[data-day="Saturday"] {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.sc-shop-editor-hours-row__daywrap {
    grid-area: day;
}

.sc-shop-editor-hours-row__day {
    color: #fff;
}

.sc-shop-editor-hours-row.is-closed .sc-shop-editor-hours-row__day {
    color: rgba(255, 255, 255, 0.45);
}

.sc-shop-editor-hours-today {
    color: rgba(255, 255, 255, 0.45);
}

.sc-shop-editor-hours-toggle {
    grid-area: toggle;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.sc-shop-editor-hours-switch {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    transition: background-color 160ms ease;
}

.sc-shop-editor-hours-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: transform 160ms ease;
}

.sc-shop-editor-hours-toggle[aria-checked="true"] .sc-shop-editor-hours-switch {
    background: #43c46a;
}

.sc-shop-editor-hours-toggle[aria-checked="true"] .sc-shop-editor-hours-switch::after {
    transform: translateX(14px);
}

.sc-shop-editor-hours-row.is-closed .sc-shop-editor-hours-toggle {
    color: rgba(255, 255, 255, 0.45);
}

@media (prefers-reduced-motion: reduce) {
    .sc-shop-editor-hours-switch,
    .sc-shop-editor-hours-switch::after {
        transition: none;
    }
}

.sc-shop-editor-hours-row__times {
    grid-area: times;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.sc-shop-editor-hours-row__times[hidden] {
    display: none !important;
}

.sc-shop-editor-hours-time .sc-shop-editor-lucide {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.sc-shop-editor-hours-dash {
    color: rgba(255, 255, 255, 0.4);
}

.sc-shop-editor-hours-copy:focus-visible,
.sc-shop-editor-hours-toggle:focus-visible {
    outline: 2px solid rgba(226, 56, 56, 0.55);
    outline-offset: 1px;
}

@container shop-hours (min-width: 480px) {
    .sc-shop-editor-hours-row {
        grid-template-columns: 118px minmax(0, 1fr) auto;
        grid-template-areas: "day times toggle";
    }

    .sc-shop-editor-hours-row.is-closed {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "day toggle";
    }
}

.sc-shop-editor .sc-mods-editor__body {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: min(480px, 65vh);
    overflow-y: auto;
    padding-right: 4px;
}

.sc-shop-editor .sc-mods-editor__body.is-menu {
    flex: 0 1 auto;
    max-height: min(640px, 72vh);
}

@media (max-width: 991px) {
    .sc-shop-editor .sc-mods-editor__body {
        flex: 1 1 auto;
        max-height: none;
    }

    .sc-shop-editor .sc-mods-editor__body.is-menu {
        flex: 0 1 auto;
        max-height: min(640px, 72vh);
    }
}

.sc-shop-editor [data-shop-group="menu"] {
    border-top: 0;
    padding-top: 0;
}

.sc-shop-editor [data-shop-row-body][hidden] {
    display: none !important;
}

.sc-shop-editor-row__toggle {
    min-height: 32px;
}

.sc-shop-editor-row__summary {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-shop-editor-row__summary.is-empty {
    color: #8a8a8a;
    font-weight: 500;
}

.sc-shop-editor-row__actions {
    gap: 2px;
}

.sc-shop-editor-row__actions .sc-shop-editor-row__remove,
.sc-shop-editor-row__actions .sc-shop-editor-row__chev-toggle {
    min-width: 16px;
    height: 28px;
    justify-content: flex-end;
}

.sc-shop-editor-row__remove:hover {
    color: #fff;
}

.sc-shop-editor-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* Menu rows: single field column below desktop. */
@media (max-width: 991.98px) {
    .sc-shop-editor-row .sc-shop-editor-line,
    .sc-shop-editor-row .sc-shop-editor-meta,
    .sc-shop-editor-row .sc-shop-editor-meta:has([data-shop-cat-field]:not([hidden])) {
        grid-template-columns: minmax(0, 1fr);
    }

    .sc-shop-editor-row .sc-shop-editor-meta--parts,
    .sc-shop-editor-row .sc-shop-editor-meta--parts:has([data-shop-cat-field]:not([hidden])) {
        grid-template-columns: 1fr 1fr;
    }

    .sc-shop-editor-row .sc-shop-editor-meta--parts > .sc-snapshot-field:nth-child(1) {
        grid-column: 1 / -1;
    }

    .sc-shop-editor-row .sc-shop-editor-meta [data-shop-cat-field],
    .sc-shop-editor-row .sc-shop-editor-meta--parts [data-shop-cat-field] {
        grid-column: 1 / -1;
    }
}

.sc-shop-editor-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 6px;
}

.sc-shop-editor-meta [data-shop-cat-field],
.sc-shop-editor-meta--parts [data-shop-cat-field] {
    grid-column: 1 / -1;
}

.sc-shop-editor-row .sc-snapshot-field.sc-shop-editor-cats {
    align-items: stretch;
}

.sc-shop-editor-row .sc-snapshot-field > .sc-shop-editor-cats__list {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    background-color: #222;
}

.sc-shop-editor-cats__chip {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.sc-shop-editor-cats__chip:hover:not([aria-pressed="true"]):not(:disabled) {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sc-shop-editor-cats__chip[aria-pressed="true"] {
    background: rgba(226, 56, 56, 0.18);
    border-color: rgba(226, 56, 56, 0.55);
    color: #fff;
    font-weight: 600;
}

.sc-shop-editor-cats__chip:disabled {
    opacity: 0.35;
    cursor: default;
}

.sc-shop-editor-meta--parts {
    grid-template-columns: 1fr 1fr;
}

.sc-shop-editor-meta--parts > .sc-snapshot-field:nth-child(1) {
    grid-column: 1 / -1;
}

.sc-shop-editor-meta--parts:has([data-shop-cat-field]:not([hidden])) {
    grid-template-columns: 1fr 1fr;
}

.sc-shop-editor-row .sc-snapshot-field__input,
.sc-shop-editor-row .sc-snap-select__trigger {
    line-height: 1.2;
}

.sc-shop-editor-row .sc-snap-select__el:not(.sc-snap-select__el--native) {
    padding-right: 28px;
}

.sc-shop-editor .sc-snap-select--custom::after {
    display: none;
}

.sc-shop-editor-row .sc-snap-select--custom {
    position: relative;
    display: block;
    min-width: 0;
}

.sc-shop-editor-row .sc-snap-select__el--native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    border: 0;
}

.sc-shop-editor-row .sc-snap-select__trigger {
    width: 100%;
}

.sc-shop-editor-row .sc-snap-select__chev {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 200ms ease;
}

.sc-shop-editor-row .sc-snap-select--custom.is-open .sc-snap-select__chev {
    transform: rotate(180deg);
}

.sc-shop-editor-row .sc-snap-select__panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 40;
    margin: 0;
    max-height: min(220px, 40vh);
    overflow-y: auto;
    padding: 4px 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.sc-shop-editor-row .sc-snap-select__panel[hidden] {
    display: none !important;
}

.sc-shop-editor-row .sc-snap-select__option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.sc-shop-editor-row .sc-snap-select__option:hover,
.sc-shop-editor-row .sc-snap-select__option:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.sc-shop-editor-row .sc-snap-select__option.is-selected {
    background: rgba(226, 56, 56, 0.12);
}

@media (max-width: 479px) {
    .sc-shop-editor-meta,
    .sc-shop-editor-meta--parts,
    .sc-shop-editor-meta:has([data-shop-cat-field]:not([hidden])),
    .sc-shop-editor-meta--parts:has([data-shop-cat-field]:not([hidden])) {
        grid-template-columns: 1fr 1fr;
    }
    .sc-shop-editor-meta [data-shop-cat-field] {
        grid-column: 1 / -1;
    }
}

.sc-shop-editor [data-shop-group][hidden] {
    display: none !important;
}

.sc-shop-editor-parts-grid {
    grid-template-columns: 1fr;
}

.sc-shop-editor-pane[hidden] {
    display: none !important;
}

/* Menu row fields — label | value shell (all breakpoints) */
.sc-shop-editor-row .sc-shop-editor-line,
.sc-shop-editor-row .sc-shop-editor-meta,
.sc-shop-editor-row .sc-shop-editor-meta--parts {
    gap: 4px;
}

.sc-shop-editor-row .sc-snapshot-field {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.sc-shop-editor-row .sc-snapshot-field:focus-within {
    border-color: rgba(226, 56, 56, 0.45);
    background: rgba(226, 56, 56, 0.04);
}

.sc-shop-editor-row .sc-snapshot-field__label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 60px;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.2;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    text-transform: none;
}

.sc-shop-editor-row .sc-snapshot-field > .sc-snapshot-field__input,
.sc-shop-editor-row .sc-snapshot-field > .sc-snap-select--custom {
    flex: 1 1 auto;
    min-width: 0;
}

.sc-shop-editor-row .sc-snapshot-field:has(.sc-snap-select--custom.is-open) {
    overflow: visible;
    z-index: 5;
}

.sc-shop-editor-row .sc-snap-select--custom {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.sc-shop-editor-row .sc-snapshot-field__input,
.sc-shop-editor-row .sc-snap-select__trigger {
    padding: 8px 8px;
    font-size: 12px;
    line-height: 1.2;
    border: 0;
    border-radius: 0;
    background-color: #222;
    box-shadow: none;
}

.sc-shop-editor-row .sc-snapshot-field__input::placeholder {
    color: rgba(255, 255, 255, 0.32);
    font-weight: 400;
    opacity: 1;
}

.sc-shop-editor-row .sc-snapshot-field__input:hover,
.sc-shop-editor-row .sc-snapshot-field__input:focus,
.sc-shop-editor-row .sc-snap-select__trigger:hover,
.sc-shop-editor-row .sc-snap-select--custom.is-open .sc-snap-select__trigger,
.sc-shop-editor-row .sc-snap-select--custom:focus-within .sc-snap-select__trigger {
    border-color: transparent;
    background-color: #222;
    outline: none;
}

.sc-shop-editor-row .sc-snapshot-field:focus-within .sc-snap-select--custom.is-open .sc-snap-select__trigger {
    background-color: #222;
}

/* Desktop (lg+): service row — Service+Detail | Price+Note */
@media (min-width: 992px) {
    .sc-shop-editor-row[data-shop-service] .sc-shop-editor-row__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4px 0;
        align-items: start;
    }

    .sc-shop-editor-row[data-shop-service] .sc-shop-editor-line {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-right: 12px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sc-shop-editor-row[data-shop-service] .sc-shop-editor-meta {
        display: contents;
        margin-top: 0;
    }

    .sc-shop-editor-row[data-shop-service] .sc-shop-editor-meta > .sc-snapshot-field:nth-child(1) {
        grid-column: 2;
        grid-row: 1;
        padding-left: 12px;
    }

    .sc-shop-editor-row[data-shop-service] .sc-shop-editor-meta > .sc-snapshot-field:nth-child(2) {
        grid-column: 2;
        grid-row: 2;
        padding-left: 12px;
    }

    .sc-shop-editor-row[data-shop-service] .sc-shop-editor-meta > [data-shop-cat-field] {
        grid-column: 1 / -1;
        grid-row: 3;
        margin-top: 2px;
    }

    .sc-shop-editor-row[data-shop-service] .sc-shop-editor-row__commit {
        grid-column: 1 / -1;
    }

    .sc-shop-editor-row[data-shop-part] .sc-shop-editor-row__body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 4px 0;
        align-items: start;
    }

    .sc-shop-editor-row[data-shop-part] .sc-shop-editor-line {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding-right: 12px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .sc-shop-editor-row[data-shop-part] .sc-shop-editor-meta--parts {
        display: contents;
        margin-top: 0;
    }

    .sc-shop-editor-row[data-shop-part] .sc-shop-editor-meta--parts > .sc-snapshot-field:nth-child(1) {
        grid-column: 2;
        grid-row: 1;
        padding-left: 12px;
    }

    .sc-shop-editor-row[data-shop-part] .sc-shop-editor-meta--parts > .sc-snapshot-field:nth-child(2) {
        grid-column: 2;
        grid-row: 2;
        padding-left: 12px;
    }

    .sc-shop-editor-row[data-shop-part] .sc-shop-editor-meta--parts > .sc-snapshot-field:nth-child(3) {
        grid-column: 2;
        grid-row: 3;
        padding-left: 12px;
    }

    .sc-shop-editor-row[data-shop-part] .sc-shop-editor-meta--parts > [data-shop-cat-field] {
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 2px;
    }

    .sc-shop-editor-row[data-shop-part] .sc-shop-editor-row__commit {
        grid-column: 1 / -1;
    }
}

/* Photos — square slots fill the dialog. The crop sheet covers it. */
.sc-shop-photos {
    width: 100%;
}

.sc-shop-photos.is-busy {
    pointer-events: none;
    opacity: 0.7;
}

.sc-shop-photo-slot--add,
.sc-shop-photo-slot--idle {
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
}

.sc-shop-photo-slot--idle {
    opacity: 0.4;
}

.sc-shop-photo-slot__preview {
    z-index: 1;
}

.sc-shop-photo-slot.is-ghost {
    opacity: 0.35;
}

.sc-shop-photo-slot.is-drag {
    opacity: 0.92;
}

.sc-shop-photo-slot__hit {
    color: inherit;
}

.sc-shop-photo-slot__cover {
    z-index: 2;
    line-height: 1.2;
}

.sc-shop-photo-slot__actions {
    pointer-events: none;
}

.sc-shop-photo-slot__actions .sc-shop-photo-slot__btn {
    pointer-events: auto;
}

.sc-shop-photo-slot__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}

.sc-shop-photo-slot__btn svg,
.sc-shop-photo-slot__hit svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.sc-shop-photo-slot__btn.sc-shop-photo-slot__remove {
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
}

.sc-shop-photo-slot__hit svg {
    width: 22px;
    height: 22px;
}

.sc-shop-photo-slot__btn[disabled] {
    opacity: 0.35;
    cursor: default;
}

.sc-shop-photo-slot.is-busy {
    opacity: 0.55;
    pointer-events: none;
}

.sc-shop-photo-crop {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1e1e1e;
    border-radius: inherit;
    transform: translateY(100%);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.sc-shop-photo-crop.is-open {
    transform: translateY(0);
    pointer-events: auto;
}

.sc-shop-photo-crop.is-closing {
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 240ms cubic-bezier(0.4, 0, 1, 1);
}

.sc-shop-photo-crop[hidden] {
    display: none !important;
}

.sc-shop-photo-crop__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 12px 16px;
    background: #1e1e1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
}

.sc-shop-photo-crop__title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.sc-shop-photo-crop__cancel,
.sc-shop-photo-crop__done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #d9d9d9;
    cursor: pointer;
    z-index: 2;
}

.sc-shop-photo-crop__cancel svg,
.sc-shop-photo-crop__done svg {
    width: 16px;
    height: 16px;
}

.sc-shop-photo-crop__done {
    color: #fff;
}

.sc-shop-photo-crop__done[aria-disabled="true"] {
    opacity: 0.3;
    pointer-events: none;
}

.sc-shop-photo-crop__canvas {
    container-type: size;
}

.sc-shop-photo-crop__canvas img {
    display: block;
    max-width: none;
    max-height: none;
}

.sc-shop-photo-crop__stage {
    aspect-ratio: var(--sc-shop-crop-ratio, 1);
    width: min(100%, calc(100cqh * var(--sc-shop-crop-ratio, 1)));
    height: auto;
    max-height: 100%;
}

.sc-shop-photo-crop .cropper-container {
    width: 100% !important;
    height: 100% !important;
    background: transparent;
}

.sc-shop-photo-crop__hint {
    flex-shrink: 0;
    padding: 12px 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    background: #1e1e1e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sc-shop-photo-crop .cropper-modal {
    background: #000;
    opacity: 0.5;
}

.sc-shop-photo-crop .cropper-crop-box {
    overflow: visible;
    outline: 1px solid rgba(255, 255, 255, 0.9);
    outline-offset: -1px;
}

.sc-shop-photo-crop .cropper-view-box {
    outline: none;
    box-shadow: none;
}

.sc-shop-photo-crop .cropper-face {
    background-color: transparent;
    cursor: move;
}

.sc-shop-photo-crop .cropper-dashed {
    border-color: rgba(255, 255, 255, 0.22);
    border-width: 0;
    opacity: 1;
}

.sc-shop-photo-crop .cropper-dashed.dashed-h {
    border-top-width: 1px;
    border-bottom-width: 1px;
}

.sc-shop-photo-crop .cropper-dashed.dashed-v {
    border-left-width: 1px;
    border-right-width: 1px;
}

.sc-shop-photo-crop .cropper-line,
.sc-shop-photo-crop .cropper-point.point-n,
.sc-shop-photo-crop .cropper-point.point-s,
.sc-shop-photo-crop .cropper-point.point-e,
.sc-shop-photo-crop .cropper-point.point-w,
.sc-shop-photo-crop .cropper-center {
    display: none;
}

.sc-shop-photo-crop .cropper-point {
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* Part photos — row thumbnail + 16:10 sheet. Shop Photos stays square. */
.sc-shop-part-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
}

.sc-shop-part-thumb:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sc-shop-part-thumb.is-empty {
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.sc-shop-part-thumb svg {
    width: 14px;
    height: 14px;
}

.sc-shop-part-photo-crop {
    z-index: 22;
}

.sc-shop-part-photos {
    position: absolute;
    inset: 0;
    z-index: 21;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1e1e1e;
    border-radius: inherit;
    transform: translateY(100%);
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.sc-shop-part-photos.is-open {
    transform: none;
    pointer-events: auto;
}

.sc-shop-part-photos.is-closing {
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 240ms cubic-bezier(0.4, 0, 1, 1);
}

.sc-shop-part-photos[hidden] {
    display: none !important;
}

.sc-shop-part-photos__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 12px 16px;
    background: #1e1e1e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2;
}

.sc-shop-part-photos__title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    pointer-events: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.sc-shop-part-photos__back,
.sc-shop-part-photos__done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.sc-shop-part-photos__back {
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #d9d9d9;
    cursor: pointer;
    z-index: 2;
}

.sc-shop-part-photos__back svg {
    width: 16px;
    height: 16px;
}

.sc-shop-part-photos__done {
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--sc-primary, #e10600);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.sc-shop-part-photos__done svg {
    width: 18px;
    height: 18px;
}

.sc-shop-part-photos__done:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sc-shop-part-photos__grid {
    width: 100%;
}

.sc-shop-part-photos__slot--add,
.sc-shop-part-photos__slot--idle {
    border: 1.5px dashed rgba(255, 255, 255, 0.16);
}

.sc-shop-part-photos__slot--idle {
    opacity: 0.4;
}

.sc-shop-part-photos__slot.is-pending {
    opacity: 0.7;
}

.sc-shop-part-photos__slot.is-ghost {
    opacity: 0.35;
}

.sc-shop-part-photos__slot.is-drag {
    opacity: 0.92;
}

.sc-shop-part-photos__cover {
    z-index: 2;
    line-height: 1.2;
}

.sc-shop-part-photos__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
}

.sc-shop-part-photos__remove svg {
    width: 12px;
    height: 12px;
}

.sc-shop-part-photos__preview {
    z-index: 1;
}

.sc-shop-part-photos__hit {
    color: inherit;
}

.sc-shop-part-photos__hit svg,
.sc-shop-part-thumb svg {
    pointer-events: none;
}

.sc-shop-part-photos__hit svg {
    width: 22px;
    height: 22px;
}

/* File input lives on the modal, not inside the sliding sheet.
   When Add photo is on screen we pin this over that tile so the tap
   hits a real file control (click() on a clipped 1px input is ignored). */
.sc-shop-part-photos__file {
    position: fixed;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 30;
}

.sc-shop-part-photos__file.is-docked {
    pointer-events: auto;
    cursor: pointer;
    font-size: 80px;
}

.sc-shop-part-photos__file.is-docked::-webkit-file-upload-button {
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    cursor: pointer;
}
