/* ST Product Add-ons — frontend (dark mode)
   Brand: #CE6757 accents, balts teksts, transparent fons ar light border.
   Bloks ar JS tiek pārvietots aiz add-to-cart formas (pilns platums). */

body .single-product .st-addons-wrap,
body .st-addons-wrap {
	clear: both !important;
	width: 100% !important;
	max-width: 520px;
	margin: 0 0 20px !important;
	padding: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
}

.st-addons-wrap .st-addons-title {
	margin: 0 0 12px !important;
	font-weight: 600;
	font-size: 15px;
	color: #fff !important;
	letter-spacing: .01em;
}

.st-addons-wrap .st-addon-option {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 11px 14px !important;
	margin: 0 0 8px !important;
	background: transparent !important;
	border: 1px solid #262626 !important;
	border-radius: 3px !important;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
	box-shadow: none !important;
}
.st-addons-wrap .st-addon-option:last-child { margin-bottom: 0 !important; }

.st-addons-wrap .st-addon-option:hover {
	border-color: #CE6757 !important;
	background: rgba( 206, 103, 87, .06 ) !important;
}

.st-addons-wrap .st-addon-input {
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	accent-color: #CE6757;
	cursor: pointer;
	flex-shrink: 0;
}

/* Atzīmēta opcija */
.st-addons-wrap .st-addon-option:has( .st-addon-input:checked ) {
	border-color: #CE6757 !important;
	background: rgba( 206, 103, 87, .08 ) !important;
	box-shadow: 0 0 0 1px #CE6757 inset !important;
	border-radius: 3px !important;
}

.st-addons-wrap .st-addon-label {
	flex: 1;
	color: #fff !important;
	font-size: 14px;
	line-height: 1.4;
}

.st-addons-wrap .st-addon-plus {
	font-weight: 600;
	color: #CE6757 !important;
	font-size: 14px;
	white-space: nowrap;
}

/* Cenas piezīme blakus cenai TAJĀ PAŠĀ rindā */
.st-addon-note {
	display: inline !important;
	margin-left: 6px;
	font-size: .72em;
	font-weight: 400;
	line-height: 1.3;
	color: rgba( 255, 255, 255, .55 );
	white-space: normal;
}

/* Bundle KOPCENA (mūsu atsevišķais bloks ar gala summu + piezīmi). */
.st-bundle-total {
	margin: 0;
}
.st-bundle-total .price {
	display: block;
}
.st-bundle-total .st-addon-note {
	color: rgba( 255, 255, 255, .55 );
}

/* ------------------------------------------------------------------
   Parastā produkta lapa (TheGem): add-on wrap atrodas flex-konteinerā
   .woocommerce-variation-add-to-cart kopā ar .quantity un pogu, tāpēc
   viss sakrīt vienā rindā. Padarām konteineru wrap un add-on bloku
   pilna platuma → daudzums + poga aiziet uz nākamo rindu.
   ------------------------------------------------------------------ */
.single-product .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center;
}
.single-product .woocommerce-variation-add-to-cart .st-addons-wrap,
.single-product .st-addons-wrap {
	order: -1;            /* add-on bloks pirmais */
	flex: 0 0 100% !important;   /* aizņem visu rindu — nekas neiet blakus */
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
	padding: 4px 0;
}

/* Iekšējais saturs kompakts (ne izstiepts), kamēr pats bloks ir full-width
   un tādējādi izstumj daudzumu + pogu uz nākamo rindu. */
.single-product .st-addons-wrap .st-addons-title,
.single-product .st-addons-wrap .st-addon-option {
	max-width: 420px;
}

/* Mobilā: pilns platums arī iekšpusē */
@media ( max-width: 768px ) {
	.single-product .st-addons-wrap .st-addons-title,
	.single-product .st-addons-wrap .st-addon-option {
		max-width: 100%;
	}
}

/* Grozā: add-on rindas zem produkta */
.st-cart-addon {
	display: block;
	font-size: .85em;
	color: #777;
	margin-top: 3px;
}