/* Radiant DevX Pro – built-in variation swatches · Radiant DevX */
.wcbpa-sw { --wcbpa-sw-size: 34px; font-family: var(--wcbpa-font); }
.wcbpa-sw *, .wcbpa-sw-theme * { box-sizing: border-box; }

/* Keep the real <select> for WooCommerce, but hide it visually */
.wcbpa-sw__select { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wcbpa-sw--select .wcbpa-sw__select { position: static !important; width: auto; height: auto; clip: auto; clip-path: none; }

.wcbpa-sw__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0; }
.wcbpa-sw__item {
	position: relative; display: inline-flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 3px !important;
	min-width: 0 !important; min-height: 0 !important; height: auto !important; line-height: 1 !important;
	border: 2px solid transparent !important; border-radius: 50% !important; background: transparent !important; box-shadow: none !important;
	cursor: pointer; transition: border-color .15s, transform .15s; text-transform: none !important; letter-spacing: normal !important;
}
.wcbpa-sw__item:hover { transform: translateY(-1px); }
.wcbpa-sw__item.is-selected { border-color: var(--wcbpa-primary) !important; }
.wcbpa-sw__item:focus-visible { outline: 2px solid var(--wcbpa-primary); outline-offset: 2px; }
.wcbpa-sw__item.is-disabled { opacity: .35; }
.wcbpa-sw__item.is-disabled::after { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: #ef4444; transform: rotate(-45deg); border-radius: 2px; pointer-events: none; }

.wcbpa-sw__face { display: block; width: var(--wcbpa-sw-size); height: var(--wcbpa-sw-size); border-radius: 50%; }
.wcbpa-sw__face.is-color { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
.wcbpa-sw__face.is-light { box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .25); }
.wcbpa-sw__face.is-img { overflow: hidden; background: var(--wcbpa-bg); }
.wcbpa-sw__face.is-img img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }

/* Shapes */
.wcbpa-sw--rounded .wcbpa-sw__item, .wcbpa-sw--rounded .wcbpa-sw__face { border-radius: 10px !important; }
.wcbpa-sw--square .wcbpa-sw__item, .wcbpa-sw--square .wcbpa-sw__face { border-radius: 4px !important; }
.wcbpa-sw--image .wcbpa-sw__face.is-img { width: calc(var(--wcbpa-sw-size) * 1.35); height: calc(var(--wcbpa-sw-size) * 1.35); }

/* Button / text swatches */
.wcbpa-sw--button .wcbpa-sw__item, .wcbpa-sw__item:has(.is-text) { border-radius: 10px !important; padding: 0 !important; border: 0 !important; }
.wcbpa-sw__face.is-text {
	width: auto; height: auto; min-width: 46px; padding: 9px 14px; border-radius: 10px; text-align: center;
	border: 1.5px solid var(--wcbpa-border); background: var(--wcbpa-card); color: var(--wcbpa-text); font-size: 14px; font-weight: 500; line-height: 1.2;
}
.wcbpa-sw__item:hover .is-text { border-color: var(--wcbpa-primary); }
.wcbpa-sw__item.is-selected .is-text { border-color: var(--wcbpa-primary); background: color-mix(in srgb, var(--wcbpa-primary) 9%, var(--wcbpa-card)); color: var(--wcbpa-primary); font-weight: 600; box-shadow: 0 0 0 1px var(--wcbpa-primary); }
.wcbpa-sw__item.is-disabled .is-text { text-decoration: line-through; }
.wcbpa-sw__item:has(.is-text).is-disabled::after { display: none; }

.wcbpa-sw__chosen { margin-top: 6px; font-size: 13px; color: var(--wcbpa-muted); min-height: 18px; }
.wcbpa-sw__chosen strong { color: var(--wcbpa-text); }

/* WooCommerce table layout tweaks */
.variations_form .variations td.value:has(.wcbpa-sw) { padding-top: 6px; }
.variations_form .variations td.value .reset_variations { display: inline-block; margin-top: 6px; }

/* ---------- Theme option buttons decorated with colours (NatuFresh etc.) ---------- */
.wcbpa-sw-theme .wcbpa-sw-opt { display: inline-flex !important; align-items: center; gap: 7px; }
.wcbpa-sw-theme .wcbpa-sw-opt .wcbpa-sw__face { width: 18px; height: 18px; flex: none; }
.wcbpa-sw-theme--rounded .wcbpa-sw-opt .wcbpa-sw__face { border-radius: 5px; }
.wcbpa-sw-theme--square .wcbpa-sw-opt .wcbpa-sw__face { border-radius: 3px; }

/* ---------- Shop loop colour dots ---------- */
.wcbpa-sw-dots { display: flex; align-items: center; gap: 5px; margin: 6px 0 4px; }
.wcbpa-sw-dots__d { width: 14px; height: 14px; border-radius: 50%; background: #e5e7eb center/cover no-repeat; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .18); }
.wcbpa-sw-dots__more { font-size: 11.5px; color: var(--wcbpa-muted); font-weight: 600; }

/* Colour dots inside theme variation rows */
.wcbpa-sw-rowdots { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: -3px; }
.wcbpa-sw-rowdots .wcbpa-sw__face { width: 16px; height: 16px; }
