* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #fffaf1;
    color: #111827;
    line-height: 1.6;
}

.checkout-header {
    background: #111827;
    color: white;
    padding: 22px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.eyebrow {
    color: #d19035;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.checkout-header h1 {
    font-size: 34px;
}

#backToStoreBtn {
    border: none;
    border-radius: 999px;
    padding: 14px 24px;
    background: white;
    color: #111827;
    font-weight: 900;
    cursor: pointer;
}

.checkout-page {
    width: 92%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 30px;
}

.checkout-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
}

.checkout-card h2 {
    margin-bottom: 18px;
}

.business-checkout-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

.checkout-business-logo-wrap {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    border: 3px solid #fff4dd;
}

.checkout-business-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-estimate-box {
    background: #fff4dd;
    border-radius: 18px;
    padding: 18px 22px;
    text-align: center;
}

.delivery-estimate-box strong,
.delivery-estimate-box span {
    display: block;
}

.delivery-estimate-box span {
    color: #a15c00;
    font-weight: 900;
}

label {
    display: block;
    font-weight: 800;
    margin: 16px 0 6px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
    font-size: 15px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #d19035;
    box-shadow: 0 0 0 4px rgba(209, 144, 53, 0.16);
}

textarea {
    min-height: 95px;
    resize: vertical;
}

.order-line {
    border-bottom: 1px solid #eee;
    padding: 14px 0;
}

.order-line strong {
    display: block;
}

.order-line span {
    color: #6b7280;
}

.summary-lines {
    margin-top: 18px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.summary-lines div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #4b5563;
}

.total-box {
    margin-top: 20px;
    background: #fff4dd;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-box strong {
    font-size: 26px;
    color: #a15c00;
}

.secure-checkout-box {
    margin-top: 18px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #065f46;
    border-radius: 16px;
    padding: 16px;
    font-weight: 900;
}

.secure-checkout-box span {
    display: block;
    margin-top: 4px;
    font-weight: 500;
}

.place-order-btn {
    width: 100%;
    margin-top: 20px;
    border: none;
    border-radius: 999px;
    padding: 16px;
    background: #d19035;
    color: white;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.place-order-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.message {
    margin-top: 16px;
    font-weight: 800;
}

.message.success {
    color: #047857;
}

.message.error {
    color: #b91c1c;
}

.checkout-footer {
    margin-top: 60px;
    background: #111827;
    color: white;
    padding: 50px 7% 28px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 34px;
}

.checkout-footer p {
    color: #d1d5db;
    margin-top: 8px;
}

.checkout-footer a {
    color: #fbbf24;
    text-decoration: none;
}

.buildframe-credit {
    grid-column: 1 / -1;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .checkout-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-page {
        grid-template-columns: 1fr;
    }

    .checkout-card {
        padding: 22px;
    }

    .business-checkout-card {
        grid-template-columns: 1fr;
    }

    .delivery-estimate-box {
        text-align: left;
    }
}