/* Atmos builders: Create popup, Mix It and Customized additions (base layouts in pages.css). */

.builder-error {
	margin: 0;
	color: #ff8a80;
	font-size: 13px;
	line-height: 1.4;
}
.builder-error:empty { display: none; }

/* ---------- Create Your Perfume popup (white box as on the live store) ---------- */
html.popup-open { overflow: hidden; }
.perfume-popup {
	width: min(500px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: rgba(18, 18, 18, 0.75);
	font-family: "Alegreya Sans", sans-serif;
	overflow: auto;
}
.perfume-popup::backdrop { background: rgba(0, 0, 0, 0.6); }
.perfume-popup__box { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px; }
.perfume-popup__close {
	position: absolute;
	top: 14px;
	right: 18px;
	width: 32px;
	height: 32px;
	border: 0;
	background: none;
	color: #111;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.perfume-popup__title { margin: 0 0 4px; color: #111; font-family: inherit; font-size: 24px; font-weight: 700; }
.perfume-popup__field { display: flex; flex-direction: column; gap: 8px; }
.perfume-popup__field > span { color: #111; font-size: 14px; font-weight: 700; }
.perfume-popup select,
.perfume-popup input[type="number"] {
	width: 100%;
	height: 42px;
	padding: 0 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	color: #000;
	font-family: inherit;
	font-size: 14px;
}
.perfume-popup select:disabled { background: #f4f4f4; color: #999; }
.perfume-popup select:focus-visible,
.perfume-popup input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.perfume-popup__price {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #f4f4f4;
}
.perfume-popup__price span { color: #111; font-size: 14px; font-weight: 700; }
.perfume-popup__price strong { color: #b8862b; font-size: 18px; }
.perfume-popup .builder-error { color: #c62828; }
.perfume-popup__submit {
	height: 46px;
	border: 0;
	border-radius: 4px;
	background: #000;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.perfume-popup__submit:hover { background: #222; }
@media (max-width: 480px) {
	.perfume-popup__box { padding: 24px 18px; gap: 14px; }
}

/* ---------- Mix It ---------- */
.mixer.is-over .mixer__fill { fill: #c0504d; }
.mixer-row input[type="range"] { cursor: pointer; }
.mixer-sizes { margin: 0 0 14px; padding: 14px 12px; border: 0; border-radius: 8px; background: #1a1a1a; }
.mixer-sizes legend { float: left; width: 100%; margin-bottom: 10px; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.mixer-sizes__pills { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.mixer-size { position: relative; }
.mixer-size input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mixer-size span {
	display: inline-block;
	min-width: 72px;
	padding: 9px 14px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 40px;
	font-size: 13px;
	text-align: center;
}
.mixer-size input:checked + span { border-color: var(--gold); background: var(--gold); color: #000; font-weight: 700; }
.mixer-size input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.mixer-size input:disabled + span { opacity: 0.35; text-decoration: line-through; }
.mixer-size input:disabled { cursor: not-allowed; }
.mixer-summary__list { margin: 0 0 6px; padding: 0; list-style: none; font-size: 13px; }
.mixer-summary__list li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.mixer-summary__list li.is-empty { color: rgba(255, 255, 255, 0.6); }
.mixer-summary__price strong { color: var(--gold); }
.mixer-summary .builder-error { padding-top: 6px; }
.mixer-summary .builder-error.is-ok { color: #8bc34a; }
.mixer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mixer-actions input {
	height: 44px;
	padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	background: #1a1a1a;
	color: #fff;
	font-size: 14px;
}
.mixer-actions .builder-btn { height: 44px; font-size: 13px; }
@media (max-width: 480px) {
	.mixer-actions { grid-template-columns: 1fr; }
}

/* ---------- Customized ---------- */
.builder-field__label { font-size: 14px; font-weight: 700; color: #fff; }
.builder-price { color: var(--gold); font-size: 18px; }
.customizer .builder-error { margin-left: 160px; }
.customizer a.builder-btn { text-decoration: none; }
@media (max-width: 849px) {
	.customizer .builder-error { margin-left: 0; }
}

/* Larger flask, closer to the live page. */
.mixer__flask { width: min(260px, 75%); }

/* Oil slider locked until a fragrance is chosen in that row. */
.mixer-row.is-locked input[type="range"] { opacity: 0.35; cursor: not-allowed; filter: grayscale(1); }
.mixer-row.is-locked .mixer-row__oil { opacity: 0.5; }
