:root {
  --secondary-color: #c50000;
  --primary-color: #2e3192;
}

.cart-section {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  min-height: 100vh;
}

/* Header */

.cart-header {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  align-items: center;
}
.cart-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}
.cart-clear-button {
  width: 100%;
  max-width: max-content;
  border: none;
  outline: none;
  background-color: transparent;
  color: var(--primary-color);
  padding: 5px 10px;
  cursor: pointer;
  text-decoration: none;
}
.cart-clear-button:hover {
  background-color: rgba(211, 211, 211, 0.308);
}

.cart-header-title {
  font-size: 24px;
  font-weight: bold;
}

/* Step Progress */
.cart-progress {
  width: 100%;
  display: flex;
  justify-content: start;
  /* gap: 2rem; */
  padding: 20px 0;
}

.cart-progress-step {
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  font-size: 14px;
  color: #555;
  width: 20%;
}

.cart-progress-step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid green;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: green;
  background-color: white;
}

.cart-progress-step.active .cart-progress-step-circle {
  background-color: green;
  color: white;
}

.cart-progress-step + .cart-progress-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -50%;
  width: 100%;
  height: 2px;
  z-index: -1;
  border-top: 1px dotted #555;
}

/* Main Content */
.cart-main-container {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  padding: 20px;
}
.cart-container {
  width: 100%;
}
/* Address Section */
.cart-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.tab-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 30px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background-color: white;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 16px;
  font-weight: 600;
}
.tab-button:first-child {
  border-radius: 5px 0 0 5px; /* Rounded left corners */
}

.tab-button:last-child {
  border-radius: 0 5px 5px 0; /* Rounded right corners */
}
.tab-button.active {
  background-color: var(--primary-color);
  color: white;
}
.cart-address-container {
  display: none;
  flex-direction: column;
  gap: 1rem;

  border-radius: 8px;
  padding: 20px;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-time-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  border-radius: 8px;
  padding: 20px;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-address-container i,
.cart-time-container i {
  color: var(--primary-color);
}

.cart-info {
  display: none;
  padding: 15px;
}

.cart-info.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.address-info {
  font-weight: bold;
  margin-bottom: 5px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.cart-item-name {
  width: 100%;
  background-color: #f5f5f5;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
}
.cart-item-price {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}
.cart-item:first-child {
  border-top: none;
}

.delete-icon {
  color: var(--primary-color);
  cursor: pointer;
}

.add-more-tests {
  padding: 10px 20px;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: white;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  border-radius: 5px;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s;
  text-decoration: none;
}

.add-more-tests:hover {
  background-color: var(--primary-color);
  color: white;
}
/* Payment Section */
.cart-payment {
  width: 100%;
  max-width: 400px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
}

.cart-payment-header {
  font-weight: bold;
  font-size: 22px;
  margin-bottom: 15px;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}
.cart-payment-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
.cart-payment-container .cart-payment-offers {
  border: 1px solid #ddd;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--primary-color);
  background: #f0f0f0;
}
.cart-payment-offers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
  cursor: pointer;
}
.cart-payment-offer-info {
  display: flex;
  gap: 0.21rem;
  align-items: center;
}
.cart-payment-offer-info svg {
  width: 15px;
}
.cart-payment-offers-icon {
  font-size: 20px;
  color: var(--primary-color);
}

.cart-payment-details {
  margin-bottom: 15px;
  font-size: 16px;
}

.cart-payment-details p {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.cart-payment-total {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  font-size: 18px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  margin-top: 10px;
}

.cart-payment-button {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  display: block;
}
/* ----------------RUGHT SIDE CONTAINER --------------- */
.cart-right-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 420px;
}
/* -------------------4th tab---------------- */
#order-review-container {
  width: 100%;
  background-color: #fff;
}

/* Payment Methods Section */
#payment-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.payment-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  font-size: 18px;
  color: #333;
  position: relative;
  cursor: pointer;

  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.payment-gateway {
  font-size: 14px;
  color: var(--primary-color);
  margin-left: 10px;
  font-weight: bold;
  margin-left: auto;
}

/* Remarks Section */
#remarks-section {
  margin-top: 20px;
}

#remarks-label {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

#remarks,
textarea {
  width: 100%;
  height: 80px;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: none;
}

/* Place Order Button */
#place_order {
  text-align: center;
  margin-top: 20px;
}

#place_order {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  width: 100%;
}

#place_order:hover {
  background-color: var(--primary-color);
}

/* Order Review Section */
#order-review {
  margin-top: 30px;
}

#order-review h3 {
  font-size: 24px;
  margin-bottom: 1.5rem;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid #ddd;
}

.review-name {
  font-weight: bold;
  color: #333;
}

.review-product {
  color: #666;
}

.review-price {
  color: #333;
  font-weight: bold;
}
/* -----------------TAB 2------------------ */
.time-container {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  text-align: center;
}
.time-container h3,
.time-container p {
  background-color: #eeeeee;
}
.time-container h3 {
  padding: 1rem;
}
.time-container p {
  padding: 0 1rem 1rem 1rem;
}
.time-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.day-container {
  display: flex;
  justify-content: space-between;
}

.day {
  flex: 1;
  margin: 0 10px;
  text-align: center;
}

.time-slots,
.document-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.time-slot {
  border: 1px solid var(--secondary-color);
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  color: var(--secondary-color);
}

.document-slot {
  border: 1px solid var(--secondary-color);
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.time-slot.selected {
  background-color: var(--primary-color);
  color: white;
}

.time-slot:hover {
  background-color: #ffbdbd;
}
.time-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.time-nav i {
  color: var(--primary-color);
  margin: 0;
}
.time-nav span {
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-color);
}
.time-nav-btn {
  cursor: pointer;
  font-size: 18px;
  color: #333;
}

#cart-right-home,
#cart-right-time {
  padding: 0;
}

/* --------------PATIENTS----------------- */
#patient {
  padding: 1.5em;
  background-color: #f9f9f9;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

#patient h2 {
  text-align: center;
  margin-bottom: 1em;
  font-size: 1.8em;
  color: #333;
}

.add-patient-btn {
  display: block;
  margin: 1em auto;
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-patient-btn:hover {
  background-color: #218838;
}

.patient-form {
  background: white;
  border: 1px solid #ddd;
  padding: 1.5em;
  margin-bottom: 1.5em;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.patient-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.patient-form-header h3 {
  font-size: 1.2em;
  color: #444;
}

.remove-patient-button {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s;
}

.remove-patient-button i {
  margin-right: 0.5em;
}

.remove-patient-button:hover {
  background: var(--primary-color);
}

.cart-form-group,
.woocommerce-input-wrapper {
  margin-bottom: 1em;
}

.woocommerce-checkout .woocommerce-billing-fields h3 {
  margin-top: 1rem;
}

.woocommerce-additional-fields h3 {
  margin-top: 3rem;
}

.cart-form-group label,
.woocommerce-billing-fields__field-wrapper label,
.woocommerce-additional-fields__field-wrapper label {
  display: block;
  font-size: 0.9em;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #666;
}

.cart-form-group input,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.cart-form-group select {
  width: 100%;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.tests-group {
  padding: 1em;
  border: 1px solid #ddd;
  border-radius: 5px;
}
.tests-group input {
  width: max-content;
}
.tests-group legend {
  font-size: 1em;
  margin-bottom: 0.5em;
  color: #444;
}

.tests-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-direction: row-reverse;
  margin-bottom: 0.5em;
  font-size: 0.9em;
}
.tests-group label span {
  width: 100%;
  /* font-size: 1.25rem; */
  font-weight: 600;
}

.payment-option.cash-on-delivery {
  display: none;
}

.place-order button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 600;
  padding: 12px;
}

.woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 8px;
}

/* apply coupon input */
.woocommerce-checkout #coupon_code {
  width: 100%;
  padding: 0 12px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s ease;
}

.woocommerce-checkout #coupon_code:focus {
  border-color: #007bff;
}

/* if you have coupon code paragraph */
#order-review-container > div > p:nth-child(3) {
  margin-bottom: 10px;
}

.woocommerce-form-coupon-toggle {
  display: none;
}

/* apply coupon button */
.woocommerce-checkout button[name="apply_coupon"] {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.woocommerce-checkout button[name="apply_coupon"]:hover {
  opacity: 70%;
}

@media screen and (max-width: 1008px) {
  .cart-main-container {
    padding: 0;
    gap: 0;
  }
  .cart-header-left h1 {
    font-size: 20px;
  }
}
@media screen and (max-width: 750px) {
  .cart-main-container {
    flex-direction: column;
  }
  .cart-right-container {
    width: 100%;
    padding: 1rem;
    max-width: 100%;
  }
  .cart-payment {
    width: 100%;
    max-width: 100%;
  }
  .cart-progress {
    justify-content: center;
  }
  .cart-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }
  .cart-progress-step {
    width: 50%;
  }
  .cart-header-left {
    gap: 0;
    margin: 0;
  }
  .add-more-tests {
    padding: 5px 10px;
    font-size: 12px;
  }
}
