section.checkout-wrap {
  max-width: 1240px;
  margin: 0 auto 90px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.6fr 0.95fr;
  gap: 42px;
  align-items: start;
}

.ck-summary {
  order: 2;
}
.ck-form {
  order: 1;
}

.ck-form {
  background: var(--panel);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 26px 28px 30px;
}

.ck-h {
  font-weight: 700;
  font-size: 18px;
  color: #2a2a2a;
  margin-bottom: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-size: 13px;
  color: var(--muted);
}

.form-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus {
  border-color: #cfd1d5;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.035);
}

#email {
  padding-left: 42px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238a8f98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 5h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/><path d='m3 7 7 5 7-5'/></svg>");
  background-repeat: no-repeat;
  background-position: 14px 50%;
  background-size: 18px;
}

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.error {
  min-height: 16px;
  font-size: 12px;
  color: #d92d20;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.actions .button {
  border: 0;
  border-radius: 28px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
  padding: 14px 40px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.02s ease-in;
}
.actions .button:hover {
  background: var(--brand-hover);
}
.actions .button:active {
  transform: translateY(1px);
}
#form-msg {
  font-size: 13px;
  color: var(--muted);
}

.ck-summary {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.ck-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ck-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}
.ck-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.ck-info {
  min-width: 0;
}
.ck-title {
  font-weight: 600;
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ck-variant {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}
.ck-line-total {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.ck-totals {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.ck-totals .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #3a3a3a;
}
.ck-totals .row.grand {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 800;
  font-size: 18px;
  color: #111;
}

.ck-summary[role="status"] {
  background: var(--panel);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 999;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  padding: 22px 24px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1000;
}
.modal.open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.modal h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}
.modal p {
  margin: 0 0 16px;
  color: var(--muted);
}
.modal .actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.ck-variant::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-top: 2px;
}
.ck-line + .ck-line {
  border-top: 1px dashed #f1f1f3;
}

.modal {
  max-width: 720px;
  padding: 32px;
}

.modal.success {
  text-align: center;
  position: relative;
}

.modal .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  background: #ecfdf5;
  display: grid;
  place-items: center;
  border: 1px solid #d1fae5;
}

.success-icon svg {
  width: 28px;
  height: 28px;
  color: #10b981;
}

.modal h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 6px 0 4px 0;
}

.modal .sub {
  color: #6b7280;
  margin-bottom: 18px;
  font-size: 14px;
}

.button-primary {
  background: #ff3b00;
  border-color: #ff3b00;
  color: #fff;
}
.button-primary:hover {
  filter: brightness(0.95);
}
