/* ─────────────────────────────────────────────
   LPT Prisberegner — calculator.css
   Neutral styling — tilpasser sig dit WordPress-tema
───────────────────────────────────────────── */

.lpt-calculator {
    max-width: 820px;
    margin: 0 auto;
    font-family: inherit;
    color: inherit;
    position: relative;
}

/* ── PROGRESS BAR ── */
.lpt-progress {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 28px;
    overflow: hidden;
}
.lpt-progress-bar {
    height: 100%;
    background: var(--lpt-primary, #ed254e);
    border-radius: 2px;
    transition: width 0.35s ease;
    width: 0%;
}

/* ── STEPS ── */
.lpt-step {
    display: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 28px 32px;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.lpt-step.active { display: block; }
.lpt-step.prev   { display: block; opacity: 0.45; pointer-events: none; }

.lpt-step-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.lpt-step-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.lpt-step-header small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b7280;
}
.lpt-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lpt-primary, #ed254e);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lpt-step-body { margin-bottom: 20px; }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* ── BUTTON GROUP ── */
.lpt-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.lpt-btn {
    padding: 9px 18px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.lpt-btn:hover  { border-color: var(--lpt-primary, #ed254e); color: var(--lpt-primary, #ed254e); }
.lpt-btn.active { border-color: var(--lpt-primary, #ed254e); background: var(--lpt-primary-light, #eff6ff); color: var(--lpt-primary-dark, #c01b3e); font-weight: 600; }

.lpt-multiplier {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 400;
    margin-top: 2px;
}
.lpt-btn.active .lpt-multiplier { color: #3b82f6; }

/* ── SELECT ── */
.lpt-select {
    width: 100%;
    max-width: 480px;
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    appearance: auto;
    cursor: pointer;
    margin-bottom: 16px;
}
.lpt-select:focus { border-color: var(--lpt-primary, #ed254e); outline: none; }

/* ── INPUT ── */
.lpt-input {
    padding: 10px 14px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    width: 140px;
    max-width: 100%;
    margin-bottom: 10px;
}
.lpt-input:focus { border-color: var(--lpt-primary, #ed254e); outline: none; }

/* ── TENT INFO BOX ── */
.lpt-infobox {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}
.lpt-infobox-item { font-size: 0.93rem; }

/* ── ACCESSORIES ── */
.lpt-acc-group { margin-bottom: 20px; }
.lpt-acc-group h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #ed254e;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
    margin: 0 0 10px;
}

.lpt-acc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 1px solid #f3f4f6;
    gap: 12px;
}
.lpt-acc-item:last-child { border-bottom: none; }
.lpt-acc-label { flex: 1; min-width: 0; }
.lpt-acc-label strong { display: block; font-size: 0.93rem; }
.lpt-acc-price { font-size: 0.82rem; color: #6b7280; }
.lpt-acc-control { flex-shrink: 0; }

/* Quantity controls */
.lpt-qty-wrap { display: flex; align-items: center; gap: 6px; }
.lpt-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #f9fafb;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
}
.lpt-qty-btn:hover { background: #e5e7eb; }
.lpt-qty-input {
    width: 52px;
    text-align: center;
    padding: 4px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 0.95rem;
}
.lpt-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.92rem; }
.lpt-toggle input { width: 16px; height: 16px; cursor: pointer; }

/* ── DELIVERY RESULT ── */
.lpt-postcode-wrap { margin-bottom: 14px; }
.lpt-delivery-result {
    margin-top: 8px;
    font-size: 0.93rem;
    padding: 8px 12px;
    border-radius: 6px;
}
.lpt-delivery-result.ok    { background: #f0fdf4; color: #166534; }
.lpt-delivery-result.other { background: #fffbeb; color: #92400e; }

/* ── HELP TEXT ── */
.lpt-help { font-size: 0.88rem; color: #6b7280; margin: 0 0 16px; }

/* ── SUMMARY ── */
.lpt-summary { margin-bottom: 16px; }
.lpt-summary-line {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.92rem;
    align-items: baseline;
}
.lpt-summary-line:last-child { border-bottom: none; }
.lpt-line-tent .lpt-line-name { font-weight: 600; }
.lpt-line-name   { flex: 2; font-weight: 500; }
.lpt-line-detail { flex: 3; color: #6b7280; font-size: 0.85rem; }
.lpt-line-total  { flex: 1; text-align: right; font-weight: 600; white-space: nowrap; }
.lpt-line-delivery .lpt-line-name { color: #ed254e; }

.lpt-total {
    background: #f8fafc;
    border: 2px solid var(--lpt-primary, #ed254e);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 14px;
}
.lpt-total-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}
.lpt-total-inner strong { font-size: 1.4rem; color: var(--lpt-primary-dark, #c01b3e); }
.lpt-total-note { font-size: 0.83rem; color: #6b7280; margin: 6px 0 0; }

.lpt-note {
    background: #f9fafb;
    border-left: 3px solid #d1d5db;
    padding: 10px 14px;
    font-size: 0.88rem;
    color: #ed254e;
    border-radius: 0 6px 6px 0;
    margin-bottom: 10px;
}

/* ── CART MESSAGE ── */
.lpt-cart-message {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
}
.lpt-msg-success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.lpt-msg-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.lpt-cart-message a { color: inherit; font-weight: 600; }

/* ── FOOTER (navigation) ── */
.lpt-step-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── BUTTONS ── */
.lpt-btn-primary {
    padding: 11px 24px;
    background: var(--lpt-primary, #ed254e);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.15s;
}
.lpt-btn-primary:hover    { background: var(--lpt-primary-dark, #c01b3e); }
.lpt-btn-primary:disabled { background: #93c5fd; cursor: not-allowed; }
.lpt-btn-primary.lpt-cta  { padding: 13px 32px; font-size: 1.05rem; }

.lpt-btn-secondary {
    padding: 11px 20px;
    background: #f3f4f6;
    color: #ed254e;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.15s;
}
.lpt-btn-secondary:hover { background: #e5e7eb; }

/* ── UTILITIES ── */
.lpt-hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .lpt-step { padding: 18px 16px; }
    .lpt-summary-line { flex-wrap: wrap; }
    .lpt-line-detail { flex-basis: 100%; }
    .lpt-line-total  { flex-basis: 100%; text-align: left; }
    .lpt-total-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
    .lpt-acc-item { flex-direction: column; align-items: flex-start; }
}
