/* Frida Ojeda — Popup de compra (checkout-modal). Mismos tokens del sitio público. */

.cm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(45,34,51,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.cm-overlay.cm-open { display: flex; }

.cm-modal {
  background: #f4f1ea;
  color: #2d2233;
  width: 100%;
  height: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  font-family: 'Google Sans','Product Sans',system-ui,sans-serif;
  overflow: hidden;
}
@media (min-width: 640px) {
  .cm-modal { height: auto; max-height: 90vh; border-radius: 24px; box-shadow: 0 40px 100px rgba(45,34,51,.35); }
}

.cm-header { display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid rgba(45,34,51,.08); flex:none; }
.cm-close { background:none; border:none; font-size:24px; line-height:1; color:#2d2233; cursor:pointer; padding:4px 8px; }

.cm-progress { display:flex; gap:8px; padding:14px 20px 0; flex:none; }
.cm-progress__dot { flex:1; height:4px; border-radius:100px; background:rgba(45,34,51,.12); }
.cm-progress__dot.cm-active,
.cm-progress__dot.cm-done { background:#6e2676; }

.cm-body { flex:1; overflow-y:auto; padding:16px 20px 20px; }
.cm-footer { padding:16px 20px; border-top:1px solid rgba(45,34,51,.08); flex:none; }

.cm-step-title {
  margin: 0 0 14px;
  font-family: 'Playwrite NZ', cursive;
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: #6e2676;
}

.cm-field { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.cm-field label { font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:#6e6e6e; }
.cm-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(45,34,51,.2);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #2d2233;
  background: #fff;
}
.cm-field input:focus { outline:none; border-color:#6e2676; }
.cm-row { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cm-btn {
  display: inline-flex; align-items:center; justify-content:center; gap:8px;
  width: 100%; min-height: 48px; padding: 14px 24px;
  background:#6e2676; color:#fff; border:none; border-radius:100px;
  font-family: inherit; font-weight:600; font-size:14px; letter-spacing:.08em; text-transform:uppercase;
  cursor: pointer;
}
.cm-btn:disabled { opacity:.5; cursor:not-allowed; }
.cm-btn-secondary { background:transparent; color:#6e2676; border:1.5px solid #6e2676; }

.cm-chips { display:flex; flex-wrap:wrap; gap:8px; margin: 8px 0 16px; }
.cm-chip {
  padding: 10px 16px; border-radius:100px; border:1.5px solid rgba(45,34,51,.2);
  background:#fff; font-family:inherit; font-size:13px; font-weight:600; color:#2d2233; cursor:pointer;
}
.cm-chip.cm-selected { background:#6e2676; border-color:#6e2676; color:#fff; }

.cm-summary { background:#fff; border-radius:14px; padding:16px 18px; margin-bottom:18px; }
.cm-summary__total { font-family:'Playwrite NZ',cursive; font-size:32px; color:#6e2676; line-height:1; margin-top:4px; }

.cm-method { display:flex; align-items:center; gap:14px; width:100%; min-height:64px; padding:14px 18px; margin-bottom:12px; background:#fff; border:1.5px solid rgba(45,34,51,.15); border-radius:16px; cursor:pointer; text-align:left; font-family:inherit; font-size:15px; font-weight:600; color:#2d2233; }
.cm-method img { height:28px; width:auto; }
.cm-method.cm-selected { border-color:#6e2676; box-shadow:0 0 0 2px rgba(110,38,118,.25) inset; }

.cm-result { text-align:center; padding: 30px 10px; }
.cm-result__icon { font-size:52px; margin-bottom:14px; }
.cm-result__folio { font-family:'Playwrite NZ',cursive; font-size:36px; color:#6e2676; margin: 6px 0 18px; }
.cm-result__error { color:#9a2f2f; }

.cm-notice { background:#fbf0d9; color:#9a6b12; padding:12px 16px; border-radius:10px; font-size:13px; margin-bottom:16px; }
