.payment-body {
  font-family: "Poppins", sans-serif;
  background-color: #f4f4f9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.payment-container {
  text-align: center;
  background: #ffffff;
  padding: 30px 25px;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-top: 6px solid var(--secondary-color);
}

.payment-container h2 {
  font-size: 1.6rem;
  color: var(--dark-color);
}

.product-info-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin: 25px 0;
  border: 1px solid #e9ecef;
  text-align: left;
}

.payment-form {
  margin-top: 20px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  border: none;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.quantity-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 50px;
  overflow: hidden;
  width: 150px;
  margin-top: 5px;
}

.quantity-btn {
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  width: 50px;
  height: 45px;
  cursor: pointer;
  color: var(--text-light);
  transition: background-color 0.2s, color 0.2s;
}

.quantity-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

#quantity {
  width: 50px;
  text-align: center;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-color);
  padding: 0;
  background-color: transparent;
  -moz-appearance: textfield;
}

#quantity:focus {
  outline: none;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#price-breakdown {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
}

#price-breakdown p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}

#price-breakdown p span:first-child {
  color: var(--text-light);
}

#price-breakdown p span:last-child {
  font-weight: 600;
  color: var(--dark-color);
}

#total-price-display p {
  font-size: 1.1rem;
  font-weight: 700;
}

#total-price-display .price-final {
  font-size: 1.4rem;
  color: var(--primary-color);
}

.modal-trigger {
  width: 100%;
  font-weight: 600;
  color: var(--primary-color);
  background: transparent;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-trigger:hover {
  background: var(--primary-color);
  color: white;
}

.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 25px 30px;
  border: 1px solid #888;
  width: 90%;
  max-width: 450px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
}

.modal-close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#confirmation-modal .modal-content {
  text-align: center;
}

.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-confirm-no {
  background: none;
  border: 2px solid #ccc;
  color: #6c757d;
}

.btn-confirm-no:hover {
  background: #6c757d;
  color: white;
  border-color: #6c757d;
  transform: translateY(0);
  box-shadow: none;
}

.voucher-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.voucher-wrapper input {
  flex-grow: 1;
}

#btn-apply-voucher {
  padding: 12px 15px;
  font-weight: 600;
  border: none;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  border-radius: 8px;
}

#btn-apply-voucher:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#voucher-message {
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.voucher-success {
  color: var(--success-color);
}

.voucher-error {
  color: var(--error-color);
}

#voucher-breakdown {
  display: none;
}

#voucher-breakdown span:last-child {
  color: var(--success-color);
  font-weight: 700;
}

.btn-whatsapp-channel {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #25d366 0%, #128c7e 100%);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-whatsapp-channel:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.other-products-section {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}

.other-products-section .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.other-products-section .product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  text-align: left;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-products-section .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.other-products-section .product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.other-products-section .product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 15px;
  color: #333;
}

.other-products-section .product-card .price {
  padding: 0 15px 15px;
}

.other-products-section .product-card .original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  margin-right: 8px;
}

.other-products-section .product-card .final-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .payment-body {
    padding: 10px;
  }

  .payment-container {
    padding: 20px 15px;
  }

  .other-products-section .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  #confirmation-modal p {
    font-size: 1rem;
  }
}
