.chk-wrap {
  background: #f4f5f7;
  padding: 40px 0 80px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #111;
}

.chk-wrap .btn-primary {
  background: #d31334;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

.chk-wrap .btn-primary:hover {
  background: #b40f2b;
}

.chk-wrap a.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 24px;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.chk-head {
  display: grid;
  gap: 6px;
  margin: 0 auto 32px;
  max-width: 1040px;
  padding: 0 20px;
  text-align: center;
}

.chk-h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.chk-top-total {
  font-size: 16px;
  font-weight: 600;
}

.chk-count {
  font-size: 15px;
  color: #555;
  font-weight: 500;
}

.mobile-top-cta {
  margin-top: 8px;
}

.chk-grid {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}

.chk-left {
  display: grid;
  gap: 24px;
}

.chk-ship {
  background: #fff;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 26px rgba(17, 19, 24, 0.06);
}

.chk-ship-icon {
  color: #111;
}

.chk-ship-text .strong {
  font-weight: 700;
  font-size: 15px;
}

.chk-ship-text .muted {
  font-size: 13px;
  color: #707070;
}

.chk-alert {
  background: #fff8e6;
  border: 1px solid #f5d48f;
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  color: #7a4c13;
  font-size: 14px;
  box-shadow: 0 10px 26px rgba(17, 19, 24, 0.03);
}

.chk-alert-text strong {
  display: inline-block;
  margin-right: 6px;
}

.chk-item {
  background: #fff;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 20px;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: start;
  box-shadow: 0 16px 32px rgba(17, 19, 24, 0.07);
}

.chk-thumb-link {
  display: block;
}

.chk-item-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background: #f1f2f4;
}

.chk-item-img--ph {
  display: block;
}

.chk-item-info {
  display: grid;
  gap: 12px;
}

.chk-item-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.chk-item-name a {
  color: inherit;
  text-decoration: none;
}

.chk-item-meta {
  display: grid;
  gap: 2px;
  font-size: 14px;
  color: #555;
}

.chk-item-meta .muted {
  text-transform: capitalize;
  margin-right: 4px;
  font-size: 13px;
  color: #777;
}

.chk-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.chk-select {
  appearance: none;
  border: 1px solid #d0d2d6;
  border-radius: 24px;
  padding: 6px 24px 6px 12px;
  font-weight: 600;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center/12px;
}

.chk-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  flex-wrap: wrap;
}

.chk-item-actions .link {
  background: none;
  border: none;
  padding: 0;
  color: #1d1f22;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.chk-item-actions .link:hover {
  text-decoration: underline;
}

.chk-item-actions .danger {
  color: #c0152a;
}

.chk-item-actions .divider {
  color: #c7c9cc;
  font-weight: 400;
}

.chk-item-price {
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.chk-item-price .muted {
  font-size: 12px;
  color: #747a81;
  font-weight: 500;
}

.chk-right {
  background: #fff;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 24px;
  position: sticky;
  top: 100px;
  box-shadow: 0 18px 32px rgba(17, 19, 24, 0.08);
  display: grid;
  gap: 18px;
  height: max-content;
}

.chk-sum-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chk-sum {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.chk-sum .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chk-sum dt {
  font-weight: 600;
}

.chk-sum dd {
  margin: 0;
}

.chk-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
}

.chk-paylater {
  background: #f5f0ff;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  color: #352a7a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.chk-paylater .badge {
  background: #352a7a;
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.chk-right form {
  display: grid;
}

.chk-right form .btn-primary {
  width: 100%;
}

.empty-page {
  max-width: 520px;
  margin: 80px auto;
  background: #fff;
  padding: 60px 20px;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(17, 19, 24, 0.05);
  text-align: center;
  display: grid;
  gap: 16px;
}

.empty-page h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
}

.muted {
  color: #6b6f75;
}

.small {
  font-size: 12px;
}

@media (max-width: 1060px) {
  .chk-grid {
    grid-template-columns: 1fr;
  }

  .chk-right {
    position: static;
  }
}

@media (max-width: 768px) {
  .chk-wrap {
    padding: 24px 0 48px;
  }

  .chk-grid {
    gap: 24px;
  }

  .chk-item {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .chk-item-price {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    grid-column: 1 / -1;
  }

  .chk-item-info {
    gap: 10px;
  }
}

@media (max-width: 540px) {
  .chk-head {
    text-align: left;
    justify-items: start;
    padding: 0 16px;
  }

  .mobile-top-cta .btn-primary {
    width: 100%;
  }

  .chk-grid {
    padding: 0 16px;
  }

  .chk-item {
    padding: 16px;
    gap: 12px;
  }

  .chk-item-actions {
    gap: 8px;
  }
}

/* ——— UI Polish ——— */

/* Cards & surfaces */
.chk-right{
  box-shadow: 0 8px 24px rgba(15,17,21,.06);
  border-color: #e9edf2;
}
.chk-item{ border-bottom-color:#eaeef4; }
.chk-alert{ border-color:#ffd0d0; background:#fff3f3; }

/* Typography rhythm */
.chk-h1{ letter-spacing:-.015em; }
.chk-item-name{ font-weight:700; }

/* Spacing: give Klarna & shipping some air */
.chk-sum { margin-bottom: 8px; }
.chk-paylater{
  margin-top: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

/* Klarna chip + logo size */
.chk-paylater .badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 10px;
  border-radius:999px;
  background:#f6f7fb;
  border:1px solid #e7e9f1;
  font-weight:700;
  font-size:.85em;
}
.chk-paylater .badge img{
  width:16px; height:16px; object-fit:contain; display:inline-block;
}

/* Buttons: stronger presence */
.btn-primary{
  box-shadow: 0 6px 14px rgba(211,19,52,.18);
}
.btn-primary:hover{ transform: translateY(-1px); transition: transform .15s ease; }

/* Grid refinement on wide screens */
@media (min-width: 1280px){
  .chk-grid{ grid-template-columns: 1.15fr .65fr; gap: 32px; }
}
