.store-logo-editor { max-width: 100%; color: #283041; }
.store-logo-editor *, .store-logo-editor *::before, .store-logo-editor *::after { box-sizing: border-box; }
.store-logo-editor__help { color: #697386; font-size: 13px; line-height: 1.6; margin: 10px 0; }
.store-logo-editor__actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.store-logo-editor button, .store-logo-editor__file { display: inline-flex; align-items: center; border: 1px solid #cbd1dc; border-radius: 8px; padding: 10px 14px; background: #fff; color: #283041; font: inherit; font-size: 14px; cursor: pointer; margin: 0; }
.store-logo-editor button:disabled { opacity: .5; cursor: default; }
.store-logo-editor button:focus-visible, .store-logo-editor__file:focus-within { outline: 2px solid #4167b2; outline-offset: 2px; }
.store-logo-editor__file { position: relative; overflow: hidden; }
.store-logo-editor__file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.store-logo-editor__file:has(input:disabled) { opacity: .5; }
.store-logo-editor button.store-logo-editor__apply { background: #293b5c; color: #fff; border-color: #293b5c; }
.store-logo-editor__stage { position: relative; width: min(100%, 540px); overflow: hidden; touch-action: none; background-color: #fff; background-image: conic-gradient(#e8ebef 25%, transparent 0 50%, #e8ebef 0 75%, transparent 0); background-size: 16px 16px; user-select: none; cursor: crosshair; }
.store-logo-editor__stage > img { display: block; width: 100%; height: 100%; pointer-events: none; }
.store-logo-editor__selection { position: absolute; border: 2px solid #4167b2; box-shadow: 0 0 0 1000px rgba(0,0,0,.4); cursor: move; }
.store-logo-editor__handle { position: absolute; width: 18px; height: 18px; right: -3px; bottom: -3px; border: 2px solid #fff; background: #4167b2; cursor: nwse-resize; }
.store-logo-editor__margins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; max-width: 540px; }
.store-logo-editor label { font-size: 13px; font-weight: 500; }
.store-logo-editor input[type=number], .store-logo-editor input[type=text] { display: block; width: 100%; min-width: 0; margin-top: 6px; padding: 8px; border: 1px solid #cbd1dc; border-radius: 6px; }
.store-logo-editor__height { display: block; margin-top: 18px; }
.store-logo-editor__height input { display: block; width: min(100%, 360px); padding: 0; margin: 10px 0; }
.store-logo-editor__previews { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 14px; margin: 16px 0; }
.store-logo-editor__caption { font-size: 12px; color: #697386; margin: 0 0 8px; }
.store-logo-editor__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; min-height: 90px; border: 1px solid #e5e7eb; border-radius: 8px; }
.store-logo-editor__header img { display: block; height: var(--logo-height); max-height: var(--logo-height); max-width: min(230px, 65%); width: auto; object-fit: contain; }
.store-logo-editor__header strong { font-size: 22px; overflow-wrap: anywhere; min-width: 0; }
.store-logo-editor__header span { font-size: 12px; flex-shrink: 0; }
.store-logo-editor__header--mobile { padding: 12px; min-height: 66px; }
.store-logo-editor__header--mobile img { max-width: min(160px, 75%); max-height: min(var(--logo-height), 42px); }
.store-logo-editor__header--mobile strong { font-size: 16px; }
.store-logo-editor details { margin: 12px 0; }
.store-logo-editor summary { cursor: pointer; font-size: 13px; color: #697386; }
.store-logo-editor__error { color: #b42318; font-size: 14px; }
.store-logo-editor__notice { color: #216544; font-size: 14px; }
@media (max-width: 640px) { .store-logo-editor__previews { grid-template-columns: minmax(0, 1fr); } .store-logo-editor__margins { grid-template-columns: repeat(2, minmax(0,1fr)); } .store-logo-editor__header span { display: none; } .store-logo-editor__header--mobile span { display: block; } }
