/* PC-configurator ------------------------------------------------------------ */

.hf-pc { margin: 0 0 2rem; }
.hf-pc-intro { color: var(--hf-muted); max-width: 760px; }
.hf-pc-testbar { background: #fff4e5; border-left: 4px solid #e69500; padding: 8px 14px; border-radius: var(--hf-radius-sm); font-size: .9rem; }
.hf-pc-alert { background: #fdecea; border-left: 4px solid var(--hf-accent); padding: 10px 14px; border-radius: var(--hf-radius-sm); margin: 0 0 1rem; }
.hf-pc-loading { color: var(--hf-muted); padding: 2rem 0; }
.hf-pc-closed { background: var(--hf-soft); padding: 1.2rem 1.4rem; border-radius: var(--hf-radius); }

.hf-pc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }

.hf-pc-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hf-pc-slot { border: 1px solid var(--hf-line); border-radius: var(--hf-radius); background: #fff; padding: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.hf-pc-slot.is-open { border-color: var(--hf-primary); box-shadow: var(--hf-shadow); }
.hf-pc-slot.is-error { border-color: var(--hf-accent); }
.hf-pc-slot-head { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 6px 16px; align-items: center; }
.hf-pc-slot-label { font-family: var(--hf-head); font-weight: 700; font-size: 1rem; }
.hf-pc-slot-label small { display: block; font-family: var(--hf-font); font-weight: 400; color: var(--hf-muted); font-size: .78rem; }
.hf-pc-slot-choice { min-width: 0; font-size: .95rem; line-height: 1.4; }
.hf-pc-slot-choice strong { font-weight: 600; display: block; overflow-wrap: anywhere; }
.hf-pc-empty { color: var(--hf-muted); }
.hf-pc-slot-price { font-weight: 700; white-space: nowrap; }
.hf-pc-slot-actions { display: flex; align-items: center; gap: 6px; }
.hf-pc-slot-actions .hf-btn { padding: 8px 16px; font-size: .9rem; min-height: 0; }
.hf-pc-remove { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--hf-muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.hf-pc-remove:hover { color: var(--hf-accent); background: var(--hf-soft); }
.hf-pc-msg { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--hf-radius-sm); background: #fdecea; color: #8c1d16; font-size: .9rem; }
.hf-pc-msg.is-warn { background: #fff4e5; color: #7a4b00; }

.hf-pc-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hf-pc-badges span { font-size: .74rem; line-height: 1.5; padding: 0 7px; border-radius: 99px; background: var(--hf-sky); color: var(--hf-ink); white-space: nowrap; }

.hf-pc-windows { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hf-pc-windows label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.hf-pc-windows label span { color: var(--hf-muted); font-size: .88rem; }

.hf-pc-picker { margin-top: 14px; border-top: 1px solid var(--hf-line); padding-top: 14px; }
.hf-pc-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-bottom: 10px; }
.hf-pc-search { flex: 1 1 240px; padding: 10px 12px; border: 1px solid var(--hf-line); border-radius: var(--hf-radius-sm); font: inherit; font-size: .95rem; }
.hf-pc-all { font-size: .85rem; color: var(--hf-muted); display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.hf-pc-options { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; border: 1px solid var(--hf-line); border-radius: var(--hf-radius-sm); }
.hf-pc-options li + li { border-top: 1px solid var(--hf-line); }
.hf-pc-option { display: flex; width: 100%; gap: 12px; justify-content: space-between; align-items: center; text-align: left; background: #fff; border: 0; padding: 10px 12px; cursor: pointer; font: inherit; font-size: .92rem; color: var(--hf-ink); }
.hf-pc-option:hover, .hf-pc-option:focus-visible { background: var(--hf-soft); }
.hf-pc-option.is-on { background: var(--hf-sky); box-shadow: inset 3px 0 0 var(--hf-primary); }
.hf-pc-option.is-conflict { color: var(--hf-muted); }
.hf-pc-oname { min-width: 0; overflow-wrap: anywhere; }
.hf-pc-oprice { text-align: right; font-weight: 700; white-space: nowrap; }
.hf-pc-oprice small { display: block; font-weight: 400; color: var(--hf-muted); font-size: .78rem; }
.hf-pc-why { display: block; color: #8c1d16; font-size: .8rem; margin-top: 3px; }
.hf-pc-tip { font-style: normal; font-size: .72rem; font-weight: 700; background: var(--hf-green); color: #fff; border-radius: 99px; padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }
.hf-pc-none { padding: 14px; color: var(--hf-muted); }
.hf-pc-more { margin-top: 10px; }

.hf-pc-summary { position: sticky; top: calc(var(--hf-header-h) + 16px); }
.hf-pc-card { border: 1px solid var(--hf-line); border-radius: var(--hf-radius); padding: 20px; background: #fff; box-shadow: var(--hf-shadow); display: grid; gap: 10px; }
.hf-pc-card h2 { font-size: 1.3rem; margin: 0; }
.hf-pc-lines { list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.hf-pc-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--hf-line); }
.hf-pc-lines b { font-weight: 600; white-space: nowrap; }
.hf-pc-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--hf-head); }
.hf-pc-total strong { font-size: 1.7rem; font-weight: 800; }
.hf-pc-vat { margin: -6px 0 4px; font-size: .82rem; color: var(--hf-muted); }
.hf-pc-todo { background: var(--hf-soft); border-radius: var(--hf-radius-sm); padding: 10px 12px; font-size: .86rem; }
.hf-pc-todo ul { margin: 6px 0 0; padding-left: 18px; }
.hf-pc-summary { min-width: 0; }
.hf-pc-card .hf-btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.hf-pc-card .hf-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.hf-pc-link { background: none; border: 0; color: var(--hf-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .88rem; }
.hf-pc-qform[hidden] { display: none; }
.hf-pc-qform { display: grid; gap: 10px; border-top: 1px solid var(--hf-line); padding-top: 12px; }
.hf-pc-qform h3 { margin: 0; font-size: 1.05rem; }
.hf-pc-qform p { margin: 0; font-size: .88rem; color: var(--hf-muted); }
.hf-pc-qform label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.hf-pc-qform input, .hf-pc-qform textarea { font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid var(--hf-line); border-radius: var(--hf-radius-sm); }
.hf-pc-qform .hf-pc-hp { position: absolute; left: -9999px; }
.hf-pc-qmsg { color: #8c1d16 !important; }
.hf-pc-thanks { color: var(--hf-ink) !important; font-size: .95rem !important; }

.hf-pc-bar { display: none; }

@media (max-width: 960px) {
	.hf-pc-grid { grid-template-columns: 1fr; }
	.hf-pc-summary { position: static; }
	.hf-pc-bar { display: flex; position: sticky; bottom: 0; z-index: 20; justify-content: space-between; align-items: center; gap: 12px; margin: 16px -20px 0; padding: 10px 20px; background: #fff; border-top: 1px solid var(--hf-line); box-shadow: 0 -6px 20px rgba(21, 23, 28, .08); }
	.hf-pc-bar span { color: var(--hf-muted); font-size: .85rem; }
	.hf-pc-bar strong { font-family: var(--hf-head); font-size: 1.25rem; }
	.hf-pc-bar .hf-btn { padding: 9px 18px; }
}

@media (max-width: 640px) {
	.hf-pc-slot { padding: 12px; }
	.hf-pc-slot-head { grid-template-columns: minmax(0, 1fr) auto; }
	.hf-pc-slot-label { grid-column: 1 / -1; }
	.hf-pc-slot-choice { grid-column: 1 / 2; }
	.hf-pc-slot-price { grid-column: 2 / 3; grid-row: 2; align-self: start; }
	.hf-pc-slot-actions { grid-column: 1 / -1; }
	.hf-pc-slot-actions .hf-btn { flex: 1; justify-content: center; }
	.hf-pc-options { max-height: 60vh; }
	.hf-pc-option { flex-direction: column; align-items: stretch; gap: 4px; }
	.hf-pc-oprice { text-align: left; }
	.hf-pc-oprice small { display: inline; margin-left: 6px; }
}
