#discount {
  margin: 0;
  display: none;
  flex-direction: column;
  width: 100%;
  gap: 20px;
  overflow: visible;
  font-size: var(--font-size-3);
  scroll-margin-top: -100px;
}
#discount.open {
  display: flex;
}
#delivery .delivery-content {
  width: 100%;
  overflow-x: scroll;
  scrollbar-width: none;
}
#discount header {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center;
}
#discount header .swap-button,
#discount header .header-buttons {
  width: 338px;
}
#discount header .swap-button::before,
#discount header .swap-button::after {
  width: 140px;
}
#discount header .swap-button::before {
  content: "Daily Discount";
}
#discount header .swap-button::after {
  content: "Delivery Fee Discount";
  transform: translateX(110%);
}
#discount header .swap-button.right-clicked::before {
  content: "Delivery Fee Discount";
  transform: translateX(110%);
}
#discount header .swap-button.right-clicked::after {
  content: "Daily Discount";
  transform: translateX(0);
}
#discount header .swap-button.left-clicked::before {
  content: "Daily Discount";
  transform: translateX(0);
}
#discount header .swap-button.left-clicked::after {
  content: "Delivery Fee Discount";
  transform: translateX(110%);
}
#discount header .about-discount {
  display: none;
}
#discount .discount-types {
  width: 100%;
  border-top: 1px solid var(--gray-3);
  padding-top: 20px;
  height: calc(100vh - 184px);
  overflow-y: hidden;
}
#discount .discount-types .pagination-container,
#settings .settings-header .pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
#discount .discount-types .pagination-container li,
#settings .settings-header .pagination li {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
#discount .discount-types .pagination-container li:hover,
#settings .settings-header .pagination li:hover {
  color: var(--blue-2);
}
#discount .discount-types .pagination-container li.active,
#discount .discount-types .pagination-container li.active:hover,
#settings .settings-header .pagination li.active,
#settings .settings-header .pagination li.active:hover {
  color: var(--red-5);
}
#discount .discount-types .pagination-container li::before,
#settings .settings-header .pagination li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 10px;
  background-color: var(--white);
  display: block;
}
#discount .discount-types .pagination-container li.active::before,
#settings .settings-header .pagination li.active::before {
  background-color: var(--red-5);
}
#discount .discount-types .pagination-container li button {
  color: inherit;
}
#discount .discount-types .pagination-container2 {
  display: none;
  width: 100%;
}
#discount .discount-types .pagination-container2 li {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 25px;
}
#discount .discount-types .pagination-container2 li p {
  flex: 1;
}
#discount .discount-types .pagination-container2 li .discount-name {
  width: 50%;
}
#discount .discount-types .pagination-container2 li svg {
  width: 14px;
}
#discount .discount-types .discount-forms {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  border-radius: 20px;
  width: 100%;
  margin-top: 30px;
  gap: 30px;
  height: calc(100vh - 252px);
  overflow-y: scroll;
  padding-bottom: 30px;
}
#discount .daily-discount {
  display: none;
}
#discount .daily-discount.show {
  display: block;
}
#discount form {
  display: flex;
  flex-direction: column;
  border: 1.5px dashed var(--purple-2);
  border-radius: 20px;
  width: 75%;
  padding: 30px;
  scroll-margin-top: 100px;
  height: fit-content;
}
#discount form .form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#discount form .form-header > div,
#discount form .form-header > div > p {
  display: flex;
  align-items: center;
}
#discount form .form-header > div {
  gap: 20px;
}
#discount form .form-header > div > p {
  gap: 10px;
}
#discount form .form-header > div > .about-discount {
  color: var(--purple-2);
  background-color: var(--purple-1);
  padding: 7px 15px;
  border-radius: 15px;
  cursor: pointer;
  font-size: var(--font-size-2);
}
#discount form .form-header > div > .close-btn {
  display: none;
}
#discount form .form-group {
  padding-block: 20px;
}
#discount form .form-group .form-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}
#discount form .floating-controls.dropdown{
  border: 1px solid var(--gray-2);
  border-radius: 5px;
}
#discount form .floating-controls button,
#discount form .floating-controls input[type="text"] {
  margin-bottom: 0;
}
#discount form .floating-controls button{
  border: none;
}
#discount form .form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
#discount form .form-group .form-row .day {
  border: 1px solid var(--gray-2);
  width: 100%;
  height: 100%;
  border-radius: 5px;
  padding-inline: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-2);
  background-color: var(--gray-1);
}
#discount form .form-group .form-row.active .day {
  background-color: var(--green-1);
}
#discount form .form-group .form-row .day .status {
  display: none;
  color: var(--green-4);
}
#discount form .form-group .form-row .floating-controls input + label,
#discount
  form
  .form-group
  .form-row
  .floating-controls
  .input-container
  + label {
  top: -6px;
  font-size: var(--font-size-1);
  background-color: var(--white);
}
#discount form .form-group .form-row .floating-controls .input-container {
  padding: 1.5rem 0.9rem;
  border: 1px solid var(--gray-2);
  width: 100%;
  display: flex;
  align-items: center;
  height: 4rem;
  border-radius: 5px;
}
#discount form .form-group .form-row .floating-controls .input-container span {
  color: var(--black);
  font-size: var(--font-size-2);
}
#discount
  form
  .form-group
  .form-row
  .floating-controls:nth-child(4)
  input[type="text"] {
  padding: 0 0.3rem;
  border: none;
  width: 100%;
  margin-bottom: 0;
  height: 1rem;
  color: var(--black);
}
#discount form .form-group .form-row .floating-controls.dropdown img {
  width: 15px !important;
  margin-right: 15px;
}
#discount form .form-footer {
  display: none;
  align-items: center;
  justify-content: center;
}
#discount .delivery-discount {
  width: 100%;
  display: none;
  justify-content: center;
  padding-block: 45px;
  height: calc(100vh - 222px);
  overflow-y: scroll;
  padding-bottom: 30px;
}
#discount .delivery-discount.show {
  display: flex;
}
@media (max-width: 1200px) {
  #discount form {
    width: 85%;
  }
}
@media (max-width: 840px) {
  #discount header,
  #discount .discount-types .discount-forms {
    padding-inline: 20px;
  }
  #discount form .form-group .form-row {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    align-items: center;
  }
  #discount form .form-group .form-row > div:first-child {
    height: 52px;
  }
  #discount form .form-group .form-row > div:nth-child(2),
  #discount form .form-group .form-row > div:nth-child(3),
  #discount form .form-group .form-row > div:nth-child(4) {
    display: none;
  }
  #discount form .form-group .form-row.active > div:nth-child(2),
  #discount form .form-group .form-row.active > div:nth-child(3),
  #discount form .form-group .form-row.active > div:nth-child(4) {
    display: flex;
  }
  #discount form .form-group .form-row.active .day .status {
    display: block;
  }
  #discount form .form-footer {
    display: flex;
  }
  #discount form .form-header .update-button {
    display: none;
  }
}
@media (max-width: 540px) {
  #discount .discount-types .pagination-container2 {
    display: block;
  }
  #discount .discount-types .pagination-container {
    display: none;
  }
  #discount header .about-discount {
    display: flex;
  }
  #discount .discount-forms form {
    display: none;
    flex-direction: column;
    padding: 30px;
    position: fixed;
    background: white;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border: none;
    border-radius: 0;
    top: 0;
    z-index: 50;
  }
  #discount .delivery-discount {
    border: none;
    border-radius: 0;
    padding-top: 15px;
  }
  #discount .delivery-discount form {
    padding: 0;
    border: none;
    border-radius: 0;
  }

  #discount form.show {
    display: flex;
  }
  #discount form .form-header > div {
    width: 100%;
    justify-content: space-between;
    margin-bottom: 25px;
  }
  #discount form .form-header > div > .about-discount {
    display: none;
  }
  #discount form .form-header > div > .close-btn {
    display: flex;
  }
  #discount form .form-group {
    overflow: scroll;
  }
}
