/* ---- Size & Color as native-style module tabs ---- */

/* nav icon column: stack icon over label like the built-in modules */
.fpd-nav-item.fpd-sc-nav { flex-direction: column; }
.fpd-nav-item.fpd-sc-nav svg { width: 24px; max-height: 28px; }
.fpd-nav-item.fpd-sc-nav .fpd-label { line-height: 1.1; font-size: 11px; }

/* our content panels: hidden unless active; when active, fill the column top-down */
.fpd-module-content { position: relative; }
.fpd-module-content > .fpd-sc-panel { display: none; }
.fpd-module-content > .fpd-sc-panel.fpd-active {
	display: block;
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	overflow-y: auto;
}

.fpd-sc-panel { padding: 16px; box-sizing: border-box; }
.fpd-sc-heading {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #333;
	margin-bottom: 12px;
}

/* sizes */
.fpd-sc-panel .fpd-sc-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.fpd-sc-panel .fpd-sc-size {
	min-width: 46px;
	padding: 10px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #222;
	transition: all .15s ease;
}
.fpd-sc-panel .fpd-sc-size:hover { border-color: #888; }
.fpd-sc-panel .fpd-sc-size.is-selected { background: #1c1c1c; color: #fff; border-color: #1c1c1c; }

/* colors: grid of real-colour circle swatches with a name under each */
.fpd-sc-panel .fpd-sc-colors { display: flex; flex-wrap: wrap; gap: 14px; }
.fpd-sc-panel .fpd-sc-color {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	width: 66px;
	padding: 4px !important;
	margin: 0 !important;
	background: transparent !important;   /* beat FPD's green button theme */
	border: none !important;
	box-shadow: none !important;
	cursor: pointer;
}
.fpd-sc-panel .fpd-sc-color .fpd-sc-dot {
	width: 42px; height: 42px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0,0,0,.18);
	transition: transform .12s ease, box-shadow .12s ease;
}
.fpd-sc-panel .fpd-sc-color .fpd-sc-color-name {
	font-size: 12px;
	font-weight: 600;
	color: #333;
	line-height: 1.1;
	text-align: center;
}
.fpd-sc-panel .fpd-sc-color:hover .fpd-sc-dot { transform: scale(1.07); }
.fpd-sc-panel .fpd-sc-color.is-selected .fpd-sc-dot { box-shadow: 0 0 0 2px #1c1c1c; transform: scale(1.12); }

/* hide native variation table on the product page behind the popup */
.variations_form .variations { display: none !important; }