/* Commerce Hub public checkout */
:root {
  --co-primary: #0f766e;
  --co-bg: #f4f7f6;
  --co-card: #ffffff;
  --co-text: #14201e;
  --co-muted: #5b6b67;
  --co-line: #d7e2df;
  --co-danger: #b42318;
  --co-radius: 14px;
  --co-shadow: 0 10px 30px rgba(20, 32, 30, 0.06);
  --co-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
body.co-body {
  margin: 0;
  font-family: var(--co-font);
  color: var(--co-text);
  background:
    radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--co-primary) 18%, white), transparent),
    var(--co-bg);
  min-height: 100vh;
}
.co-wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 48px; }
.co-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px;
}
.co-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.co-logo {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  background: #fff; border: 1px solid var(--co-line);
}
.co-logo-fallback {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--co-primary); color: #fff; font-weight: 700;
}
.co-store { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.co-secure { color: var(--co-muted); font-size: 0.9rem; white-space: nowrap; }
.co-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; align-items: start;
}
@media (max-width: 800px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-top { flex-direction: column; align-items: flex-start; }
}
.co-card {
  background: var(--co-card); border: 1px solid var(--co-line);
  border-radius: var(--co-radius); box-shadow: var(--co-shadow); padding: 20px;
}
.co-card h2 { margin: 0 0 14px; font-size: 1.05rem; }
.co-line-item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--co-line);
}
.co-line-item:last-child { border-bottom: 0; }
/* Class selector would otherwise beat the UA rule for [hidden]. */
.co-line-item[hidden] { display: none; }
.co-muted { color: var(--co-muted); }
.co-label { display: block; font-size: 0.85rem; margin: 0 0 6px; color: var(--co-muted); }
.co-field { margin-bottom: 12px; }
.co-input, .co-select {
  width: 100%; border: 1px solid var(--co-line); border-radius: 10px;
  padding: 12px 12px; font: inherit; background: #fff; color: var(--co-text);
}
.co-input:focus, .co-select:focus {
  outline: 2px solid color-mix(in srgb, var(--co-primary) 35%, white);
  border-color: var(--co-primary);
}
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .co-row { grid-template-columns: 1fr; } }
.co-error {
  background: #fef3f2; color: var(--co-danger); border: 1px solid #fecdca;
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; font-size: 0.92rem;
}
.co-summary .co-total { font-size: 1.15rem; font-weight: 700; }
.co-btn {
  width: 100%; margin-top: 14px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--co-primary); color: #fff; font: inherit; font-weight: 700;
  padding: 14px 16px;
}
.co-btn[disabled] { opacity: 0.7; cursor: wait; }
.co-foot {
  margin-top: 14px; text-align: center; color: var(--co-muted); font-size: 0.85rem;
}
.co-links { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.co-links a { color: var(--co-muted); font-size: 0.85rem; }
.co-blocked { max-width: 560px; margin: 10vh auto; text-align: center; }
.co-blocked h1 { margin-top: 0; }
.co-help { margin-top: 22px; text-align: left; }
.co-help summary {
  cursor: pointer; text-align: center; color: var(--co-muted); font-size: 0.9rem;
}
.co-help-form { margin-top: 12px; }
.co-help-form > p { font-size: 0.88rem; }
.co-help-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.co-section-title { margin-top: 22px; margin-bottom: 14px; font-size: 1.05rem; }

.co-preflight { max-width: 520px; margin: 8vh auto; }
.co-preflight-title { margin: 6px 0 18px; font-size: 1.3rem; }
.co-choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.co-chip {
  border: 1px solid var(--co-border, #d0d7de); border-radius: 999px; padding: 6px 14px;
  color: inherit; text-decoration: none; font-size: 0.9rem;
}
.co-chip--on { border-color: var(--co-primary); color: var(--co-primary); font-weight: 600; }
.co-choice {
  display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 8px;
  border: 1px solid var(--co-border, #d0d7de); border-radius: 10px; cursor: pointer;
}
.co-choice--off { opacity: 0.6; cursor: not-allowed; }
.co-choice-code { font-weight: 700; min-width: 3.2em; }
.co-choice-amount { margin-left: auto; font-weight: 600; }
.co-preflight-form .co-btn { width: 100%; margin-top: 12px; }

.co-example { margin: 6px 0 0; color: var(--co-muted); font-size: 0.82rem; line-height: 1.35; }
