/* Sports team frame designer: Customize button and the full-screen designer popup. */
.std-form-hidden { display: none !important; }
html.std-open { overflow: hidden; }

.std-open {
  display: grid; gap: 2px; width: 100%; margin: 12px 0; padding: 14px 18px; cursor: pointer; text-align: center;
  background: #1d2421; color: #fff; border: 0; border-radius: 3px; font: inherit;
}
.std-open span { font-weight: 600; font-size: 1.05em; letter-spacing: .02em; }
.std-open small { opacity: .8; font-size: .85em; }
.std-open:hover { background: #2f3a35; }
.std-open:focus-visible { outline: 2px solid #1f5f4a; outline-offset: 3px; }

.std-modal { position: fixed; inset: 0; z-index: 2147482000; background: rgba(18, 22, 20, .6); display: grid; place-items: center; padding: 12px; color: #1d2421; font-size: 15px; line-height: 1.45; }
.std-modal[hidden] { display: none; }
.std-shell { text-align: left; background: #fff; width: min(1240px, 100%); height: min(860px, calc(100vh - 24px)); display: grid; grid-template-rows: auto 1fr auto; border-radius: 4px; overflow: hidden; box-shadow: 0 18px 60px rgba(0, 0, 0, .3); }
.std-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid #e3e7e4; }
.std-head h2 { margin: 0; font-size: 1.15em; letter-spacing: .01em; }
.std-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #1d2421; padding: 0 6px; }
.std-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); min-height: 0; }
.std-stage { background: #eceeeb; display: grid; place-items: center; padding: 18px; min-height: 0; overflow: hidden; }
.std-stage canvas { display: block; max-width: 100%; max-height: 100%; }
.std-panel { overflow-y: auto; padding: 6px 18px 18px; display: grid; gap: 4px; align-content: start; }

.std-sec { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid #edf0ee; }
.std-sec h3 { margin: 0; font-size: 1em; display: flex; align-items: center; gap: 8px; }
.std-step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #1d2421; color: #fff; font-size: .78em; }
.std-field { display: grid; gap: 5px; }
.std-label { font-size: .82em; font-weight: 600; color: #4a5450; }
.std-label small { font-weight: 400; }
.std-panel input[type="text"], .std-panel input:not([type]), .std-panel input[type="search"], .std-panel select, .std-panel textarea {
  width: 100%; font: inherit; padding: 8px 10px; border: 1px solid #ccd3cf; border-radius: 3px; background: #fff; color: #1d2421; box-sizing: border-box;
}
.std-panel textarea { resize: vertical; min-height: 44px; }
.std-panel :focus-visible { outline: 2px solid #1f5f4a; outline-offset: 1px; }

.std-seg { display: flex; flex-wrap: wrap; gap: 4px; }
.std-seg button { font: inherit; font-size: .9em; padding: 7px 11px; border: 1px solid #ccd3cf; background: #fff; color: #1d2421; border-radius: 3px; cursor: pointer; }
.std-seg button[aria-pressed="true"] { background: #1d2421; border-color: #1d2421; color: #fff; }

.std-drop { display: grid; gap: 2px; place-items: center; text-align: center; padding: 22px 12px; border: 2px dashed #b9c2bd; border-radius: 4px; cursor: pointer; background: #f7f9f8; }
.std-drop-small { padding: 14px 12px; }
.std-drop span { font-weight: 600; }
.std-drop small { color: #5d6763; }
.std-drop input, .std-link input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.std-drop:focus-within, .std-link:focus-within { outline: 2px solid #1f5f4a; outline-offset: 2px; }
.std-link, .std-link-btn { position: relative; justify-self: start; color: #1f5f4a; text-decoration: underline; cursor: pointer; background: none; border: 0; padding: 0; font: inherit; font-size: .9em; }
.std-crop { width: 100%; display: block; cursor: grab; border-radius: 2px; touch-action: none; background: #eee; }
.std-crop:active { cursor: grabbing; }
.std-row { display: flex; align-items: center; gap: 10px; font-size: .88em; }
.std-row input { flex: 1; }
.std-hint { margin: 0; font-size: .85em; color: #5d6763; }
.std-progress { margin: 0; color: #4a5450; }
.std-error { margin: 0; color: #a0352a; }
.std-warn { margin: 0; color: #8a5a00; font-size: .88em; }
.std-quality { padding: 8px 10px; border-radius: 3px; font-size: .88em; display: grid; gap: 4px; }
.std-quality p { margin: 0; }
.std-q-ok, .std-q-soft { background: #fbf4e4; color: #6b4a0e; }
.std-q-blocked { background: #fbe9e6; color: #8b2b20; }
.std-q-great { margin: 0; color: #1f5f4a; font-size: .88em; }
.std-tick { display: flex; gap: 8px; align-items: flex-start; font-size: .9em; cursor: pointer; }
.std-tick input { margin-top: 3px; }
.std-logo { display: flex; gap: 12px; align-items: center; }
.std-logo img { width: 64px; height: 64px; object-fit: contain; border: 1px solid #e3e7e4; background: #fff; }
.std-logo > div { display: grid; gap: 6px; }
.std-swatches { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.std-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #ccd3cf; cursor: pointer; padding: 0; }
.std-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px #1d2421; }
.std-swatches input[type="color"] { width: 34px; height: 28px; padding: 0; border: 1px solid #ccd3cf; background: none; }
.std-namerow { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px; align-items: start; }
.std-namerow .std-link-btn { grid-column: 2; }
.std-search { margin-bottom: 2px; }
.std-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; max-height: 330px; overflow-y: auto; padding: 2px; }
.std-frame { display: grid; gap: 3px; padding: 6px; border: 1px solid #dfe4e1; border-radius: 3px; background: #fff; cursor: pointer; text-align: left; font: inherit; color: #1d2421; }
.std-frame[aria-pressed="true"] { border-color: #1d2421; box-shadow: 0 0 0 1px #1d2421; }
.std-frame img, .std-frame-blank { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eceeeb; display: block; }
.std-frame-name { font-size: .78em; line-height: 1.25; }
.std-frame-price { font-size: .8em; font-weight: 600; }

.std-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 18px; border-top: 1px solid #e3e7e4; }
.std-total { display: grid; }
.std-total-label { font-size: .75em; text-transform: uppercase; letter-spacing: .08em; color: #5d6763; }
.std-total strong { font-size: 1.25em; font-variant-numeric: tabular-nums; }
.std-qty { display: flex; align-items: center; gap: 6px; font-size: .9em; }
.std-qty input { width: 64px; font: inherit; padding: 7px 8px; border: 1px solid #ccd3cf; border-radius: 3px; }
.std-add { margin-left: auto; font: inherit; font-weight: 600; padding: 12px 26px; border: 0; border-radius: 3px; background: #1f5f4a; color: #fff; cursor: pointer; }
.std-add[disabled] { opacity: .45; cursor: not-allowed; }
.std-msg { flex-basis: 100%; margin: 0; font-size: .88em; color: #5d6763; text-align: right; min-height: 1.2em; }

@media (max-width: 860px) {
  .std-modal { padding: 0; }
  .std-shell { height: 100vh; border-radius: 0; }
  .std-body { grid-template-columns: 1fr; grid-template-rows: 42vh minmax(0, 1fr); }
  .std-stage { padding: 10px; }
  .std-namerow { grid-template-columns: 1fr; }
  .std-namerow .std-link-btn { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .std-modal * { transition: none !important; } }

/* Keep the theme's heading and label styles out of the designer. */
.std-modal h2, .std-modal h3, .std-modal label, .std-modal .std-label { text-transform: none; letter-spacing: normal; }
.std-modal .std-label { font-size: .82rem; }
.std-modal .std-sec h3 { font-size: 1rem; font-weight: 600; }
