:root {
  --checkoutMain-header-color: #322e29;
  --checkoutMain-price-color: green;
}

/* ==== Layout & Base ==== */


.checkoutContainer {
  max-width: 900px;
  margin: 30px auto;
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.checkoutModal-open {
  overflow: hidden;
}

/* ==== Header ==== */
.checkoutHeader {
  text-align: center;
  margin-bottom: 25px;
}

.checkoutHeader img {
  max-width: 100%;
  border-radius: 12px;
}

h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 5px;
}

h2 {
  color: #2e7d32;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.checkoutHeader-description {
  margin-bottom: 15px;
  font-style: italic;
  font-weight: bold;
}

.checkoutPrice del {
  color: #999;
  margin-right: 8px;
}

.checkoutPrice strong {
  color: var(--checkoutMain-price-color);
  font-size: 20px;
}

/* ==== Section Animation ==== */
.checkoutSection {
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.checkoutSection:nth-child(odd) {
  transform: translateX(-20px);
}

.checkoutSection:nth-child(even) {
  transform: translateX(20px);
}

.checkoutSection.checkoutShow {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ==== Intro ==== */
.checkoutIntro {
  font-size: 15px;
  line-height: 1.6;
  text-align: justify;
}

/* ==== Timeline ==== */
.checkoutTimeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkoutTimeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25px;
  width: 2px;
  height: calc(100% - 20px);
  border-left: 1.6px dashed #8bc34a;
}

.checkoutTimeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 60px;
  opacity: 0;
  transform: translateY(40px);
}

.checkoutTimeline-item:last-child {
  margin-bottom: 0;
}

.checkoutTimeline-item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
  text-align: justify;
}

.checkoutTimeline-item p strong {
  color: #000;
}

.checkoutTimeline-item.checkoutShow {
  animation: checkoutFadeBounce 0.8s ease-out forwards;
}

@keyframes checkoutFadeBounce {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }

  60% {
    opacity: 1;
    transform: translateY(-8px);
  }

  80% {
    transform: translateY(4px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== Timeline Circles ==== */
.checkoutOuter-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(193, 226, 179, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0px;
  top: -10px;
  z-index: 1;
}

.checkoutTimeline-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(193, 226, 179, 0.75);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-style: italic;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

/* ==== LIST STYLE KHUSUS CHECKOUT ==== */
.checkoutList {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.checkoutList li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  line-height: 1.5;
  font-size: 0.95rem;
  color: #333;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.checkoutList li:hover {
  background: #f8f9fa;
  transform: translateX(4px);
}

/* ==== ICON STYLE ==== */
.checkoutList li i {
  min-width: 20px;
  font-size: 1rem;
  margin-top: 2px;
}

/* Warna Ikon per Kategori */
.checkoutList.includes li i {
  color: #2e7d32;
  /* Hijau */
}

.checkoutList.excludes li i {
  color: #d32f2f;
  /* Merah */
}

.checkoutList.terms li i {
  color: #23589f;
  /* Biru */
}

/* Animasi masuk lembut */
.checkoutList li {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.4s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== Form ==== */
form label {
  font-weight: bold;
  font-size: 14px;
  color: #444;
  display: block;
}

form input,
form select,
form textarea {
  width: 93%;
  padding: 8px 10px;
  margin: 6px 0 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

form button {
  display: block;
  width: fit-content;
  margin: 16px auto 0;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  background-image: linear-gradient(to right, #2e7d32 5%, #ccc 5%, #ccc 100%);
  background-size: 200% 100%;
  background-position: left center;
  transition: background-position 0.5s ease, filter 0.3s ease;
}

form button:hover {
  background-position: right center;
  filter: brightness(1.1);
}

/* ==== Rating ==== */
.checkoutRating-stars {
  display: inline-block;
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 24px;
}

/* ==== Modal ==== */
.checkoutModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.checkoutModal-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: checkoutFadeInUp 0.3s ease;
}

.checkoutModal-content h3 {
  margin-top: 0;
  color: #2e7d32;
  text-align: center;
}

#checkoutConfirmDetails {
  font-size: 14px;
  margin: 15px 0;
  line-height: 1.6;
}

.checkoutModal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.checkoutModal-actions button {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

#checkoutCancelBtn {
  background: #ccc;
  color: #333;
}

#checkoutConfirmBtn {
  background: #2e7d32;
  color: #fff;
}

@keyframes checkoutFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}