/* Konfigurátor Arimeo v2 — jednoduchý layout (jádro + UI). */
.arimeo-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }
.arimeo-title { font-size: 1.6rem; margin-bottom: 20px; }

.arimeo-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .arimeo-grid { grid-template-columns: 1fr; } }

.arimeo-form { display: grid; gap: 18px; }
.arimeo-group { display: grid; gap: 14px; border: 1px solid #d0d7de; border-radius: 12px; padding: 14px; background: #fbfcfd; }
.arimeo-group-title { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.arimeo-step { position: relative; border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; margin: 0; background: #fff; }
.arimeo-step[hidden] { display: none; }
.arimeo-step legend { width: auto; font-weight: 600; padding: 0 6px; font-size: .95rem; }

.arimeo-radio { display: inline-flex; align-items: center; gap: 6px; margin-right: 16px; cursor: pointer; }
.arimeo-step select,
.arimeo-step input[type="number"] { padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; min-width: 90px; }

/* nápověda – skrytý help text, otevírá se klikem na otazník */
.arimeo-help-toggle {
	margin-left: 6px; width: 18px; height: 18px; padding: 0;
	border: 1px solid #c7d9f5; border-radius: 50%;
	background: #eef4ff; color: #2c4a7c;
	font-size: .72rem; font-weight: 700; line-height: 1; cursor: pointer;
	vertical-align: baseline;
}
.arimeo-help-toggle:hover { background: #dbe7fb; }
.arimeo-help-toggle[aria-expanded="true"] { background: #2c4a7c; color: #fff; border-color: #2c4a7c; }
.arimeo-help {
	position: absolute; z-index: 30; right: auto;     /* top/left dopočítává JS dle pozice otazníku */
	width: min(340px, calc(100% - 24px));
	margin: 0; padding: 25px;
	background: #fff; border: 1px solid #c7d9f5; border-radius: 8px;
	box-shadow: 0 10px 30px rgba(20, 33, 61, .20);
	color: #3a4a63; font-size: .82rem; line-height: 1.5;
}
/* Nad 800px (2sloupcový layout) – panel se smí roztáhnout přes pravý sloupec:
   ~80 % viewportu, max 740px. Šířka je vůči viewportu (vw), ne vůči sloupci,
   aby ho nedrželo calc(100%) rodiče; přesah řeší placeHelp() v arimeo.js. */
@media (min-width: 801px) {
	.arimeo-help:not(.is-seals) {
		width: min(80vw, 740px);
	}
}
/* boční špička mířící na otazník (svislá poloha přes --caretY z JS) */
.arimeo-help::before {
	content: ""; position: absolute; top: var(--caretY, 18px);
	width: 11px; height: 11px; background: #fff;
	transform: translateY(-50%) rotate(45deg);
}
/* popover vpravo od otazníku → špička na levém kraji míří doleva */
.arimeo-help::before { left: -6px; border-left: 1px solid #c7d9f5; border-bottom: 1px solid #c7d9f5; }
/* popover vlevo od otazníku → špička na pravém kraji míří doprava */
.arimeo-help.is-left::before { left: auto; right: -6px; border: 0; border-top: 1px solid #c7d9f5; border-right: 1px solid #c7d9f5; }
.arimeo-help[hidden] { display: none; }
.arimeo-help p { margin: 0 0 6px; }
.arimeo-help p:last-child { margin-bottom: 0; }
.arimeo-help a { color: #1d4ed8; text-decoration: underline; }

/* nápověda s obrázky – identifikace typu těsnění: vycentrovaný širší panel (modal-like) */
.arimeo-help.is-seals {
	position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: min(620px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);   /* dvh = reálný mobilní viewport (bez address baru) */
	display: flex; flex-direction: column;
	padding: 0; overflow: hidden;      /* scroll je na .arimeo-seals-body, ať křížek nescrolluje */
	z-index: 100001;                   /* nad hlavičkou webu (ta jede až po 99999) */
}
.arimeo-help.is-seals::before { display: none; }   /* bez boční špičky – je vycentrovaný */
.arimeo-seals-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 22px; }
.arimeo-seals-title { padding-right: 28px; }       /* ať nadpis nezaleze pod křížek */
/* zavírací křížek – přilepený v rohu, nescrolluje s obsahem */
.arimeo-seals-close {
	position: absolute; top: 8px; right: 10px; z-index: 2;
	width: 30px; height: 30px; padding: 0;
	border: 0; border-radius: 50%;
	background: #eef4ff; color: #2c4a7c;
	font-size: 1.4rem; line-height: 28px; text-align: center; cursor: pointer;
}
.arimeo-seals-close:hover { background: #dbe7fb; }
/* mobil: ukotvit odshora (ne na střed), ať vršek nezaleze pod hlavičku */
@media (max-width: 600px) {
	.arimeo-help.is-seals {
		top: 8px; transform: translateX(-50%);
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
	}
	.arimeo-seals-body { padding: 14px 16px; }
}
/* nadpisy */
.arimeo-seals-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; color: #1f2d44; }
.arimeo-seals-subtitle { margin: 16px 0 6px; font-size: .95rem; font-weight: 700; color: #1f2d44; }
/* dvě varianty (nadpis nad obrázkem, popis pod ním) */
.arimeo-seals { display: flex; gap: 18px; margin: 12px 0; }
.arimeo-seal { flex: 1 1 0; }
.arimeo-seal-cap { font-weight: 700; margin-bottom: 6px; color: #2c3e57; }
.arimeo-seals img { width: 100%; height: auto; border: 1px solid #dbe7fb; border-radius: 6px; display: block; }
.arimeo-seal-desc { margin: 8px 0 0; font-size: .82rem; line-height: 1.5; color: #3a4a63; }
@media (max-width: 560px) { .arimeo-seals { flex-direction: column; } }
/* závěr (Jak to poznáte) s pomocníčkem */
.arimeo-seals-tip { display: flex; align-items: flex-start; gap: 14px; margin-top: 6px; }
.arimeo-seals-tip img { width: 56px; height: auto; flex: none; }
.arimeo-seals-zaver { flex: 1 1 auto; }
.arimeo-seals-zaver p { margin: 0 0 6px; }
.arimeo-seals-zaver ul { margin: 0; padding-left: 18px; }
.arimeo-seals-zaver li { margin: 2px 0; }

.arimeo-dims { display: flex; align-items: center; gap: 8px; }
.arimeo-dims input { width: 90px; }
/* mobil: 3 rozměrové inputy po 90px přetékaly kartu (třetí "výška" mimo okraj).
   Selektor musí mít stejnou specificitu jako .arimeo-step input[type="number"]
   (min-width:90px na ř. 17), jinak by ho nepřebil. */
@media (max-width: 767.98px) {
	.arimeo-dims input[type="number"] { width: 57px; min-width: 57px; }
}

.arimeo-result {
	position: sticky; top: 120px;
	border: 1px solid #d0d7de; border-radius: 10px;
	padding: 16px 18px; background: #f6f8fa;
}
.arimeo-result h2 { font-size: 1.15rem; margin: 0 0 12px; }
.arimeo-result dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.arimeo-result dt { color: #57606a; font-size: .9rem; }
.arimeo-result dd { margin: 0; font-weight: 600; text-align: right; }
.arimeo-result #r-code, .arimeo-result #r-varianta { font-variant-numeric: tabular-nums; }

/* technické hodnoty – menší font, oddělené */
.arimeo-result .arimeo-aux { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #d0d7de; }
.arimeo-result .arimeo-aux dt,
.arimeo-result .arimeo-aux dd { font-size: .76rem; font-weight: 400; color: #8a94a0; }

.arimeo-warn {
	margin-top: 14px; padding: 10px 12px;
	background: #fff3cd; border: 1px solid #ffe08a; border-radius: 8px;
	color: #7a5c00; font-size: .88rem;
}
.arimeo-warn[hidden] { display: none; }

.arimeo-hint {
	margin-bottom: 12px; padding: 10px 12px;
	background: #eef4ff; border: 1px solid #c7d9f5; border-radius: 8px;
	color: #2c4a7c; font-size: .85rem;
}
.arimeo-hint[hidden] { display: none; }
.arimeo-hint-title { font-weight: 600; margin-bottom: 4px; }
.arimeo-hint ul { margin: 0; padding-left: 18px; }
.arimeo-hint li { margin: 1px 0; }

/* zvýraznění hlášení po kliknutí na neaktivní tlačítko */
@keyframes arimeo-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(44,74,124,0); } 30% { box-shadow: 0 0 0 3px rgba(44,74,124,.4); } }
.arimeo-hint.flash, .arimeo-warn.flash { animation: arimeo-flash .6s ease; }

/* místnosti */
#arimeo-rooms { display: grid; gap: 12px; }
.arimeo-room { display: grid; gap: 12px; border: 1px solid #d7dde3; border-radius: 10px; padding: 12px; background: #fff; }
.arimeo-room-head { display: flex; align-items: center; justify-content: space-between; }
.arimeo-room-title {
	font-weight: 700; font-size: .85rem; color: #374151;
	border: 1px solid transparent; background: transparent; border-radius: 6px;
	padding: 3px 6px; max-width: 60%;
}
.arimeo-room-title:hover { border-color: #d7dde3; }
.arimeo-room-title:focus { border-color: #9aa5b1; background: #fff; outline: none; }
.arimeo-room-del { border: 0; width: 26px; height: 26px; border-radius: 6px; background: #f3d3d3; color: #8a1f1f; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.arimeo-room-del:hover { background: #ecbcbc; }
.arimeo-room-add { margin-top: 4px; border: 1px dashed #9aa5b1; background: #fff; color: #374151; padding: 9px 12px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.arimeo-room-add:hover { background: #f6f8fa; }

/* per-místnost v souhrnu */
#r-rooms { margin: 8px 0; }
.arimeo-room-sum { padding: 6px 0; border-top: 1px solid #e6eaee; }
.arimeo-room-sum:first-child { border-top: 0; }
.arimeo-room-sum-head { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; }
.arimeo-room-sum-aux { font-size: .74rem; color: #8a94a0; margin-top: 2px; }

.arimeo-cart-btn {
	margin-top: 16px; width: 100%;
	padding: 11px 14px; border: 0; border-radius: 8px;
	background: #1f7a3d; color: #fff; font-weight: 600; font-size: .98rem;
	cursor: pointer;
}
.arimeo-cart-btn:hover { background: #19632f; }
.arimeo-cart-btn.is-disabled,
.arimeo-cart-btn.is-disabled:hover { background: #b8c0bb; cursor: not-allowed; }

.arimeo-cart-msg {
	margin-top: 10px; padding: 9px 12px; border-radius: 8px;
	background: #e6f4ea; border: 1px solid #b7dfc3; color: #1f5130; font-size: .88rem;
}
.arimeo-cart-msg.is-error { background: #fdeaea; border-color: #f3b9b9; color: #8a1f1f; }
.arimeo-cart-msg[hidden] { display: none; }
