/* WEPRIME: kalkulator wyceny online. Używa kolorów motywu (theme.json). */
.wpq { --wq-g: var(--wp--preset--color--graphite, #17191D); --wq-l: var(--wp--preset--color--lime, #D4F56B); --wq-o: var(--wp--preset--color--offwhite, #F5F5F1); --wq-line: var(--wp--preset--color--line-light, #D9D9D2); --wq-s: var(--wp--preset--color--slate-dark, #555A60); max-width: 1240px; margin-inline: auto; }
.wpq__nojs { padding: 1rem; background: #fff; border: 1px solid var(--wq-line); border-radius: 12px; }
.wpq__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; align-items: start; }
.wpq__form { display: grid; gap: 1.25rem; }
.wpq__step { margin: 0; padding: 1.5rem; background: #fff; border: 1px solid var(--wq-line); border-radius: 16px; min-width: 0; }
.wpq__step[hidden] { display: none; }
.wpq__legend { float: left; width: 100%; padding: 0; margin: 0 0 1rem; font-family: var(--wp--preset--font-family--space-grotesk, inherit); font-weight: 600; font-size: 1.2rem; display: flex; align-items: center; gap: .75rem; }
.wpq__legend + * { clear: both; }
.wpq__no { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: none; border-radius: 50%; background: var(--wq-g); color: var(--wq-l); font-size: .9rem; font-weight: 600; }
.wpq__hint { margin: -.25rem 0 1rem; color: var(--wq-s); font-size: .95rem; }
.wpq__opts { display: grid; gap: .6rem; }
.wpq__opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--wq-line); border-radius: 12px; cursor: pointer; background: var(--wq-o); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.wpq__opt:hover { border-color: var(--wq-g); }
.wpq__opt:has(input:checked) { border-color: var(--wq-g); background: #fff; box-shadow: inset 0 0 0 1px var(--wq-g); }
.wpq__opt:has(input:focus-visible) { outline: 2px solid var(--wq-g); outline-offset: 2px; }
.wpq__opt input { width: 1.35rem; height: 1.35rem; margin: 0; accent-color: var(--wq-g); }
.wpq__txt { display: grid; gap: .15rem; min-width: 0; }
.wpq__txt strong { font-weight: 600; line-height: 1.35; }
.wpq__txt small { color: var(--wq-s); font-size: .88rem; line-height: 1.4; }
.wpq__price { font-size: .88rem; font-weight: 600; white-space: nowrap; color: var(--wq-g); }
.wpq__price.is-tbd, .is-tbd { color: var(--wq-s); font-weight: 500; }
.wpq__opts select { width: 100%; box-sizing: border-box; height: 3.5rem; padding: 0 2.75rem 0 1rem; font: inherit; font-size: max(16px, 1em); border: 1px solid var(--wp--preset--color--slate, #777B80); border-radius: var(--wp--custom--radius, 8px); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2317191D' stroke-width='2'%3E%3Cpath d='M1 1.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1.1rem center; -webkit-appearance: none; appearance: none; cursor: pointer; }
.wpq__num { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.wpq__num input { width: 5rem; height: 3.5rem; box-sizing: border-box; text-align: center; font: inherit; font-size: max(16px, 1em); font-weight: 600; border: 1px solid var(--wp--preset--color--slate, #777B80); border-radius: var(--wp--custom--radius, 8px); background: #fff; -moz-appearance: textfield; }
.wpq__num input::-webkit-outer-spin-button, .wpq__num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wpq__step-btn { width: 3.5rem; height: 3.5rem; border: 1px solid var(--wq-g); border-radius: var(--wp--custom--radius, 8px); background: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--wq-g); transition: background-color .2s, color .2s; }
.wpq__step-btn:hover { background: var(--wq-g); color: var(--wq-l); }
.wpq__unit { color: var(--wq-s); }
.wpq__sum { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 6rem); padding: 1.5rem; border-radius: 16px; background: var(--wq-g); color: var(--wq-o); }
.wpq__sum-title { margin: 0 0 1rem; font-size: 1.3rem; color: var(--wq-o); }
.wpq__draft { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 8px; background: rgba(212, 245, 107, .14); color: var(--wq-l); font-size: .88rem; }
.wpq__lines { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; max-height: 46vh; overflow: auto; font-size: .93rem; }
.wpq__lines li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .4rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wpq__lines b { font-weight: 600; white-space: nowrap; }
.wpq__lines .is-tbd { color: #A6AAAE; font-weight: 400; }
.wpq__empty { color: #A6AAAE; border: 0 !important; }
.wpq__total { display: grid; gap: .25rem; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.wpq__tot-l { font-size: .9rem; color: #A6AAAE; }
.wpq__tot-v { font-family: var(--wp--preset--font-family--space-grotesk, inherit); font-size: 2rem; font-weight: 600; color: var(--wq-l); line-height: 1.1; }
.wpq__tot-s { font-size: .88rem; color: #A6AAAE; }
.wpq__note { margin: 0 0 1rem; font-size: .85rem; color: #A6AAAE; }
.wpq__cta { width: 100%; padding: 1rem 1.25rem; border: 0; border-radius: var(--wp--custom--radius, 8px); background: var(--wq-l); color: var(--wq-g); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .25s; }
.wpq__cta:hover { background: var(--wp--preset--color--lime-dark, #C2E653); }
.wpq__reset { display: block; margin: .75rem auto 0; padding: .4rem; border: 0; background: none; color: #A6AAAE; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.wpq__reset:hover { color: var(--wq-o); }
.wpq button:focus-visible, .wpq select:focus-visible, .wpq input:focus-visible { outline: 2px solid var(--wq-l); outline-offset: 3px; box-shadow: 0 0 0 5px var(--wq-g); }
@media (max-width: 960px) { .wpq__layout { grid-template-columns: 1fr; } .wpq__sum { position: static; } }
@media (max-width: 560px) { .wpq__step { padding: 1.1rem; } .wpq__opt { grid-template-columns: auto 1fr; } .wpq__price { grid-column: 2; } }
