/* ==========================================================
       Checkout page — built on the shared design system
       ========================================================== */
    .checkout-shell { display: grid; grid-template-columns: 1.12fr .88fr; gap: 54px; align-items: start; }

    .panel-card {
      padding: 34px;
      background: var(--white);
      border: 3px solid var(--navy);
      border-radius: 26px;
      box-shadow: 8px 8px var(--hard);
    }
    .panel-card + .panel-card { margin-top: 22px; }

    .step-head { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
    .step-num {
      display: grid;
      place-items: center;
      width: 40px;
      height: 40px;
      flex: 0 0 40px;
      color: var(--navy);
      background: var(--gold);
      border: 2.5px solid var(--navy);
      border-radius: 13px;
      font-family: "Baloo 2", Inter, sans-serif;
      font-size: 19px;
      font-weight: 800;
    }
    .step-head h2 { margin: 0; font-size: 1.42rem; }

    .field { display: grid; gap: 7px; margin-bottom: 17px; }
    .field label { color: var(--navy); font-size: 13.5px; font-weight: 800; }
    .field input {
      width: 100%;
      min-height: 56px;
      padding: 14px 16px;
      color: var(--ink);
      background: var(--white);
      border: 2.5px solid rgba(11, 36, 71, .55);
      border-radius: 14px;
      font-size: 16px;
      font-weight: 600;
      transition: border-color .15s ease, box-shadow .15s ease;
    }
    .field input::placeholder { color: #6b7280; font-weight: 500; }
    .field input:hover { border-color: rgba(11, 36, 71, .75); }
    .field input:focus { border-color: var(--pop); }
    .field-hint { color: var(--muted); font-size: 12.5px; }
    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

    .card-field { position: relative; }
    .card-field input { padding-right: 92px; }
    .card-brands {
      position: absolute;
      right: 13px;
      top: 50%;
      display: flex;
      gap: 5px;
      transform: translateY(-50%);
      pointer-events: none;
    }
    .card-brands span {
      width: 30px;
      height: 20px;
      display: grid;
      place-items: center;
      background: #eef2f8;
      border: 1px solid rgba(11, 36, 71, .14);
      border-radius: 4px;
      font-size: 9px;
      font-weight: 900;
      letter-spacing: .02em;
      color: #5d6574;
    }

    .pay-button { width: 100%; margin-top: 6px; }
    .secure-line {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      margin-top: 15px;
      color: var(--muted);
      font-size: 12.5px;
      font-weight: 750;
    }
    .secure-line svg { width: 16px; height: 16px; color: var(--green); }
    .legal-line { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
    .legal-line a { color: var(--blue-2); }

    /* order summary */
    .summary { position: sticky; top: 96px; }
    .summary-top { display: flex; align-items: center; gap: 18px; padding-bottom: 22px; border-bottom: 2px solid var(--line); }
    .summary-thumb { width: 92px; flex: 0 0 92px; filter: drop-shadow(0 10px 12px rgba(11, 36, 71, .22)); }
    .summary-thumb img { width: 100%; border-radius: 8px; border: 2px solid var(--navy); }
    .summary-title { color: var(--navy); font-size: 17px; font-weight: 900; line-height: 1.22; }
    .summary-sub { margin-top: 5px; color: var(--muted); font-size: 12.5px; }
    .summary-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; color: var(--muted); font-size: 14px; }
    .summary-row strong { color: var(--navy); }
    .summary-total { border-top: 2px solid var(--line); font-size: 17px; font-weight: 850; }
    .summary-total strong { font-family: "Baloo 2", Inter, sans-serif; font-size: 34px; letter-spacing: -.03em; }
    .summary-list { display: grid; gap: 11px; margin: 20px 0 0; padding: 20px 0 0; border-top: 2px solid var(--line); list-style: none; }
    .summary-list li { display: flex; align-items: flex-start; gap: 10px; color: #344157; font-size: 13.8px; font-weight: 700; line-height: 1.4; }
    .summary-list .check-icon { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 1px; }
    .summary-list .check-icon svg { width: 11px; height: 11px; }

    .guarantee {
      display: flex;
      gap: 13px;
      margin-top: 22px;
      padding: 18px 20px;
      color: var(--navy);
      background: var(--gold);
      border: 2.5px solid var(--navy);
      border-radius: 18px;
      box-shadow: 4px 4px var(--hard);
    }
    .guarantee svg { width: 26px; height: 26px; flex: 0 0 26px; }
    .guarantee strong { display: block; font-size: 14.5px; }
    .guarantee span { display: block; margin-top: 3px; font-size: 12.8px; font-weight: 600; line-height: 1.4; }

    /* headline removed, so the page still needs a heading for screen readers */

    .back-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 30px;
      color: var(--blue-2);
      font-size: 14px;
      font-weight: 800;
      text-decoration: none;
    }
    .back-link svg { width: 17px; height: 17px; }
    .back-link:hover { text-decoration: underline; }

    .dev-note {
      margin-top: 26px;
      padding: 16px 18px;
      color: #7a4a05;
      background: #fff6e0;
      border: 2px dashed #d9a520;
      border-radius: 14px;
      font-size: 12.8px;
      line-height: 1.55;
    }
    .dev-note strong { display: block; margin-bottom: 4px; color: #6b3f02; font-size: 13.5px; }
    .dev-note code { padding: 1px 5px; background: rgba(11, 36, 71, .08); border-radius: 4px; font-size: 12px; }

    @media (max-width: 400px) {
      .card-brands { display: none; }
      .card-field input { padding-right: 16px; }
    }
    @media (max-width: 980px) {
      .checkout-shell { grid-template-columns: 1fr; gap: 34px; }
      .summary { position: static; }
    }
    @media (max-width: 640px) {
      .panel-card { padding: 24px 21px; box-shadow: 5px 5px var(--hard); }
      .field-row { grid-template-columns: 1fr; gap: 0; }
      .step-head h2 { font-size: 1.24rem; }
      .summary-thumb { width: 74px; flex-basis: 74px; }
    }
