.checkout-page {
  --bg: #f6f8ff;
  --card: #ffffff;
  --text: #1f2a44;
  --muted: #6b7280;
  --line: #e7ecf7;
  --primary: #4f46e5;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 50px rgba(79, 70, 229, 0.08);
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  padding: 50px 20px 70px;
}

.checkout-container {
  max-width: 1250px;
  margin: 0 auto;
}

.checkout-breadcrumb {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.checkout-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.checkout-hero {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.96),
    rgba(124, 58, 237, 0.92),
    rgba(6, 182, 212, 0.88)
  );
  color: #fff;
  border-radius: 28px;
  padding: 34px 36px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.checkout-hero::before,
.checkout-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.checkout-hero::before {
  width: 220px;
  height: 220px;
  right: -60px;
  top: -90px;
}

.checkout-hero::after {
  width: 140px;
  height: 140px;
  left: -30px;
  bottom: -40px;
}

.checkout-hero h1 {
  margin: 0 0 10px;
  font-size: 38px;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

.checkout-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  position: relative;
  z-index: 2;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}

.checkout-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  margin-bottom: 24px;
}

.checkout-card h2 {
  margin: 0 0 18px;
  font-size: 28px;
  color: var(--text);
}

.checkout-card h3 {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--text);
}

.checkout-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.checkout-group {
  margin-bottom: 16px;
}

.checkout-group.full {
  grid-column: 1 / -1;
}

.checkout-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text);
}

.checkout-input,
.checkout-select,
.checkout-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 14px 15px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: 0.2s ease;
}

.checkout-input:focus,
.checkout-select:focus,
.checkout-textarea:focus {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.checkout-textarea {
  min-height: 120px;
  resize: vertical;
}

.checkout-coupon {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-coupon .checkout-input {
  flex: 1;
  min-width: 220px;
}

.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s ease;
}

.checkout-btn:hover {
  transform: translateY(-1px);
  opacity: 0.97;
}

.checkout-btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.18);
}

.checkout-btn.secondary {
  background: #eef2ff;
  color: var(--primary);
}

.checkout-radio-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fbfcff;
}

.checkout-radio-box label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}

.checkout-radio-box input {
  margin-top: 4px;
}

.checkout-radio-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.checkout-radio-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.checkout-sidebar {
  position: sticky;
  top: 20px;
}

.order-summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  margin-bottom: 20px;
}

.order-summary-card h3 {
  margin: 0 0 18px;
  font-size: 24px;
}

.order-product {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.order-thumb {
  width: 82px;
  height: 82px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef4ff, #f6f0ff);
  border: 1px dashed #cad5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  font-size: 12px;
  text-align: center;
  padding: 8px;
  flex-shrink: 0;
}

.order-product h4 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.order-product p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.order-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

.order-list li strong {
  color: var(--text);
}

.order-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.checkout-note {
  margin-top: 16px;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.checkout-note strong {
  color: var(--text);
}

.checkout-secure {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .checkout-page {
    padding: 35px 12px 55px;
  }

  .checkout-hero {
    padding: 26px 20px;
  }

  .checkout-hero h1 {
    font-size: 30px;
  }

  .checkout-card,
  .order-summary-card {
    padding: 20px;
  }

  .checkout-grid {
    grid-template-columns: 1fr;
  }
}
