.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.checkout-overlay.active {
  display: block;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.checkout-popup {
  color: black;
  -ms-overflow-style: none;
  scrollbar-width: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  overflow-y: auto;
}

.checkout-popup.active {
  display: block;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #003315;
  color: #daf9e7;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.checkout-title {
  font-size: 1.3rem;
  font-weight: bold;
}

.checkout-close-btn {
  background: none;
  border: none;
  color: #daf9e7;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-content {
  padding: 20px;
}

.checkout-items {
  margin-bottom: 20px;
}

.checkout-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.checkout-table th {
  background-color: #f5f5f5;
  padding: 10px;
  text-align: left;
  font-weight: bold;
  color: #003315;
  border-bottom: 1px solid #ddd;
}

.checkout-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.checkout-product-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-product-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.checkout-summary {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.checkout-summary-row.total {
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
  color: #003315;
}

.checkout-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.checkout-form-group {
  margin-bottom: 15px;
}

.checkout-form-group.full-width {
  grid-column: span 2;
}

.checkout-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #003315;
}

.checkout-form-input,
.checkout-form-select,
.checkout-form-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.checkout-form-textarea {
  resize: vertical;
  min-height: 80px;
}

.checkout-payment-options {
  margin-top: 20px;
}

.checkout-payment-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #003315;
}

.checkout-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.checkout-payment-option.selected {
  border-color: #22c55e;
  background-color: rgba(34, 197, 94, 0.05);
}

.checkout-payment-option input {
  margin: 0;
}

.checkout-submit-btn {
  background-color: #22c55e;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.checkout-submit-btn:hover {
  background-color: #1ca350;
}

.coupon-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.coupon-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.coupon-input button {
  background-color: #003315;
  color: white;
  border: none;
  padding: 0 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.order-now-btn {
  background-color: #22c55e;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.order-now-btn:hover {
  background-color: #1ca350;
}

@media (max-width: 768px) {
  .checkout-popup {
    width: 95%;
    max-height: 95vh;
  }

  .checkout-form {
    grid-template-columns: 1fr;
  }

  .checkout-form-group.full-width {
    grid-column: span 1;
  }

  .checkout-table {
    font-size: 0.9rem;
  }

  .checkout-product-image {
    width: 40px;
    height: 40px;
  }
} 