/* Rad Covers configurator */
.rc-config { --rc-green: var(--wp--preset--color--emerald, #006837); --rc-forest: var(--wp--preset--color--forest, #002312); --rc-gold: var(--wp--preset--color--gold, #d1b474); --rc-line: #d9d2c3; display: block !important; margin: 0 0 20px; }
.rc-config * { box-sizing: border-box; }
.rc-cfg-section { margin: 0 0 16px; }
.rc-cfg-h { display: flex; align-items: center; gap: 10px; font: 500 17px/1.2 var(--wp--preset--font-family--alata, sans-serif); color: var(--wp--preset--color--charcoal, #3a3a3a); margin: 0 0 12px; }
.rc-cfg-h span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rc-green); color: #fff; font-size: 13px; }
.rc-cfg-h small { font: 400 13px var(--wp--preset--font-family--roboto, sans-serif); color: #7a7a7a; }
.rc-cfg-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.rc-field label { display: block; font-size: 13px; font-weight: 500; margin: 0 0 6px; color: #3a3a3a; }
.rc-field input, .rc-field select, .rc-config .qty { width: 100%; padding: 12px 14px; border: 1px solid var(--rc-line); border-radius: 10px; background: #fff; font-size: 16px; min-height: 48px; }
.rc-field input:focus, .rc-field select:focus, .rc-config .qty:focus { outline: 2px solid var(--rc-green); outline-offset: 1px; }
.rc-hint { font-size: 13px; color: #7a7a7a; margin: 6px 0 0; }
.rc-width-msg { font-size: 14px; color: var(--rc-green); margin: 10px 0 0; min-height: 20px; }
.rc-width-msg.is-error { color: #b84d4d; font-weight: 500; }
.rc-grp { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7a7a7a; margin: 14px 0 8px; }
.rc-finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rc-finish { position: relative; cursor: pointer; }
.rc-finish input { position: absolute; opacity: 0; inset: 0; }
.rc-finish-card { display: grid; gap: 2px; justify-items: start; padding: 12px; border: 1.5px solid var(--rc-line); border-radius: 12px; background: #fff; height: 100%; transition: border-color .15s, box-shadow .15s; }
.rc-finish-card b { font-size: 14px; font-weight: 500; }
.rc-finish-card em { font-style: normal; font-size: 12px; color: #7a7a7a; }
.rc-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); margin-bottom: 6px; }
.rc-finish input:checked + .rc-finish-card { border-color: var(--rc-green); box-shadow: 0 0 0 2px var(--rc-green) inset; background: #f6faf7; }
.rc-finish input:focus-visible + .rc-finish-card { outline: 2px solid var(--rc-forest); outline-offset: 2px; }
.rc-ral { margin-top: 14px; padding: 16px; border: 1px solid var(--rc-line); border-radius: 14px; background: #fbf9f4; }
.rc-ral[hidden] { display: none; }
.rc-ral-selected, .rc-ral-sug { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.rc-ral-selected { padding: 10px 12px; background: #fff; border-radius: 10px; border: 1px dashed var(--rc-line); margin-bottom: 12px; }
.rc-ral-selected i, .rc-ral-sug i { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0,0,0,.15); flex: none; }
.rc-ral-tools { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.rc-ral-match { margin: 14px 0; }
.rc-ral-match > label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.rc-ral-match-row { display: flex; gap: 10px; align-items: center; }
.rc-ral-match input[type=color] { width: 56px; height: 48px; padding: 3px; border: 1px solid var(--rc-line); border-radius: 10px; background: #fff; cursor: pointer; }
.rc-btn-ghost, .rc-ral-sug { border: 1.5px solid var(--rc-green); color: var(--rc-green); background: #fff; border-radius: 50px; padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer; }
.rc-ral-sug { border-radius: 12px; margin-top: 8px; width: 100%; text-align: left; color: #3a3a3a; }
.rc-btn-ghost:hover, .rc-ral-sug:hover { background: #f1f7f3; }
.rc-ral-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; max-height: 260px; overflow: auto; padding: 4px; margin: 10px 0; background: #fff; border-radius: 10px; border: 1px solid var(--rc-line); }
.rc-ral-chip { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border: 1.5px solid transparent; border-radius: 8px; background: none; cursor: pointer; font-size: 11px; color: #3a3a3a; }
.rc-ral-chip i { width: 100%; height: 30px; border-radius: 6px; border: 1px solid rgba(0,0,0,.15); }
.rc-ral-chip:hover { border-color: var(--rc-line); }
.rc-ral-chip.is-on { border-color: var(--rc-green); background: #f1f7f3; font-weight: 600; }
.rc-qty-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rc-config .quantity { width: 96px; }
.rc-deal { margin: 0; padding: 10px 14px; background: #fff7e0; border-left: 3px solid var(--rc-gold); border-radius: 0 8px 8px 0; font-size: 14px; }
.rc-summary { background: #f6f1e7; border-radius: 14px; padding: 16px 18px; margin: 0 0 16px; }
.rc-sum-line { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; font-size: 15px; }
.rc-sum-line[hidden] { display: none; }
.rc-sum-total { border-top: 1px solid #d9cfb9; margin-top: 6px; padding-top: 10px; font-size: 18px; }
.rc-sum-total b { font: 500 26px var(--wp--preset--font-family--alata, sans-serif); color: var(--rc-green); }
.rc-sum-line small { font-size: 12px; color: #7a7a7a; }
.rc-config .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.rc-from { font-size: .55em; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
@media (max-width: 600px) {
	.rc-cfg-row { grid-template-columns: 1fr 1fr; } .rc-cfg-row .rc-field:first-child { grid-column: 1 / -1; }
	.rc-finishes { grid-template-columns: 1fr; gap: 8px; } .rc-ral-tools { grid-template-columns: 1fr; }
}

/* Sliders + isometric drawing. Desktop (1024px+) for every product; mobile/tablet only where the form has .rc-mx (experiment). */
.rc-sl-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 4px; }
.rc-sl-head label { font-size: 13px; font-weight: 500; color: #3a3a3a; }
.rc-sl-head output { font: 500 18px var(--wp--preset--font-family--alata, sans-serif); color: var(--rc-green); }
.rc-sl-row { display: flex; align-items: center; gap: 10px; }
.rc-step { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--rc-line); background: #fff; color: var(--rc-green); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.rc-step:hover { border-color: var(--rc-green); background: #f1f7f3; }
.rc-step:focus-visible { outline: 2px solid var(--rc-forest); outline-offset: 2px; }
.rc-sl-scale { display: flex; justify-content: space-between; margin: 2px 44px 0; font-size: 11px; color: #9a9a9a; }
.rc-field .rc-ui-slider input[type=range] { padding: 0; border: 0; min-height: 30px; border-radius: 0; background: transparent; -webkit-appearance: none; appearance: none; flex: 1; height: 30px; background: transparent; cursor: pointer; margin: 0; }
.rc-ui-slider input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--rc-green), var(--rc-gold)); }
.rc-ui-slider input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--rc-green), var(--rc-gold)); }
.rc-ui-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 3px solid var(--rc-green); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.rc-ui-slider input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--rc-green); box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.rc-ui-slider input[type=range]:focus-visible { outline: 2px solid var(--rc-forest); outline-offset: 3px; border-radius: 6px; }
.rc-iso { padding: 10px 10px 8px; background: #fbf9f4; border: 1px solid var(--rc-line); border-radius: 14px; }
.rc-iso svg { display: block; width: 100%; height: auto; }
.rc-iso figcaption { text-align: center; font-size: 12px; color: #8a8a8a; margin-top: 4px; }
.rc-ui-slider, .rc-iso, .rc-toggle-wrap, .rc-iso-price { display: none; }
@media (min-width: 1024px) {
	.rc-ui-select { display: none; }
	.rc-ui-slider { display: block; }
	.rc-cfg-row { grid-template-columns: 1fr; gap: 14px; }
	/* Sections 1 and 2 share one container (.rc-steps), so the drawing sticks once it reaches the top
	   and is released when section 3 (Quantity) arrives. */
	.rc-steps { display: flex; flex-direction: column; }
	.rc-size { display: contents; }
	.rc-size .rc-cfg-h { order: 0; margin-bottom: 12px; }
	.rc-cfg-row { order: 1; }
	.rc-iso { order: 2; display: block; margin: 16px 0; position: sticky; top: var(--rc-stick, 80px); z-index: 5; box-shadow: 0 8px 18px rgba(0,0,0,.08); }
	.rc-finish-sec { order: 3; }
}
@media (max-width: 1023px) {
	/* Sections 1 and 2 share one container, so the drawing stays pinned until section 3. */
	.rc-mx .rc-steps { display: flex; flex-direction: column; }
	.rc-mx .rc-size { display: contents; }
	.rc-mx .rc-finish-sec { order: 4; margin-top: 16px; }
	.rc-mx .rc-size .rc-cfg-h { order: 0; }
	.rc-mx .rc-iso { order: 1; display: block; position: sticky; top: var(--rc-stick, 70px); z-index: 5; margin: 0 0 14px; padding: 8px 10px 6px; box-shadow: 0 8px 18px rgba(0,0,0,.10); }
	.rc-mx .rc-iso svg { width: 100%; height: 145px; }
	.rc-mx .rc-iso figcaption { display: none; }
	.rc-mx .rc-iso-price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 6px 4px 0; border-top: 1px solid #eee7d8; margin-top: 4px; font-size: 13px; color: #54595f; }
	.rc-mx .rc-iso-price b { font: 500 18px var(--wp--preset--font-family--alata, sans-serif); color: var(--rc-green); }
	.rc-mx .rc-cfg-row { order: 2; grid-template-columns: 1fr; gap: 16px; }
	.rc-mx .rc-ui-select { display: none; }
	.rc-mx .rc-ui-slider { display: block; }
	.rc-mx.rc-show-selects .rc-ui-slider { display: none; }
	.rc-mx.rc-show-selects .rc-ui-select { display: block; }
	.rc-mx.rc-show-selects .rc-cfg-row { grid-template-columns: 1fr 1fr; }
	.rc-mx.rc-show-selects .rc-dim:first-child { grid-column: 1 / -1; }
	.rc-mx .rc-step { width: 44px; height: 44px; font-size: 24px; }
	.rc-mx .rc-sl-scale { margin: 0 54px; }
	.rc-mx .rc-ui-slider input[type=range] { min-height: 44px; touch-action: pan-y; }
	.rc-mx .rc-ui-slider input[type=range]::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -12px; }
	.rc-mx .rc-ui-slider input[type=range]::-moz-range-thumb { width: 24px; height: 24px; }
	.rc-mx .rc-toggle-wrap { order: 3; display: block; }
	.rc-mx .rc-toggle-exact { display: block; margin: 10px 0 0; padding: 4px 0; background: none; border: 0; color: var(--rc-green); text-decoration: underline; font-size: 14px; cursor: pointer; text-align: left; }
}
.rc-config p:empty { display: none; margin: 0; }

/* Phones: each finish is a single compact row (swatch, name, price effect) */
@media (max-width: 600px) {
	.rc-finishes { grid-template-columns: 1fr; gap: 8px; }
	.rc-finish-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 48px; }
	.rc-finish-card .rc-dot { margin: 0; flex: none; width: 24px; height: 24px; }
	.rc-finish-card b { flex: 1; font-size: 15px; }
	.rc-finish-card em { margin-left: auto; font-size: 13px; white-space: nowrap; }
	.rc-grp { margin: 12px 0 6px; }
}

.rc-grp-note { text-transform: none; letter-spacing: 0; font-size: 12px; color: #9a9a9a; margin-left: 6px; }

.rc-size-note { margin: 0 0 14px; padding: 10px 14px; background: #fff7e0; border-left: 3px solid var(--rc-gold); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.5; color: #3a3a3a; }
@media (min-width: 1024px) { .rc-size-note { order: 0; } }
