/* =========================================================
   EGEO Product Options — Configurator Styles
   ========================================================= */

/* ---------------------------------------------------------
   Container & group spacing
   Theme handles most via .af_addon_field_class styles.
   --------------------------------------------------------- */
#egeo-configurator {
	margin-bottom: 1.5em;
}

/* Override theme margin when inside our configurator */
#egeo-configurator .egeo-group {
	margin: 0.8rem 0;
}

/* Group title — theme .af_addon_title handles bold/size;
   override font-size to match .egeo-group__label expectations */
#egeo-configurator .egeo-group__label.af_addon_title {
	font-size: 1rem;
}

/* ---------------------------------------------------------
   Image swatches — theme _addon_plugin.scss handles layout.
   The .addon-group flex wrapper and .addons_inner card are
   fully styled by the theme's .detail-right selectors.
   Only add what the theme does not cover.
   --------------------------------------------------------- */

/* No-image fallback: show term name as text card */
#egeo-configurator .addons_inner:not(:has(.option_img)) .option_name {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	font-size: 0.75rem;
	white-space: normal;
}

/* ---------------------------------------------------------
   Checkboxes
   --------------------------------------------------------- */
.egeo-checkboxes {
	list-style: none;
	margin: 0;
	padding: 0;
}

.egeo-checkboxes li {
	margin-bottom: 0.4em;
	list-style: none;
}

.egeo-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.egeo-checkbox__img {
	width: 36px;
	height: 36px;
	object-fit: contain;
	border-radius: 3px;
	flex-shrink: 0;
}

.egeo-checkbox__fee {
	font-size: 0.8rem;
	color: var(--blue);
	font-weight: 700;
}

/* ---------------------------------------------------------
   Radio buttons
   --------------------------------------------------------- */
.egeo-radios {
	list-style: none;
	margin: 0;
	padding: 0;
}

.egeo-radios li {
	margin-bottom: 0.4em;
	list-style: none;
}

.egeo-radio-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.egeo-radio__fee {
	font-size: 0.8rem;
	color: #555;
}

/* ---------------------------------------------------------
   Select
   --------------------------------------------------------- */
.egeo-select {
	width: 100%;
	max-width: 380px;
	padding: 0.45em 0.65em;
	font-size: 0.9rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
}

/* ---------------------------------------------------------
   Choices summary
   --------------------------------------------------------- */
.egeo-choices-summary {
	margin: 0.5em 0 0;
}

.egeo-summary-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	background-color: #e4e4e4;
}

.egeo-summary-table td {
	vertical-align: top;
}

.egeo-summary-table tr:first-child td {
	padding-top: 10px;
}

.egeo-summary-table tr:last-child td {
	padding-bottom: 10px;
}

.egeo-summary-name {
	width: 100%;
	color: #444;
	padding: 0 0 0 10px;
}

.egeo-summary-price {
	white-space: nowrap;
	text-align: right;
	padding-right: 10px;
	color: #444;
	font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   Live price
   --------------------------------------------------------- */
.egeo-price-row {
	margin: 1em 0 0.75em;
	padding-top: 1em;
	padding-bottom: 1em;
}

.egeo-price-row .egeo-price-label {
	font-weight: 700;
}

.egeo-price-row .egeo-live-price {
	font-size: var(--h1, clamp(24px, 4vw, 30px));
	font-weight: 700;
	color: var(--blue, #33BAEC);
}

/* ---------------------------------------------------------
   Inline validation error
   --------------------------------------------------------- */
.egeo-error {
	color: #c00;
	font-size: 0.8rem;
	margin: 4px 0 0;
}


/* ---------------------------------------------------------
   Konfigurátor heading — match theme's .af_addon_field_show rule
   --------------------------------------------------------- */
.egeo-configurator > .maintitle-konfigurator {
order: 0;
font-size: var(--h3);
font-weight: 900;
text-transform: uppercase;
color: var(--dark);
margin: 2rem 0 .4rem 0;
display: block;
}

/* ---------------------------------------------------------
   Image swatch magnifier (fancybox preview link)
   Hidden by default; shown only for groups whose slug contains
   'farb', 'sklo', or 'dekor' — matching theme CSS behaviour.
   --------------------------------------------------------- */
#egeo-configurator .option_img {
	position: relative;
	display: block;
}
#egeo-configurator .option_img a {
	display: none;
	position: absolute;
	bottom: 0;
	left: -1px;
	z-index: 2;
	background: #fff;
	text-decoration: none;
	padding: 4px 6px;
	border-radius: 0 5px 0 0;
}
#egeo-configurator .option_img a i {
	display: block;
	font-size: 13px;
}
#egeo-configurator div[class*=farb] .option_img a,
#egeo-configurator div[class*=sklo] .option_img a,
#egeo-configurator div[class*=dekor] .option_img a {
	display: block;
}
