/* Size finder (layout_blocks/size_finder_block.php). Theme look: ABC Favorit, blue #3D5B9E, orange #F47B20,
   square corners, hard shadow. */
.sf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; color: #1b2440; }
.sf[hidden] { display: none; }
.sf-noscript { font-weight: 700; color: #3D5B9E; }

.sf-q { background: #fff; border: 2px solid #3D5B9E; box-shadow: 6px 6px 0 -1px var(--theme-dark, #1b2440); padding: 26px; margin: 0; }
.sf .sf-q .sf-title { margin: 0 0 4px; color: #3D5B9E; font-weight: 800; font-size: clamp(26px, 18px + 1.2vw, 34px); line-height: 1.1; }
.sf-intro { margin: 0 0 18px; font-size: 15px; color: #4a5470; }
.sf-step { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.sf-step legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 800; font-size: 18px; }
.sf-step legend small { font-weight: 500; font-size: 14px; color: #4a5470; }
.sf-step output { font-size: 32px; color: #F47B20; font-weight: 800; }
.sf-step input[type=range] { width: 100%; accent-color: #F47B20; margin: 4px 0 10px; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chip { padding: 8px 14px; min-height: 42px; border: 2px solid #c9d1e4; background: #fff; color: #1b2440; font-weight: 700; cursor: pointer; }
.sf-chip[aria-pressed="true"] { background: #F47B20; border-color: #F47B20; }
.sf-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sf-style { text-align: left; padding: 12px; min-height: 64px; border: 2px solid #c9d1e4; background: #fff; color: #1b2440; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.sf-style b { font-size: 16px; }
.sf-style small { font-size: 13px; color: #4a5470; }
.sf-style[aria-pressed="true"] { border-color: #F47B20; background: #fff4ea; }
.sf-space { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.sf-space label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.sf-space input { width: 110px; padding: 10px; border: 2px solid #c9d1e4; min-height: 46px; }
.sf-space span { padding-bottom: 12px; font-weight: 700; }
.sf-link { background: none; border: 0; color: #3D5B9E; text-decoration: underline; padding: 12px 4px; cursor: pointer; }
.sf-hint { margin: 8px 0 0; font-size: 14px; color: #4a5470; }
.sf-hint.is-ok { color: #1f6b45; font-weight: 600; }
.sf-photos { display: inline-flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.sf-note { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; }
.sf-step textarea { width: 100%; padding: 10px; border: 2px solid #c9d1e4; resize: vertical; margin-top: 4px; }
.sf-chip:focus-visible, .sf-style:focus-visible, .sf-alt:focus-visible, .sf-link:focus-visible { outline: 3px solid #F47B20; outline-offset: 2px; }

.sf-r { background: #3D5B9E; color: #fff; padding: 26px; box-shadow: 6px 6px 0 -1px var(--theme-dark, #1b2440); }
.sf-r__kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #dfe5f3; }
.sf-r__size { margin: 2px 0; font-size: clamp(38px, 26px + 2vw, 54px); line-height: 1; font-weight: 800; }
.sf-r__holds { margin: 0 0 16px; color: #dfe5f3; }
.sf-r__draw { margin: 0; background: #fff; padding: 12px; }
.sf-r__draw svg { display: block; width: 100%; height: auto; max-height: 260px; }
.sf-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; color: #1b2440; }
.sf-key i { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.sf-key .k-tent { background: #e9d9ad; border: 1px solid #ae9356; }
.sf-key .k-clear { border: 2px dashed #F47B20; }
.sf-key .k-space { background: #cfe3b8; border: 1px solid #6f9a5a; }
.sf-fit { margin: 14px 0 0; padding: 10px 12px; font-weight: 700; color: #1b2440; background: #dfe5f3; }
.sf-fit.is-none { background: rgba(255, 255, 255, .14); color: #fff; }
.sf-fit.is-fits { background: #d8f0d0; }
.sf-fit.is-tight { background: #fff1d6; }
.sf-fit.is-no { background: #ffe0d6; }
.sf-alts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; font-size: 14px; color: #dfe5f3; }
.sf-alt { background: transparent; border: 1px solid #fff; color: #fff; padding: 6px 10px; min-height: 36px; cursor: pointer; }
.sf-plan { display: block; width: 100%; height: 200px; object-fit: contain; background: #fff; margin: 14px 0 0; }
.sf-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 18px; }
.sf-ask { color: #fff; font-weight: 700; padding: 12px 6px; text-decoration: underline; }
.sf-ask:hover { color: #fff; }
.sf-fallback { margin: 14px 0 0; padding: 10px 12px; background: #fff4ea; color: #1b2440; font-weight: 700; }

@media (max-width: 991px) {
	.sf { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
	.sf-q, .sf-r { padding: 18px; }
	.sf-styles { grid-template-columns: 1fr; }
	.sf-space input { width: 96px; }
}
.sf-handoff { margin: 0 0 16px; padding: 12px 14px; background: #fff4ea; border: 2px solid #F47B20; color: #1b2440; font-weight: 700; }
.st-stock { width: 100%; border-collapse: collapse; margin: 24px 0; color: #3D5B9E; background: #fff; }
.st-stock th, .st-stock td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 2px solid #3D5B9E; }
.st-stock thead th { background: #3D5B9E; color: #fff; font-weight: 800; }
.st-stock tbody th { width: 30%; font-weight: 800; white-space: nowrap; }
.st-stock td { line-height: 1.7; }
.st-stock td span { display: inline-block; white-space: nowrap; margin-right: 14px; }

@media (max-width: 575px) {
	.st-stock thead { display: none; }
	.st-stock tr { display: block; border-bottom: 2px solid #3D5B9E; padding: 12px 0; }
	.st-stock th, .st-stock td { display: block; border: 0; padding: 2px 0; width: auto; }
	.st-stock tbody th { font-size: 18px; }
}
@media (max-width: 575px) { .st-stock td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; } }

/* Evening options with a photo (16 Nov 2026) */
.sf-style.has-pic { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.sf-style.has-pic .sf-pic { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: #e9edf5 center / cover no-repeat; border: 1px solid rgba(0, 0, 0, .12); }
.sf-style.has-pic b { align-self: end; }
.sf-style.has-pic small { align-self: start; }
@media (max-width: 575px) { .sf-style.has-pic { grid-template-columns: 48px minmax(0, 1fr); } .sf-style.has-pic .sf-pic { width: 48px; height: 48px; } }
