/* ══════════════════════════════════════════
   CHECKOUT — Modal, Form, Summary, Done
   MP Skin & SPA — Brand Refresh
══════════════════════════════════════════ */

/* ── CHECKOUT OVERLAY ── */
.checkout-overlay {
  position: fixed; inset: 0;
  background: rgba(0,83,76,0.6);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.checkout-overlay.open { opacity: 1; pointer-events: all; }

/* ── CHECKOUT MODAL ── */
.checkout-modal {
  position: fixed; inset: 0;
  z-index: 1100;
  background: var(--warm-white);
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
  overflow: hidden;
}
.checkout-modal.open { transform: translateY(0); }

/* ── HEADER ── */
.co-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--warm-white);
}
.co-label {
  font-family: 'Prompt', sans-serif;
  font-size: 1.4rem; font-weight: 400;
  color: var(--dark);
}
.co-subtitle {
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--brown-light);
  margin-top: 3px;
}
.co-close {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(0,83,76,0.6);
  background: none; border: 1px solid rgba(0,83,76,0.2);
  padding: 9px 18px; cursor: none;
  transition: color 0.3s, border-color 0.3s;
}
.co-close:hover { color: var(--dark); border-color: rgba(0,83,76,0.5); }

/* ── BODY (2-column layout) ── */
.co-body {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 0; flex: 1; overflow-y: auto;
}

/* ── FORM COLUMN ── */
.co-form-col {
  padding: 36px 48px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.co-section-title {
  font-family: 'Prompt', sans-serif;
  font-size: 1.1rem; font-weight: 400;
  color: var(--dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.co-field-full { grid-column: 1/-1; }
.co-field-label {
  font-size: 0.58rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brown-light);
}
.co-input {
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.86rem; font-weight: 300;
  color: var(--dark);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 11px 14px;
  outline: none; width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.co-input:focus { border-color: var(--gold); background: var(--warm-white); }
.co-input::placeholder { color: rgba(0,83,76,0.3); }
.co-select { cursor: none; }

/* ── PAYMENT OPTIONS ── */
.co-payment-opts {
  display: flex; gap: 10px; margin-bottom: 22px;
}
.co-pay-opt {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brown-mid);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 12px 10px;
  cursor: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.co-pay-opt:hover { border-color: var(--gold); color: var(--dark); }
.co-pay-opt.active { border-color: var(--gold); color: var(--dark); background: rgba(0,83,76,0.05); }

.co-pay-panel { animation: bmFadeIn 0.3s ease forwards; }

/* ── PIX ── */
.co-pix-box {
  display: flex; gap: 20px; align-items: center;
  background: var(--cream); border: 1px solid var(--border);
  padding: 20px; margin-bottom: 12px;
}
.co-pix-info { display: flex; flex-direction: column; gap: 8px; }
.co-pix-label {
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brown-light);
}
.co-pix-key {
  font-family: 'Prompt', sans-serif;
  font-size: 1rem; font-weight: 400;
  color: var(--dark);
}
.co-pix-copy {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); background: none; border: none; cursor: none;
  padding: 0; transition: color 0.2s;
}
.co-pix-copy:hover { color: var(--gold-light); }
.co-pix-note {
  font-size: 0.72rem; font-weight: 300;
  color: var(--brown-light); line-height: 1.7;
}

/* ── BOLETO ── */
.co-boleto-box {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--border);
  padding: 20px;
}
.co-boleto-text {
  font-size: 0.78rem; font-weight: 300;
  color: var(--brown-mid); line-height: 1.7;
}
.co-boleto-text strong { color: var(--dark); font-weight: 500; }

/* ── SUBMIT ── */
.co-submit-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 24px;
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--dark); background: var(--gold);
  border: none; cursor: none; padding: 17px;
  transition: background 0.3s, transform 0.2s;
}
.co-submit-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* ── ORDER SUMMARY COLUMN ── */
.co-summary-col {
  padding: 36px 36px;
  background: var(--cream);
  display: flex; flex-direction: column; gap: 0;
  overflow-y: auto;
}
.co-summary-title {
  font-family: 'Prompt', sans-serif;
  font-size: 1.1rem; font-weight: 400;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.co-summary-items { display: flex; flex-direction: column; gap: 0; flex: 1; }
.co-summary-item {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,83,76,0.08);
}
.co-si-swatch {
  width: 52px; height: 58px; border-radius: 2px;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.co-si-swatch svg { width: 34px; height: 42px; opacity: 0.7; }
.co-si-name {
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem; font-weight: 400;
  color: var(--dark); flex: 1;
}
.co-si-qty {
  font-size: 0.68rem; font-weight: 300;
  color: var(--brown-light); display: block; margin-top: 2px;
}
.co-si-price {
  font-family: 'Prompt', sans-serif;
  font-size: 0.95rem; font-weight: 400;
  color: var(--dark);
}

/* ── TOTALS ── */
.co-summary-totals {
  margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.co-total-row {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; font-weight: 300;
  color: var(--brown-mid);
}
.co-total-final {
  font-family: 'Prompt', sans-serif;
  font-size: 1.25rem; font-weight: 400;
  color: var(--dark); margin-top: 6px;
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* ── DONE STATE ── */
.co-done {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex: 1; padding: 60px 40px; text-align: center;
}
.co-done-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: rgba(0,83,76,0.1);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 28px;
  animation: confirmPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.co-done-title {
  font-family: 'Prompt', sans-serif;
  font-size: 2.2rem; font-weight: 300;
  color: var(--dark); margin-bottom: 16px; line-height: 1.1;
}
.co-done-title em { font-style: italic; color: var(--brown-mid); }
.co-done-text {
  font-size: 0.88rem; font-weight: 300;
  color: var(--brown-mid); max-width: 420px;
  line-height: 1.8; margin-bottom: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .co-body { grid-template-columns: 1fr; }
  .co-summary-col { border-top: 1px solid var(--border); border-right: none; }
  .co-form-col { padding: 24px; border-right: none; }
  .co-summary-col { padding: 24px; }
  .co-header { padding: 18px 24px; }
  .co-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .co-header { padding: 16px 20px; }
  .co-form-col { padding: 20px; }
  .co-summary-col { padding: 20px; }
}
