.product-palette { margin-top: 1.25rem; border: 0; padding: 0; min-width: 0; font-family: inherit; }
.product-palette legend { margin-bottom: .65rem; font-size: .95rem; }
.product-palette__choices { display: flex; flex-wrap: wrap; gap: .4rem; }
.product-palette__choice { position: relative; }
.product-palette__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.product-palette__swatch { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 5px; border: 2px solid transparent; border-radius: 50%; cursor: pointer; }
.product-palette__swatch > span[aria-hidden] { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #a7a7a7; background-color: var(--swatch-color); }
.product-palette__input:checked + .product-palette__swatch { border-color: #ab8439; }
.product-palette__input:focus-visible + .product-palette__swatch { outline: 2px solid #292929; outline-offset: 3px; }
.product-palette__hint { margin: .65rem 0 0; font-size: .82rem; color: #686868; line-height: 1.5; }
.product-palette__status { min-height: 1.5em; margin-top: .35rem; font-size: .85rem; color: #b42318; }
.product-color-editor__help { margin: .8rem 0; color: #64748b; font-size: .9rem; line-height: 1.55; }
.product-color-editor__body { min-width: 0; border: 0; padding: 0; margin: 1rem 0 0; }
.product-color-editor__row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem 0; border-top: 1px solid #dce3ec; }
.product-color-editor__preview { min-height: 100px; display: flex; align-items: center; justify-content: center; align-self: start; border: 1px solid #dce3ec; border-radius: .5rem; background: #fff; color: #64748b; font-size: .8rem; text-align: center; }
.product-color-editor__preview img { width: 100%; height: 110px; object-fit: contain; }
.product-color-editor__name-color { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(150px, 1fr); gap: 1rem; }
.product-color-editor__picker { display: flex; gap: .5rem; align-items: center; }
.product-color-editor__picker input[type="color"] { height: 40px; width: 48px; flex-shrink: 0; padding: 2px; border: 1px solid #cbd5e1; background: #fff; border-radius: .35rem; cursor: pointer; }
.product-color-editor__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.product-color-editor__error { color: #b42318; margin: .6rem 0; font-size: .9rem; }
.product-color-editor [hidden] { display: none !important; }
@media (max-width: 600px) {
    .product-color-editor__row { grid-template-columns: minmax(0, 1fr); }
    .product-color-editor__preview { width: 90px; }
    .product-color-editor__name-color { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
