/* ============================================
   Woo Ångerrätt — Fristående siddesign
   ============================================ */

/* Dölj temats header och footer på ångersidan */
body.page-template-default.page #masthead,
body.page-template-default.page .site-header,
body.page-template-default.page header.site-header,
body.page-template-default.page #colophon,
body.page-template-default.page footer.site-footer,
body.page-template-default.page .site-footer {
    display: none !important;
}

body.page-template-default.page .site-content,
body.page-template-default.page #primary,
body.page-template-default.page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* Wrapper */
#woo-angerratt-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    background: #f4f4f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 16px 60px;
    box-sizing: border-box;
}

/* Kort-container */
#woo-angerratt-wrap .war-card {
    background: #fff;
    border-radius: 12px;
    border: 0.5px solid rgba(0,0,0,0.12);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

/* Steg-indikatorer */
.war-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 2rem;
}

.war-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: all 0.2s;
}

.war-dot.war-dot-active {
    width: 24px;
    border-radius: 4px;
    background: rgba(0,0,0,0.55);
}

.war-dot.war-dot-done {
    background: rgba(0,0,0,0.45);
}

/* Steg — dölj inaktiva */
.war-step { display: none; }
.war-active { display: block; }

/* Typografi */
.war-heading {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 6px;
}

.war-centered { text-align: center; }

.war-sub {
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.war-hint {
    font-size: 13px;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 1rem;
}

/* Fält */
.war-field {
    margin-bottom: 1rem;
}

.war-field label {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.war-field input[type="email"],
.war-field input[type="text"],
.war-field input[type="tel"] {
    width: 100%;
    padding: 9px 12px;
    font-size: 15px;
    border: 0.5px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    box-sizing: border-box;
    background: #fafafa;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.war-field input:focus {
    border-color: rgba(0,0,0,0.45);
    background: #fff;
}

/* OTP-inmatning */
.war-otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 1rem;
}

.war-otp-digit {
    width: 44px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 500;
    border: 0.5px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    background: #fafafa;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.15s;
}

.war-otp-digit:focus {
    border-color: rgba(0,0,0,0.45);
    background: #fff;
}

/* Debug-ruta (tas bort i Chunk C) */
.war-debug {
    background: #fdf8f0;
    border: 0.5px solid #d4b483;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1rem;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.5;
}

/* Orderkort */
.war-order-card {
    border: 0.5px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.war-order-card:hover {
    background: #f7f7f5;
}

.war-order-card.war-selected {
    border-color: rgba(0,0,0,0.35);
    background: #f7f7f5;
}

.war-order-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.war-order-id {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

.war-order-amount {
    font-size: 16px;
    color: #1a1a1a;
}

.war-order-date {
    font-size: 14px;
    color: #1a1a1a;
    margin-top: 2px;
}

/* Produktrader */
.war-product-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

.war-product-row:last-child {
    border-bottom: none;
}

.war-product-row.war-excluded {
    opacity: 0.4;
}

.war-product-info { flex: 1; }

.war-product-name {
    font-size: 16px;
    color: #1a1a1a;
}

.war-product-price {
    font-size: 15px;
    color: #1a1a1a;
    margin-top: 2px;
}

.war-product-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    color: #1a1a1a;
    background: #f0f0ee;
    border: 0.5px solid rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 2px 7px;
}

.war-product-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Bekräftelselista */
.war-confirm-list {
    background: #f7f7f5;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 1rem;
}

.war-confirm-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #1a1a1a;
    padding: 4px 0;
}

.war-terms {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.war-terms a {
    color: #1a1a1a;
}

/* Framgångssida */
.war-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f0f0ee;
    border: 0.5px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #1a1a1a;
    margin: 0 auto 1rem;
}

.war-summary {
    border-top: 0.5px solid rgba(0,0,0,0.1);
    margin-top: 1.5rem;
    padding-top: 1rem;
}

.war-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.war-summary-row span:last-child {
    color: #1a1a1a;
}

/* Knappar */
.war-btn-primary {
    display: block;
    width: 100%;
    padding: 10px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: opacity 0.15s;
}

.war-btn-primary:hover { opacity: 0.82; }
.war-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.war-btn-secondary {
    display: block;
    width: 100%;
    padding: 10px;
    background: transparent;
    color: #666;
    border: 0.5px solid rgba(0,0,0,0.18);
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.12s;
}

.war-btn-secondary:hover { background: #f7f7f5; }

/* Felmeddelanden */
.war-error {
    font-size: 15px;
    color: #b94040;
    margin: 0 0 8px;
    min-height: 18px;
}

/* Laddningsindikator */
.war-loading {
    text-align: center;
    font-size: 16px;
    color: #1a1a1a;
    padding: 1rem 0;
}

/* Mobilanpassning */
@media (max-width: 520px) {
    #woo-angerratt-wrap { padding: 24px 12px 40px; }
    #woo-angerratt-wrap .war-card { padding: 1.5rem; }
    .war-otp-digit { width: 38px; height: 46px; font-size: 20px; }
}

/* Delreturnot */
.war-summary-note {
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.6;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid rgba(0,0,0,0.08);
}

/* Kvittotabell i steg 5 och 6 */
.war-confirm-header {
    display: grid;
    grid-template-columns: 1fr 40px 80px 80px;
    gap: 8px;
    padding: 6px 0 8px;
    border-bottom: 1px solid rgba(0,0,0,0.12);
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.war-confirm-header span:nth-child(2),
.war-confirm-header span:nth-child(3),
.war-confirm-header span:nth-child(4) { text-align: right; }

.war-confirm-item {
    display: grid;
    grid-template-columns: 1fr 40px 80px 80px;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    font-size: 16px;
    color: #1a1a1a;
    align-items: center;
}

.war-confirm-item span:nth-child(2),
.war-confirm-item span:nth-child(3),
.war-confirm-item span:nth-child(4) { text-align: right; }

.war-confirm-shipping {
    color: #1a1a1a;
    font-size: 15px;
}

.war-confirm-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    border-top: 1px solid rgba(0,0,0,0.12);
    margin-top: 4px;
}

/* ── Chunk C: Skicka igen-knapp ── */
.war-btn-resend {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.85;
}
.war-btn-resend:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.war-resend-confirm {
    margin: 6px 0 0;
    font-size: 15px;
    color: #2e7d32;
    text-align: center;
}

/* ── Kontaktfotnot i varje steg ── */
.war-contact-footer {
    margin: 24px 0 0;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
    font-size: 15px;
    color: #1a1a1a;
    text-align: center;
}
.war-contact-footer a {
    color: #1a1a1a;
    text-decoration: none;
}
.war-contact-footer a:hover {
    color: #1a1a1a;
    text-decoration: underline;
}

/* ── Steg 5: Bekräftelsebox namn + e-post ── */
.war-confirm-identity {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 14px 16px;
    margin: 16px 0;
}
.war-confirm-identity-row {
    display: flex;
    gap: 10px;
    margin: 0 0 8px;
    font-size: 0.95em;
}
.war-confirm-identity-label {
    color: #666;
    min-width: 200px;
    flex-shrink: 0;
}
.war-confirm-identity-value {
    font-weight: 500;
    word-break: break-all;
}
.war-confirm-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.95em;
    cursor: pointer;
    margin-top: 8px;
}
.war-confirm-consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

/* ── v1.5.9: Orderkort med fullständig orderdata ── */

.war-order-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.war-order-radio {
    padding-top: 2px;
    flex-shrink: 0;
}

.war-order-radio input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #1a1a1a;
}

.war-order-body {
    flex: 1;
    min-width: 0;
}

.war-order-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.war-order-date-line {
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.war-order-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 6px;
}

.war-order-detail-table th {
    text-align: left;
    font-weight: 400;
    color: #666;
    font-size: 13px;
    padding: 3px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.war-order-detail-table th.war-col-right,
.war-order-detail-table td.war-col-right {
    text-align: right;
}

.war-order-detail-table th.war-col-center,
.war-order-detail-table td.war-col-center {
    text-align: center;
}

.war-order-detail-table td {
    padding: 5px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    color: #1a1a1a;
    vertical-align: top;
}

.war-order-footer-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #1a1a1a;
    padding: 5px 0;
    border-top: 0.5px solid rgba(0,0,0,0.08);
}

.war-order-footer-row.war-footer-bold {
    font-weight: 500;
}

/* Statiskt orderkort (bekräftelse- och klart-steg) */
.war-order-card.war-order-static {
    cursor: default;
    margin-bottom: 0;
}

.war-order-card.war-order-static:hover {
    background: #fff;
}

/* Meddelandefält i bekräftelsesteget */
.war-message-block {
    margin-top: 1rem;
}

.war-message-label {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 4px;
    font-weight: 500;
}

.war-message-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

#war-customer-message {
    width: 100%;
    padding: 9px 12px;
    border: 0.5px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fafafa;
    color: #1a1a1a;
    resize: vertical;
    min-height: 76px;
    outline: none;
    box-sizing: border-box;
}

/* Sekundärknapp svart (v1.5.9: båda knappar samma stil) */
.war-btn-secondary {
    background: #1a1a1a;
    color: #fff;
    border-color: transparent;
}

.war-btn-secondary:hover {
    background: #3a3a3a;
}
