/* Custom soap boxes: the buy block. Uses the v3 tokens (--wt-*) from the theme. No rotated or skewed elements. */

.wtb-buy-section { padding-block: 28px 64px; background: var(--wt-white, #fbfaf7); }
.wtb-buy-section *, .wtb-buy-section *::before, .wtb-buy-section *::after { box-sizing: border-box; }
.wtb-product { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) {
	.wtb-buy-section { padding-block: 36px 88px; }
	.wtb-product { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
	.wtb-gallery { position: sticky; top: calc(var(--wt-announce-h, 36px) + var(--wt-header-h, 68px) + 20px); }
}

/* Gallery */
.wtb-gallery__main { margin: 0; overflow: hidden; border-radius: var(--wt-radius-lg, 22px); background: var(--wt-bone, #f1eee7); box-shadow: var(--wt-shadow-sm); aspect-ratio: 1 / 1; }
.wtb-gallery__main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wtb-gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.wtb-thumb { flex: 0 0 auto; width: 76px; height: 76px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: var(--wt-bone, #f1eee7); cursor: pointer; transition: border-color .2s var(--wt-ease); }
.wtb-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wtb-thumb:hover { border-color: var(--wt-border, #d4d0c7); }
.wtb-thumb.is-active { border-color: var(--wt-forest, #304036); }
.wtb-thumb:focus-visible { outline: 2px solid var(--wt-forest, #304036); outline-offset: 2px; }
.wtb-assure { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .wtb-assure { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wtb-assure li { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--wt-border-soft, #e5e1d8); border-radius: var(--wt-radius, 14px); background: var(--wt-paper, #fff); font-size: .86rem; line-height: 1.35; color: var(--wt-muted, #646159); }
.wtb-assure li b { display: block; color: var(--wt-ink, #211f1b); font-weight: 600; }
.wtb-assure .wt-icon, .wtb-specs .wt-icon, .wtb-after .wt-icon { flex: none; width: 20px; height: 20px; color: var(--wt-forest, #304036); --i-fill: var(--wt-forest, #304036); --i-knock: #fff; }

/* Buy column */
.wtb-buy .wt-kicker { margin-bottom: 10px; }
.wtb-title { margin: 0 0 12px; font-family: var(--wt-font); font-weight: 650; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.05; letter-spacing: -0.025em; color: var(--wt-ink, #211f1b); text-wrap: balance; }
.wtb-lead { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.55; color: var(--wt-ink-soft, #3a3731); max-width: 60ch; }
.wtb-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.wtb-specs li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--wt-bone, #f1eee7); font-size: .86rem; font-weight: 600; line-height: 1.2; color: var(--wt-ink-soft, #3a3731); }
.wtb-specs .wt-icon { width: 17px; height: 17px; }

.wtb-label { display: block; margin: 0 0 8px; padding: 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wt-ink, #211f1b); }
.wtb-label span { margin-left: 6px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--wt-brass-ink, #7d5f33); }
.wtb-field { margin: 0 0 20px; }
.wtb-select { position: relative; }
.wtb-select select { width: 100%; min-height: 50px; margin: 0; padding: 12px 44px 12px 16px; border: 1px solid var(--wt-border, #d4d0c7); border-radius: 12px; background: var(--wt-paper, #fff); color: var(--wt-ink, #211f1b); font-family: var(--wt-font); font-size: 1rem; font-weight: 600; -webkit-appearance: none; appearance: none; box-shadow: none; }
.wtb-select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3 5l4 4 4-4' fill='none' stroke='%233a3731' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 14px 14px; pointer-events: none; }
.wtb-hint { margin: 8px 2px 0; font-size: .86rem; line-height: 1.45; color: var(--wt-muted, #646159); }

/* Quantity table */
.wtb-qty { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.wtb-qty__table { width: 100%; margin: 0; border: 1px solid var(--wt-border, #d4d0c7); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--wt-paper, #fff); font-size: .98rem; font-variant-numeric: tabular-nums; table-layout: auto; }
.wtb-qty__table thead th { padding: 11px 10px 9px; border: 0; border-bottom: 1px solid var(--wt-border-soft, #e5e1d8); background: var(--wt-cream, #f7f5ef); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: left; color: var(--wt-muted, #646159); }
.wtb-qty__table td, .wtb-qty__table tbody th { padding: 13px 10px; border: 0; border-top: 1px solid var(--wt-border-soft, #e5e1d8); background: transparent; text-align: left; font-weight: 500; color: var(--wt-ink, #211f1b); vertical-align: middle; }
.wtb-qty__table tbody tr:first-child td, .wtb-qty__table tbody tr:first-child th { border-top: 0; }
.wtb-qty__table tbody th { font-weight: 700; }
.wtb-qty__table tbody th label { cursor: pointer; }
.wtb-row { cursor: pointer; transition: background-color .15s var(--wt-ease); }
.wtb-row:hover { background: var(--wt-cream, #f7f5ef); }
.wtb-row.is-selected { background: var(--wt-highlight, #f3efe4); }
.wtb-row--more { display: none; }
.wtb-qty.is-open .wtb-row--more { display: table-row; }
.wtb-row__pick { width: 40px; padding-right: 0 !important; }
.wtb-num { white-space: nowrap; }
.wtb-row__total { font-weight: 700 !important; }
.wtb-row__save { text-align: right !important; white-space: nowrap; }
.wtb-save { display: inline-block; padding: 3px 8px; border-radius: 999px; background: rgba(48, 64, 54, 0.09); font-size: .76rem; font-weight: 700; letter-spacing: .01em; color: var(--wt-forest, #304036); }

.wtb-qty input[type="radio"] { position: relative; width: 20px; height: 20px; margin: 0; border: 2px solid var(--wt-border, #d4d0c7); border-radius: 50%; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; vertical-align: middle; transition: border-color .15s var(--wt-ease); }
.wtb-qty input[type="radio"]:checked { border-color: var(--wt-forest, #304036); background: var(--wt-forest, #304036); box-shadow: inset 0 0 0 3px #fff; }
.wtb-qty input[type="radio"]:focus-visible { outline: 2px solid var(--wt-forest, #304036); outline-offset: 2px; }

.wtb-more-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; padding: 10px; border: 0; border-radius: 10px; background: transparent; color: var(--wt-forest-deep, #243129); font-family: var(--wt-font); font-size: .92rem; font-weight: 600; cursor: pointer; }
.wtb-more-btn:hover { background: var(--wt-cream, #f7f5ef); }
.wtb-more-btn .wt-icon { width: 16px; height: 16px; transition: transform .2s var(--wt-ease); }
.wtb-more-btn[aria-expanded="true"] .wt-icon { transform: scaleY(-1); }

.wtb-custom { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px 12px; margin-top: 10px; padding: 12px 12px 12px 10px; border: 1px solid var(--wt-border, #d4d0c7); border-radius: 14px; background: var(--wt-paper, #fff); }
.wtb-custom.is-selected { background: var(--wt-highlight, #f3efe4); border-color: var(--wt-forest, #304036); }
.wtb-custom__label { font-weight: 700; font-size: .95rem; color: var(--wt-ink, #211f1b); cursor: pointer; white-space: nowrap; }
.wtb-custom__input { width: 100%; max-width: 150px; min-height: 42px; margin: 0; padding: 8px 12px; border: 1px solid var(--wt-border, #d4d0c7); border-radius: 10px; background: #fff; color: var(--wt-ink, #211f1b); font-family: var(--wt-font); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: none; justify-self: end; }
.wtb-custom__input:focus { border-color: var(--wt-forest, #304036); outline: 2px solid rgba(48, 64, 54, .16); outline-offset: 0; }
.wtb-custom__out { grid-column: 1 / -1; font-size: .88rem; font-weight: 600; color: var(--wt-brass-ink, #7d5f33); font-variant-numeric: tabular-nums; }
.wtb-custom__out:empty { display: none; }

/* Artwork choice */
.wtb-art { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.wtb-art__opt { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid var(--wt-border, #d4d0c7); border-radius: 14px; background: var(--wt-paper, #fff); cursor: pointer; transition: border-color .15s var(--wt-ease), background-color .15s var(--wt-ease); }
.wtb-art__opt:hover { border-color: var(--wt-forest, #304036); }
.wtb-art__opt.is-selected { border-color: var(--wt-forest, #304036); background: var(--wt-highlight, #f3efe4); }
.wtb-art__opt input[type="radio"] { flex: none; margin-top: 2px; }
.wtb-art__body { display: grid; flex: 1; gap: 3px; min-width: 0; }
.wtb-art__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; justify-content: space-between; }
.wtb-art__head b { font-size: .98rem; color: var(--wt-ink, #211f1b); }
.wtb-art__head em { font-style: normal; font-size: .84rem; font-weight: 700; color: var(--wt-brass-ink, #7d5f33); font-variant-numeric: tabular-nums; }
.wtb-art__body small { font-size: .86rem; line-height: 1.4; color: var(--wt-muted, #646159); }
.wtb-art__body small a { color: var(--wt-forest, #304036); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.wtb-art input[type="radio"] { position: relative; width: 20px; height: 20px; margin: 0; border: 2px solid var(--wt-border, #d4d0c7); border-radius: 50%; background: #fff; -webkit-appearance: none; appearance: none; cursor: pointer; }
.wtb-art input[type="radio"]:checked { border-color: var(--wt-forest, #304036); background: var(--wt-forest, #304036); box-shadow: inset 0 0 0 3px #fff; }
.wtb-art input[type="radio"]:focus-visible { outline: 2px solid var(--wt-forest, #304036); outline-offset: 2px; }
.wtb-total__fee { width: 100%; font-size: .86rem; font-weight: 600; color: var(--wt-brass-ink, #7d5f33); }
.wtb-total__fee[hidden], .wtb-actions [hidden] { display: none !important; }

.wtb-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 4px 0 16px; padding: 16px 18px; border-radius: 14px; background: var(--wt-bone, #f1eee7); }
.wtb-total__label { width: 100%; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wt-muted, #646159); }
.wtb-total__price { font-size: 2rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--wt-ink, #211f1b); font-variant-numeric: tabular-nums; }
.wtb-total__unit { font-size: .92rem; font-weight: 600; color: var(--wt-ink-soft, #3a3731); font-variant-numeric: tabular-nums; }
.wtb-error { margin: -6px 0 14px; padding: 10px 14px; border-radius: 10px; background: #fbeceb; color: #8b2e2e; font-size: .92rem; font-weight: 600; }

.wtb-actions { display: grid; gap: 10px; }
.wtb-actions .wt-icon { width: 20px; height: 20px; }
.wtb-actions [aria-busy="true"] { opacity: .7; cursor: progress; }
.wtb-after { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; font-size: .92rem; color: var(--wt-ink-soft, #3a3731); }
.wtb-after li { display: flex; align-items: center; gap: 9px; margin: 0; }
.wtb-after a { color: var(--wt-forest-deep, #243129); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Below the two-column layout, get the title and price onto the first screen. */
@media (max-width: 959px) {
	.wtb-assure { display: none; }
	.wtb-gallery__main { aspect-ratio: 4 / 3; }
	.wtb-gallery__thumbs { margin-top: 10px; }
}

/* Phones: the table keeps every column without clipping. */
@media (max-width: 480px) {
	.wtb-qty__table { font-size: .92rem; }
	.wtb-qty__table td, .wtb-qty__table tbody th { padding: 12px 6px; }
	.wtb-qty__table thead th { padding: 10px 6px 8px; font-size: .66rem; letter-spacing: .06em; }
	.wtb-row__pick { width: 32px; padding-left: 10px !important; }
	.wtb-save { padding: 3px 6px; font-size: .7rem; }
	.wtb-thumb { width: 64px; height: 64px; }
	.wtb-custom { grid-template-columns: auto 1fr; }
	.wtb-custom__input { grid-column: 1 / -1; max-width: none; justify-self: stretch; }
}
@media (max-width: 359px) {
	.wtb-row__save, .wtb-qty__table thead th:last-child { display: none; }
}

/* The designer covers the page; stop the page from scrolling behind it. */
html.wtd-open, html.wtd-open body { overflow: hidden; }

/* Hidden labels for screen readers (the theme has this too; kept here so the block never shows them). */
.wtb-buy-section .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Lead text inside a dark split section (the template band) needs the light ink. */
.wt-section--dark .wt-split__text .wt-lead { color: rgba(241, 238, 231, 0.84); }
