/* ========== RESET & BODY ========== */
* {
  box-sizing: border-box;
}

body {
  background-color: #F3F6F9;
  padding: 0;
  margin: 0;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* ========== IMAGES / SECTION ========== */
.section {
  margin: 0 auto;
  max-width: 550px;
}

.img-container {
  line-height: 0;
}

.img-container img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

/* Edit Button Pesan Dibawah ini  */
.buttons-pesan {
  background-color: #001eb2;
  border: 3px solid #fff;
  border-radius: 57px;
  color: #fff;
  padding: 14px 18px;
  margin: 4% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 620;
  display: inline-block;
  font-size: 20px;
  cursor: pointer;
  width: 80%;
}

/* Edit Button Ambil Promo Dibawah ini  */
.buttons-ambil-promo {
  background-color: #ffe600;
  border: 2px solid #000;
  border-radius: 3px;
  color: #000000;
  padding: 9px 18px;
  margin: 3% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 640;
  display: inline-block;
  font-size: 20px;
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);
}

.buttons-ambil-promo:hover {
  background-color: #ffe600;
  border: 2px solid #fff;
  color: white;
}

/* Edit Cek Promo Dibawah ini  */
.buttons-cek-promo {
  background-color: #00337c;
  border: 2px solid #000;
  border-radius: 5px;
  color: #ffffff;
  padding: 9px 18px;
  margin: 3% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 640;
  display: inline-block;
  font-size: 20px;
  box-shadow: 0 0 10px 0 rgb(0 0 0 / 0.5);
}

.buttons-cek-promo:hover {
  background-color: #00337c;
  border: 2px solid #fff;
  color: white;
}

/* ========== FORM ========== */
.form {
  margin: 0px auto;
  max-width: 550px;
  width: 100%;
  height: auto;
}

.form-box {
  border-radius: 10px;
  margin: 1% 1%;
  padding: 10px 10px;
  background: #ffe610;
  border: 4px solid black;
}

/* Judul */
.form h2 {
  text-align: center;
  font-size: 25px;
  margin: 0 0 20px 0;
  color: #000;
}

/* Purchase List */
.order-box {
  width: 95%;
  max-width: 550px;
  margin: 15px auto;
  background: linear-gradient(135deg, #6b0808, #380101);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border: 2px solid #ffffff;
}

.order-title {
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  padding: 14px;
  font-size: 14px;
  /* Pertimbangkan untuk mengecilkan jika di mobile (misal 24px) */
  letter-spacing: 0.5px;
}

.scroll-container {
  height: 350px;
  overflow: hidden;
  position: relative;
}

.orders {
  display: flex;
  flex-direction: column;
  animation: scrollOrders 25s linear infinite;
}

/* Berhenti saat kursor di atas kotak */
.scroll-container:hover .orders {
  animation-play-state: paused;
}

@keyframes scrollOrders {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

.order-item {
  background: rgba(255, 255, 255, 0.9);
  color: #1b4fc9;
  margin: 6px 6px;
  border-radius: 10px;
  padding: 15px 15px;
  /* Padding ditingkatkan untuk kenyamanan visual */
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 6px solid #ffcc00;
  transition: transform 0.3s ease;
}

.order-item:hover {
  transform: scale(1.02);
  background: #ffffff;
  /* Lebih terang saat hover */
}

/* --- PENGATURAN KOLOM --- */
.order-name {
  font-weight: 600;
  font-size: 12px;
  /* Jika terlalu besar di HP, gunakan unit em/rem */
  flex: 2;
  /* Mengambil 50% ruang */
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Nama panjang akan terpotong rapi dengan titik (...) */
}

.order-box-count {
  color: #ffb300;
  font-weight: bold;
  font-size: 12px;
  flex: 1;
  /* Mengambil 25% ruang */
  text-align: center;
  /* Sejajar di tengah */
}

.order-time {
  font-style: italic;
  color: #666;
  font-size: 12px;
  flex: 1.2;
  /* Mengambil sisa ruang (sekitar 25-30%) */
  text-align: right;
  /* Melekat ke kanan */
}

/* Edit Floating Button Dibawah ini  */
.floating-btn {
  position: fixed;
  z-index: 2;
  transform: translateX(-50%);
  bottom: 40px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.floating-btn img {
  width: 8cm;
}

/* ========== BUTTON WHATSAPP ========== */
#btnWhatsapp {
  background-color: #009e20;
  border-radius: 30px;
  color: #fff;
  padding: 9px 18px;
  margin: 6% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 640;
  display: inline-block;
  font-size: 20px;
}

#btnWhatsapp:hover {
  background-color: #00cc18;
}

.btnwa {
  background-color: #009e20;
  border-radius: 30px;
  color: #fff;
  padding: 9px 18px;
  margin: 6% 0 3% 0;
  text-align: center;
  text-decoration: none;
  font-weight: 640;
  display: inline-block;
  font-size: 20px;
}

/* Edit Alert Dibawah ini  */
.penting {
  margin: 0 3% 4%;
  padding: 20px;
  border-radius: 5px;
  background-color: #ccf3ff;
  color: #11425b;
  font-size: 14px;
}

.closebtnAlert {
  margin-left: 15px;
  color: #434343;
  font-weight: bold;
  float: right;
  font-size: 20px;
  line-height: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.closebtnAlert:hover {
  color: black;
}

/* Slideshow (optional) */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

.dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dot.active {
  background-color: #717171;
}

/* Animasi fade */
@keyframes fade {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* Fullscreen gambar di layar kecil */
@media (max-width: 720px) {
  .section {
    max-width: 100%;
    width: 100%;
  }

  .form {
    max-width: 100%;
    width: 100%;
  }

  .form h2 {
    font-size: 20px;
    font-weight: bold;
  }

  .floating-btn {
    max-width: 100%;
    padding-bottom: 30px;
  }

  .floating-btn img {
    width: 8cm;
  }

  .order-box {
    max-width: 100%;
    width: 100%;
  }

  .scroll-container {
    height: 450px;
  }

  .order-title {
    font-size: 20px;
  }

  .order-name,
  .order-box-count,
  .order-time {
    font-size: 14px;
  }

  .img-container img {
    width: 100%;
    height: auto;
  }
}