@charset "utf-8";

.checkout-shell {
  max-width: 1100px;
  margin: 7rem auto 3rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
}

.checkout-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.checkout-card h1,
.checkout-card h2 {
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.muted {
  margin: 0 0 1rem;
  color: #666;
}

.status-bar {
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.cart-list {
  display: grid;
  gap: 0.75rem;
}

.cart-item {
  border: 1px solid #efefef;
  border-radius: 0.5rem;
  padding: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: 0.4rem;
  object-fit: cover;
  border: 1px solid #efefef;
  flex: 0 0 72px;
}

.cart-item p {
  margin: 0.15rem 0;
  color: #555;
}

.form-grid {
  display: grid;
  gap: 0.65rem;
}

.form-grid input {
  border: 1px solid #d8d8d8;
  border-radius: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
}

.checkout-terms-summary {
  margin-top: 0.75rem;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid #ebe2d6;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #fbf8f3 0%, #fffdf9 100%);
}

.checkout-terms-summary-title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: #8b6f47;
}

.checkout-terms-summary ul {
  margin: 0;
  padding-left: 1.15rem;
  color: #3f3f46;
}

.checkout-terms-summary li + li {
  margin-top: 0.4rem;
}

.terms-consent {
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.terms-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.1rem;
  accent-color: #111;
  flex: 0 0 auto;
}

.terms-consent a {
  color: #111;
  font-weight: 600;
}

.checkout-terms-error {
  margin: 0;
  min-height: 1rem;
  color: #991b1b;
  font-size: 0.85rem;
}

.shipping-options,
.order-summary {
  margin-top: 1rem;
  border-top: 1px solid #efefef;
  padding-top: 0.9rem;
}

.checkout-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary,
.remove-item-btn {
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-weight: 600;
  border: 1px solid transparent;
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-primary:hover {
  background: #222;
}

.btn-secondary,
.remove-item-btn {
  background: #fff;
  color: #222;
  border-color: #d4d4d4;
}

.btn-secondary:hover,
.remove-item-btn:hover {
  background: #f7f7f7;
}

@media (max-width: 900px) {
  .checkout-shell {
    grid-template-columns: 1fr;
    margin-top: 6rem;
  }
}
