/* ============================================================
   Checkout (step 7) + Confirmation (step 8)
   Append to your existing stylesheet, or link after it.
   ============================================================ */

.panel-grid-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .9fr);
    gap: 28px;
    align-items: start;
}

/* ---------- cards ---------- */

.co-card {
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    background: #fff;
}

.co-card-head {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #1f2430;
    margin: 0 0 4px;
}

.co-card-sub {
    font-size: 13px;
    color: #7a828f;
    margin: 0 0 16px;
}

.co-num { color: #9aa2b1; margin-right: 4px; }

/* ---------- delivery options ---------- */

.co-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0 20px;
}

.co-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #e6e8ee;
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.co-option.is-active {
    border-color: #f5b100;
    background: #fffaf0;
}

.co-option input {
    accent-color: #f5b100;
    margin-top: 2px;
    flex: none;
}

.co-option-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #4b5261;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.co-option-body { display: block; }
.co-option-body strong { display: block; font-size: 14px; color: #1f2430; }
.co-option-body small { display: block; font-size: 12px; color: #7a828f; margin-top: 2px; }

/* ---------- fields ---------- */

.co-pane[hidden] { display: none; }

.co-pane-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa2b1;
    margin: 0 0 12px;
}

.co-field { display: block; margin-bottom: 14px; }

.co-field > span {
    display: block;
    font-size: 12px;
    color: #4b5261;
    margin-bottom: 6px;
}

.co-field input,
.co-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #dde1e9;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    color: #1f2430;
    background: #fff;
    outline: none;
}

.co-field input:focus,
.co-field select:focus { border-color: #f5b100; }

.co-field.has-error input,
.co-field.has-error select { border-color: #d94a4a; }

.co-err {
    display: block;
    font-style: normal;
    font-size: 12px;
    color: #d94a4a;
    margin-top: 5px;
    min-height: 0;
}

.co-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #7a828f;
    background: #f6f7fa;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 4px 0 0;
}

.co-note svg {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: 1px;
    fill: none;
    stroke: #9aa2b1;
    stroke-width: 1.6;
    stroke-linecap: round;
}

/* ---------- drop-in ---------- */

.co-dropin { min-height: 220px; }

.co-dropin-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
    font-size: 13px;
    color: #9aa2b1;
    border: 1px dashed #e6e8ee;
    border-radius: 10px;
}

.co-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid #e6e8ee;
    border-top-color: #f5b100;
    border-radius: 50%;
    animation: co-spin .7s linear infinite;
}

@keyframes co-spin { to { transform: rotate(360deg); } }

.co-alert {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdecec;
    color: #a12727;
    font-size: 13px;
}

.co-alert[hidden] { display: none; }

.co-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    color: #9aa2b1;
    margin: 16px 0 0;
}

.co-secure svg {
    width: 14px; height: 14px;
    fill: none; stroke: #9aa2b1;
    stroke-width: 1.6; stroke-linecap: round;
}

/* ---------- summary plates + totals ---------- */

.co-plates { margin-bottom: 18px; }

.co-plate-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa2b1;
    margin: 0 0 5px;
}

.co-plate {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .06em;
}

.co-totals {
    border-top: 1px solid #e6e8ee;
    margin-top: 16px;
    padding-top: 14px;
}

.co-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: #4b5261;
    margin-bottom: 8px;
}

.co-total-grand {
    border-top: 1px solid #e6e8ee;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #1f2430;
}

.co-total-grand strong { font-size: 20px; }

/* ---------- place order button busy state ---------- */

.btn.is-busy { opacity: .6; pointer-events: none; }

/* ---------- confirmation ---------- */

.co-result {
    max-width: 520px;
    margin: 0 auto;
    padding: 48px 20px;
    text-align: center;
}

.co-result-icon svg {
    width: 66px; height: 66px;
    fill: none; stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round;
}

.co-result-icon.is-ok svg      { stroke: #2fa36b; }
.co-result-icon.is-pending svg { stroke: #f5b100; }
.co-result-icon.is-bad svg     { stroke: #d94a4a; }

.co-result .panel-title { margin: 18px 0 8px; }

.co-result-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    text-align: left;
    border: 1px solid #e6e8ee;
    border-radius: 12px;
    padding: 18px;
    margin: 26px 0 18px;
}

.co-result-meta dt {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9aa2b1;
    margin-bottom: 3px;
}

.co-result-meta dd { margin: 0; font-size: 14px; color: #1f2430; }

.co-result-foot { justify-content: center; border-top: 0; }

/* ---------- mobile ---------- */

@media (max-width: 900px) {
    .panel-grid-checkout { grid-template-columns: 1fr; }
    .co-options { grid-template-columns: 1fr; }
    .co-result-meta { grid-template-columns: 1fr; }
}