/* =========================================================
   Billing Summary Page (Step 3) — billing-summary.css
   ========================================================= */

/* ── Page wrapper ────────────────────────────────────────── */
.wpcb-bs-page {
    font-family: 'DM Sans', Arial, sans-serif;
    background: #f4f6f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
	max-width: 1300px;
	padding: 2vw 5vw;
}

/* ── Header ──────────────────────────────────────────────── */
.wpcb-bs-header {
    background: #e23636;
    color: #fff;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.wpcb-bs-logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.wpcb-bs-header-contact {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.wpcb-bs-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

/* ── Body ────────────────────────────────────────────────── */
.wpcb-bs-body {
    flex: 1;
    width: 100%;
    margin: 28px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-sizing: border-box;
}

/* ── Cards ───────────────────────────────────────────────── */
.wpcb-bs-card {
    background: #fff;
    border: 1px solid #e5e8ee;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.wpcb-bs-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f1117;
    margin-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

.wpcb-bs-instruction {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px;
}

/* ── Address columns ─────────────────────────────────────── */
.wpcb-bs-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.wpcb-bs-address-col {
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    padding: 16px 20px;
}

.wpcb-bs-address-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid currentColor;
}

.wpcb-bs-collect-heading {
    color: #e23636;
    border-bottom-color: #e23636;
}

.wpcb-bs-deliver-heading {
    color: #e23636;
    border-bottom-color: #e23636;
}

.wpcb-bs-address-body {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.8;
    margin-bottom: 14px;
}

.wpcb-bs-time-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.wpcb-bs-time-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wpcb-bs-time-value {
    font-size: 13px;
    font-weight: 600;
    color: #0f1117;
}

/* ── Pricing Table ───────────────────────────────────────── */
.wpcb-bs-pricing-table {
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    overflow: hidden;
    font-size: 13px;
}

.wpcb-bs-pricing-header,
.wpcb-bs-pricing-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.wpcb-bs-pricing-header {
    background: #f8f9fb;
    border-bottom: 1px solid #e5e8ee;
}

.wpcb-bs-pricing-header span {
    font-weight: 700;
    color: #374151;
    padding: 10px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wpcb-bs-pricing-row span {
    color: #0f1117;
    padding: 10px 14px;
    font-size: 13px;
}

.wpcb-bs-pricing-row span + span {
    border-left: 1px solid #f0f2f5;
}

/* ── Billing Form ────────────────────────────────────────── */
.wpcb-bs-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wpcb-bs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.wpcb-bs-full-width {
    grid-column: 1 / -1;
}

.wpcb-bs-field-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.wpcb-bs-postcode-wrap {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.wpcb-bs-postcode-wrap .wpcb-input {
    flex: 1;
}

.wpcb-bs-postcode-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.wpcb-bs-postcode-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.wpcb-bs-vat-note {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0 20px;
    font-style: italic;
}

/* ── Action Buttons ──────────────────────────────────────── */
.wpcb-bs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.wpcb-bs-btn-back {
    background: transparent;
    border: 2px solid #d1d5db;
    color: #374151;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.wpcb-bs-btn-back:hover {
    border-color: #9ca3af;
    color: #111827;
}

.wpcb-bs-btn-confirm {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e23636;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.wpcb-bs-btn-confirm:hover {
    background: #c42a2a;
}

.wpcb-bs-btn-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Footer ──────────────────────────────────────────────── */
.wpcb-bs-footer {
    background: #e23636;
    color: #fff;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    font-weight: 500;
}

.wpcb-bs-footer-logo {
    font-size: 14px;
    font-weight: 700;
}

/* ── Error ───────────────────────────────────────────────── */
.wpcb-bs-billing-error {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-size: 13px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 680px) {
    .wpcb-bs-addresses {
        grid-template-columns: 1fr;
    }

    .wpcb-bs-pricing-header,
    .wpcb-bs-pricing-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .wpcb-bs-form-row {
        grid-template-columns: 1fr;
    }

    .wpcb-bs-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .wpcb-bs-footer {
        flex-direction: column;
        text-align: center;
    }

    .wpcb-bs-actions {
        justify-content: stretch;
        flex-direction: column;
    }

    .wpcb-bs-btn-back,
    .wpcb-bs-btn-confirm {
        width: 100%;
        justify-content: center;
    }
}
