/* Toesca size guide: storefront reading layout and admin editor. */
.website-legal-page.size-guide-page { max-width: 1040px; }
.size-guide-page .breadcrumb { color: #475261; }
.size-guide-page .breadcrumb a { color: #0f2c4f; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.size-guide-content { display: grid; gap: clamp(24px, 4vw, 38px); }
.size-guide-content > * { min-width: 0; }
.size-guide-content h2 { margin: 0 0 14px; color: var(--store-ink, #0f2c4f); font: 600 clamp(1.45rem, 2.4vw, 1.9rem)/1.15 var(--font-display, Oswald, sans-serif); }
.size-guide-content h3 { color: var(--store-ink, #0f2c4f); font: 600 1.08rem/1.25 var(--font-display, Oswald, sans-serif); }
.size-guide-intro { max-width: 66ch; margin: -8px 0 0; color: #3f4852; font-size: 1rem; line-height: 1.7; }
.size-guide-tips, .size-guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.size-guide-tip, .size-guide-card { min-width: 0; padding: clamp(17px, 2.5vw, 24px); border: 1px solid #d7dce1; border-radius: 10px; background: #fff; }
.size-guide-tip { display: grid; align-content: start; gap: 8px; }
.size-guide-content .size-guide-tip p, .size-guide-card-copy p { margin: 0; color: #424a53; font-size: .92rem; line-height: 1.7; white-space: pre-wrap; }
.size-guide-general-copy { max-width: 68ch; margin: 0; color: #424a53; line-height: 1.7; }
.size-guide-advice-list { display: grid; gap: 10px; margin: 4px 0 0; padding: 18px 24px 18px 42px; border: 1px solid #d7dce1; border-radius: 10px; background: #fff; color: #343c45; }
.size-guide-advice-list li { padding-left: 3px; line-height: 1.6; }
.size-guide-advice-list li::marker { color: #c1272d; }
.size-guide-important { max-width: 70ch; margin: 0; padding: 14px 16px; border: 1px solid #e1c8c9; border-radius: 8px; background: #fff9f8; color: #572b2e; font-size: .88rem; line-height: 1.6; }
.size-guide-specific { padding-top: clamp(20px, 3vw, 30px); border-top: 1px solid #d7dce1; }
.size-guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.size-guide-cards:has(> .size-guide-card:only-child) { grid-template-columns: minmax(0, 1fr); }
.size-guide-card { display: grid; align-content: start; gap: 14px; }
.size-guide-card > h3 { font-size: 1.3rem; }
.size-guide-categories { display: flex; flex-wrap: wrap; gap: 7px; }
.size-guide-categories span { padding: 5px 10px; border-radius: 3px; background: #f2ede4; color: #0f2c4f; font-size: .75rem; font-weight: 650; }
.size-guide-card-copy { display: grid; gap: 10px; }
.size-guide-card-copy h4 { margin: 0; color: #25394f; font-size: .9rem; font-weight: 700; letter-spacing: .015em; }
.size-guide-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #d7dce1; border-radius: 7px; }
.size-guide-table { width: 100%; min-width: 340px; border-collapse: collapse; color: #303943; font-size: .84rem; font-variant-numeric: tabular-nums; }
.size-guide-table th, .size-guide-table td { padding: 9px 11px; border-bottom: 1px solid #e4e7ea; text-align: left; white-space: nowrap; }
.size-guide-table th { background: #0f2c4f; color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .035em; }
.size-guide-table tbody tr:nth-child(even) { background: #f7f8f9; }
.size-guide-table tbody tr:last-child td { border-bottom: 0; }
.size-guide-empty { max-width: 68ch; margin: 0 0 16px; color: #424a53; font-size: .93rem; line-height: 1.65; }
@media (max-width: 700px) {
  .size-guide-tips, .size-guide-cards { grid-template-columns: 1fr; gap: 10px; }
  .size-guide-tip, .size-guide-card { padding: 17px; }
  .size-guide-content { gap: 25px; }
}

.size-guide-preview { display: grid; gap: 10px; max-width: 760px; max-height: 480px; overflow: auto; align-content: start; padding: 17px; border: 1px solid #d9e1da; border-radius: 9px; background: #f7f9f6; }
.size-guide-preview > h3 { margin: 0; color: #173e30; font-size: .92rem; }
.size-guide-preview > p, .size-guide-preview > li { margin: 0; color: #39473e; font-size: .82rem; line-height: 1.55; }
.size-guide-preview > h4 { margin: 0; color: #173e30; font-size: .85rem; }
.size-guide-preview ul { display: grid; gap: 6px; margin: 0; padding-left: 21px; color: #39473e; font-size: .82rem; line-height: 1.5; }
.size-guide-preview .size-guide-table { font-size: .78rem; }
.size-guide-preview .size-guide-table th, .size-guide-preview .size-guide-table td { padding: 7px 9px; }

#website-size-guide-form.size-guide-editor { gap: 16px; }
#independent-size-guide-form.size-guide-editor { gap:16px; margin-bottom:18px; }
.size-guide-editor .website-form-grid select {
  width:100%; min-width:0; min-height:44px; padding:9px 10px;
  border:1px solid #cbd5ce; border-radius:7px; background:#fff; color:#24372d; font:inherit;
}
.size-guide-editor > h2 { color: #173e30; font-size: 1.15rem; }
.size-guide-editor > p { max-width: 68ch; color: #56645b; line-height: 1.6; }
.size-guide-editor > .website-field { max-width: 620px; gap: 8px; }
.size-guide-editor > .website-field select,
.size-guide-editor > .website-field textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5ce; border-radius: 7px; background: #fff; color: #24372d; font: inherit; font-size: .88rem; }
.size-guide-editor > .website-field textarea { min-height: 118px; line-height: 1.55; resize: vertical; }
.size-guide-editor > .website-field textarea[name="guideContent"] { min-height: 175px; }
.size-guide-editor > .website-field :focus-visible { outline: 3px solid #9b2730; outline-offset: 2px; }
.size-guide-category-picker { padding: 17px; border-color: #d9e1da; border-radius: 9px; background: #fbfcfa; }
.size-guide-category-picker legend { padding: 0 7px; font-size: .9rem; }
.size-guide-category-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 9px; }
.size-guide-category-grid .website-check { min-height: 44px; border-color: #d9e1da; background: #fff; line-height: 1.4; }
.size-guide-category-grid .website-check:has(input:checked) { border-color: #193f64; background: #eef3f8; color: #102f50; }
.size-guide-category-grid .website-check:has(input:disabled) { color: #737c75; background: #f1f2ef; }
.size-guide-category-grid input { width: 17px; height: 17px; flex: 0 0 auto; }
#website-size-guide-inventory-note { color: #56645b; font-size: .78rem; line-height: 1.5; }
.size-guide-editor > button { min-height: 44px; padding-inline: 19px; }
@media (max-width: 700px) {
  .size-guide-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .size-guide-category-grid .website-check { padding: 9px; font-size: .74rem; }
}
@media (max-width: 400px) { .size-guide-category-grid { grid-template-columns: 1fr; } }
