#coupon-message {
  /* color: rgba(233, 14, 14); */
  font-size: 15px;
  font-weight: 600;
}

#apply_flexi_coupon {
  padding: 8px 12px;
  background: black;
  color: white;
  font-weight: 600;
  text-transform: capitalize !important;
  border-radius: 4px;
  height:40px;
  letter-spacing: inherit !important;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 80%;
  max-width: 500px;
  display: none;
}

.popup.active {
  display: block;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.popup-header h3 {
  margin: 0;
}

.close-btn {
  background-color: #E64A19;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 1.2em;
  cursor: pointer;
}

.close-btn:hover {
  background-color: #D84315;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copy-message {
  font-size: 0.8em;
  color: #4CAF50;
  margin-top: 5px;
}

.cart-totals {
  border: 1px solid #e0e0e0;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
}

.cart-totals h2 {
  margin-bottom: 20px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 15px;
}

.cart-row:last-child {
  border-bottom: none;
}

.total {
  font-weight: bold;
  color: #2d2d2d;
}

.coupon {
  color: #0071a1;
  font-weight: bold;
}

.remove-coupon {
  color: #d9534f;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 10px;
  font-size: 14px;
}

.add-coupon-container {
  margin-top: 20px;
}

.add-coupon-btn {
  background-color: #0071a1;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: center;
}

.add-coupon-btn:hover {
  background-color: #005680;
}

.coupon-container {
  /* width: 350px; */
  display: flex;
  gap: 12px;
}

.coupon-container .coupon-box {
  background: white;
  border-radius: 6px;
  margin: 10px 0;
  padding: 12px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  position: relative;
  width: 94%;
}

.coupon::before,
.coupon::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #f5f5f5;
  border-radius: 50%;
}

.coupon::before {
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
}

.coupon::after {
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
}

.logo {
  max-width: 80px;
  height: 50px;
  margin-right: 15px;
  border-radius: 50%;
  -moz-border-radius: 50%;
}

.details {
  flex-grow: 1;
  padding-left: 20px;
  border-left: 3px dashed #646464;
}

.details h2 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #4f4f4f;
  letter-spacing: 4px;
  font-weight: bold !important;
}

.details p {
  margin: 5px 0;
  font-size: 14px;
  color: #4f4f4f;
  letter-spacing: 1px;
  font-weight: 600 !important;
}

.details p span {
  font-size: 20px;
  font-weight: 900;
  color: #646464;
}

.details span {
  font-size: 12px;
  color: gray;
}

.more-coupon {
  display: block;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

#coupon-myModal h2 {
  margin-bottom: 0px;
  margin-top: 0px;
}

/* The Modal (background) */
#coupon-myModal.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content/Box */
#coupon-myModal .modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  /* 15% from the top and centered */
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 360px
    /* Could be more or less, depending on screen size */
}


/* The Close Button */
#coupon-myModal .close {
  color: #565656;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* for info button on description */
.text-container {
  /* display: inline-block;
  position: relative;
  cursor: pointer;
  color: #007bff; */
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #333;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px 0;
  /* font-size: 16px; */
}

.tooltip {
  visibility: hidden;
  /* background-color: rgba(0, 0, 0, 0.75); */
  color: rgba(0, 0, 0, 0.75);
  /* text-align: center; */
  padding: 5px 10px;
  border-radius: 5px;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.text-container:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

#myBtn {
  display: none;
}