/* Hosting / CMS configurator page (hosting.php). Builds on webtjek-public.css (.wtp tokens and components). */

.hst-layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 48px 0 0; }
.hst-layer { display: flex; gap: 14px; padding: 20px; }
.hst-layer h2 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.hst-layer p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--wtp-muted); }
.hst-layer__n { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 600; color: var(--wtp-accent-text); background: var(--wtp-accent-soft); border: 1px solid color-mix(in srgb, var(--wtp-accent-text) 40%, transparent); border-radius: 50%; }

.hst-builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin: 56px 0 0; }
.hst-steps { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.hst-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.hst-step legend { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--wtp-text); }
.hst-step__k { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; font-family: 'Geist Mono', monospace; font-size: 13px; font-weight: 600; color: var(--wtp-invert-text); background: var(--wtp-invert-bg); border-radius: 8px; }

/* A. Tiers */
.hst-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hst-tier { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 18px 48px; cursor: pointer; transition: border-color .15s; }
.hst-tier:hover { border-color: var(--wtp-border-3); }
.hst-tier input { position: absolute; top: 20px; left: 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--wtp-accent); }
.hst-tier:has(input:checked) { border-color: var(--wtp-accent); box-shadow: 0 0 0 1px var(--wtp-accent); }
.hst-tier:has(input:focus-visible) { outline: 2px solid var(--wtp-accent-text); outline-offset: 2px; }
.hst-tier__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hst-tier__top b { font-size: 17px; }
.hst-tier__price { font-size: 14px; font-weight: 600; color: var(--wtp-text-2); }
.hst-tier__specs { font-size: 12.5px; color: var(--wtp-accent-text); }
.hst-tier__lead { font-size: 13.5px; line-height: 1.45; color: var(--wtp-muted); }

/* B. Modules */
.hst-mods { padding: 0 18px; }
.hst-mod { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--wtp-rule); }
.hst-mod:first-child { border-top: 0; }
.hst-mod__main { flex: 1; display: flex; align-items: flex-start; gap: 12px; min-width: 0; cursor: pointer; }
.hst-mod__main input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--wtp-accent); }
.hst-mod__main b { display: block; font-size: 15px; font-weight: 600; }
.hst-mod__main small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--wtp-faint); }
.hst-mod__price { flex-shrink: 0; text-align: right; }
.hst-mod__price b { display: block; font-size: 14px; font-weight: 600; color: var(--wtp-text-2); white-space: nowrap; }
.hst-mod__price small { display: block; margin-top: 2px; font-size: 12px; color: var(--wtp-faint); white-space: nowrap; }
.hst-qty { display: inline-flex; align-items: center; flex-shrink: 0; border: 1px solid var(--wtp-border-2); border-radius: 8px; overflow: hidden; }
.hst-qty[hidden] { display: none; }
.hst-qty button { width: 32px; height: 32px; font: inherit; font-size: 16px; color: var(--wtp-text-2); background: var(--wtp-sunken); border: 0; cursor: pointer; }
.hst-qty button:hover { color: var(--wtp-text); }
.hst-qty input { width: 40px; height: 32px; padding: 0; font: inherit; font-size: 14px; text-align: center; color: var(--wtp-text); background: var(--wtp-card); border: 0; -moz-appearance: textfield; }
.hst-qty input::-webkit-outer-spin-button, .hst-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* C. Included */
.hst-incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.hst-incl li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.hst-incl li > span:nth-child(2) { flex: 1; min-width: 0; }
.hst-incl b { display: block; font-size: 14.5px; font-weight: 600; }
.hst-incl small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--wtp-faint); }

/* Summary */
.hst-sum { position: sticky; top: 100px; }
.hst-sum__card { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.hst-sum__lines { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 16px; list-style: none; border-bottom: 1px solid var(--wtp-border); }
.hst-sum__lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--wtp-text-2); }
.hst-sum__lines li span:last-child { flex-shrink: 0; color: var(--wtp-muted); white-space: nowrap; }
.hst-sum__lines li.is-sub { font-size: 12.5px; color: var(--wtp-faint); padding-left: 12px; }
.hst-sum__total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hst-sum__total > span:first-child { font-size: 14px; color: var(--wtp-muted); }
.hst-sum__total .wtp-price b { font-size: 36px; }
.hst-sum__setup { display: flex; justify-content: space-between; gap: 10px; margin-top: -8px; font-size: 14px; color: var(--wtp-muted); }
.hst-sum__setup[hidden] { display: none; }
.hst-sum__setup b { color: var(--wtp-text); }
.hst-sum__fine { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--wtp-faint); }

@media (max-width: 1000px) {
    .hst-builder { grid-template-columns: minmax(0, 1fr); }
    .hst-sum { position: static; }
}
@media (max-width: 760px) {
    .hst-layers, .hst-tiers, .hst-incl { grid-template-columns: minmax(0, 1fr); }
    .hst-mod { flex-wrap: wrap; }
    .hst-mod__main { flex-basis: 100%; }
    .hst-mod__price { margin-left: auto; }
    .hst-mod .hst-qty { margin-left: 30px; }
}
@media (max-width: 480px) {
    .wtp-wrap { padding: 0 16px; }
}
