#infusion-scheduler-tool {
  max-width: 828px;
  margin: 0 auto;
  font-family: Arial, sans-serif;

  & > div[layoutalignment] {
    justify-content: left;

    div[contentalignment] {
      width: 100%;

      .infusion-scheduler-container {
        .pre-text {
          h2 {
            font-family: "Roboto Condensed";
            font-weight: 700;
            letter-spacing: 0px;
            vertical-align: middle;
            color: #544f40;
          }

          p {
            font-family: Arial;
            color: #544f40;
            margin: 0;
          }
        }

        .custom-form-wrapper {
          box-sizing: border-box;
          background-color: #fff1cc;
          padding: 24px 16px;
          border-radius: 16px;

          .custom-form {
            padding: 16px 12px;
            display: flex;
            flex-direction: column;
            row-gap: 24px;

            .radio-group {
              display: flex;
              flex-direction: column;
              row-gap: 24px;
              font-weight: 700;
              font-size: 16px;
              line-height: 24px;

              label {
                display: flex;
                align-items: flex-start;
                cursor: pointer;

                input[type="radio"] {
                  width: 20px;
                  height: 20px;
                  accent-color: #9218af;
                  flex-shrink: 0;
                  margin-top: 2px;
                  cursor: pointer;

                  appearance: none;
                  -webkit-appearance: none;
                  border: 1px solid #544f40;
                  border-radius: 50%;
                  background-color: #fff1cc;
                  position: relative;

                  &:checked::after {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%, -50%);
                    width: 10px;
                    height: 10px;
                    border-radius: 50%;
                    background-color: #9218af;
                  }
                }

                input[type="radio"]:checked {
                  border-color: #9218af;
                }
                input[type="radio"]:focus-visible {
                  outline: 2px solid #9218af;
                  outline-offset: 2px;
                }

                span {
                  margin-left: 8px;
                  font-family: Arial;
                  font-weight: 700;
                  font-size: 16px;
                  line-height: 24px;
                  letter-spacing: 0px;
                  color: #544f40;
                }
              }
            }

            .btn-continue {
              font-family: Arial;
              font-weight: 700;
              font-size: 12px;
              line-height: 16px;
              letter-spacing: 1.5px;
              text-transform: uppercase;
              width: fit-content;
              background-color: #9218af;
              border: none;
              border-radius: 24px;
              padding: 9px 18px 9px 20px;
              color: #ffffff;
              cursor: pointer;
              transition: opacity 0.2s;
              display: flex;
              align-items: center;
              gap: 6px;

              .material-icons {
                font-size: 22px;
              }

              &:hover {
                background-color: #7a1394;
              }
            }
          }
        }

        .date-section {
          box-sizing: border-box;
          padding: 0;

          .reset-link {
            display: inline-block;
            text-decoration: none;
            cursor: pointer;
            font-weight: 400;
            color: #9218af;
            font-size: 16px;
            line-height: 24px;
            letter-spacing: 0px;
            vertical-align: middle;

            &:hover {
              color: #7a1394;
            }

            .reset-symbol {
              text-decoration: none;
            }

            .reset-text {
              text-decoration: underline !important;
              font-family: Arial;
            }
          }

          .date-section-heading {
            color: #544f40;
            margin: 12px 0 47px;
            @media (min-width: 768px) {
              margin: 5px 0 27px;
            }
          }

          .date-section-sub {
            font-family: Arial;
            font-weight: 400;
            font-size: 12px;
            line-height: 16px;
            letter-spacing: 0px;
            color: #544f40;
            margin-bottom: 48px;
            @media (min-width: 768px) {
              margin-bottom: 33px;
            }
          }

          .date-picker-box {
            background-color: #fff1cc;
            border-radius: 16px;
            padding: 24px 12px;
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            align-items: flex-start;

            .date-picker-panel {
              background-color: #ffffff;
              border-radius: 12px;
              padding: 12px;
              width: 100%;
              box-shadow:
                0 2px 4px -2px rgba(0, 0, 0, 0.1),
                0 4px 6px -1px rgba(0, 0, 0, 0.1);
              @media (min-width: 768px) {
                max-width: 405px;
                margin: 0 auto;
                padding: 16px 12px;
              }

              .date-input-row {
                display: flex;
                align-items: flex-end;
                flex-wrap: nowrap;
                gap: 15px;
                @media (min-width: 768px) {
                  gap: 17px;
                }
              }

              .date-input-wrapper {
                display: flex;
                flex-direction: column;
                flex: 1;
                min-width: 0;
              }

              .date-input-label {
                margin-bottom: 16px;
                h5 {
                  color: #544f40;
                }
              }

              .date-input {
                border: 2px solid #d5d1ce;
                width: 100%;
                min-width: 0;
                max-width: 100%;
                height: 44px;
                box-sizing: border-box;
                border-radius: 10px;
                padding: 10px 12px;
                font-family: Arial;
                font-weight: 400;
                font-size: 16px;
                line-height: 24px;
                letter-spacing: -0.31px;
                color: #544f40;

                &::placeholder {
                  color: #c1c2c2;
                  font-family: Arial;
                  font-weight: 400;
                  font-size: 16px;
                  line-height: 24px;
                  letter-spacing: 0px;
                }

                &:focus {
                  outline: none;
                  border: 2px solid #d5d1ce;
                }

                &.active {
                  background-color: #efefed;
                }
              }

              .cal-toggle-btn {
                background-color: #9218af;
                border: 1px solid #746f5f;
                border-radius: 8px;
                cursor: pointer;
                color: #ffffff;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                width: 48px;
                height: 48px;

                &:hover {
                  background-color: #7a1394;
                }

                .material-symbols-outlined {
                  font-size: 24px;
                  font-style: normal;
                }
              }

              .cal-wrapper {
                padding-top: 26px;
                @media (min-width: 768px) {
                  padding: 32px 10px 0;
                }

                .cal-header {
                  display: flex;
                  align-items: flex-start;
                  justify-content: space-between;
                  margin-bottom: 8px;
                  @media (min-width: 768px) {
                    margin-bottom: 14px;
                  }

                  .cal-title {
                    font-family: Arial;
                    font-weight: 700;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: -0.31px;
                    text-align: center;
                    color: #544f40;
                  }

                  .cal-nav {
                    background-color: #efefed;
                    border: none;
                    width: 28px;
                    height: 28px;
                    border-radius: 8px;
                    padding: 6px;
                    cursor: pointer;
                    color: #9810fa;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    flex-shrink: 0;
                    font-weight: 700;

                    &:hover {
                      background-color: #e0d0f5;
                      color: #9218af;
                    }
                  }
                }

                .cal-grid {
                  display: grid;
                  grid-template-columns: repeat(7, 1fr);
                  width: 100%;
                  row-gap: 4px;

                  .cal-dow {
                    color: #544f40;
                    font-family: Arial;
                    font-weight: 700;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: -0.31px;
                    padding: 0;
                    width: 100%;
                    height: 24px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin: 0;
                    grid-row: 1;
                  }

                  .cal-day {
                    cursor: pointer;
                    font-family: Arial;
                    font-weight: 400;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: -0.31px;
                    color: #59168b;
                    padding: 0;
                    width: 100%;
                    height: 36px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin: 0;
                    box-sizing: border-box;

                    &.two-digit {
                      padding-left: 0;
                    }

                    &.today {
                      border: 1px solid #d5d1ce;
                      border-radius: 8px;
                      font-weight: 700;
                      font-family: Arial;
                      font-weight: 600;
                      font-size: 16px;
                      line-height: 24px;
                      letter-spacing: -0.31px;
                      text-align: center;
                      height: 36px;
                      width: 40px;
                      margin: 0 auto;
                    }

                    &:hover:not(.outside) {
                      background-color: #f0e0f5;
                      color: #9218af;
                    }

                    &.outside {
                      font-family: Arial;
                      font-weight: 400;
                      font-size: 16px;
                      line-height: 24px;
                      letter-spacing: -0.31px;
                      text-align: center;
                      color: #59168b;
                      opacity: 0.35;
                      cursor: default;
                    }

                    &.selected {
                      width: 40px;
                      height: 36px;
                      opacity: 1;
                      background-color: #fef3c6;
                      border: 1px solid #d5d1ce;
                      border-radius: 8px;
                      color: #59168b;
                      font-family: Arial;
                      font-weight: 600;
                      font-size: 16px;
                      line-height: 24px;
                      letter-spacing: -0.31px;
                      text-align: center;
                      margin: 0 auto;
                    }
                  }
                }
              }
            }

            .results-panel {
              flex: 1;
              min-width: 240px;
              display: flex;
              flex-direction: column;
              gap: 16px;

              .results-block {
                background-color: #ffffff;
                border-radius: 12px;
                padding: 16px;
                box-shadow:
                  0 1px 2px -1px rgba(0, 0, 0, 0.1),
                  0 1px 3px 0px rgba(0, 0, 0, 0.1);

                .results-label {
                  font-family: Roboto Condensed;
                  font-weight: 700;
                  font-size: 16px;
                  line-height: 24px;
                  letter-spacing: 0px;
                  margin-bottom: 18px;
                  color: #544f40;
                }

                .results-sublabel {
                  font-family: Arial;
                  font-weight: 400;
                  font-size: 16px;
                  line-height: 24px;
                  letter-spacing: 0px;
                  margin-bottom: 4px;
                  color: #544f40;
                }

                .dose-row {
                  display: flex;
                  justify-content: space-between;
                  align-items: center;
                  background-color: #fdd562;
                  border-radius: 10px;
                  padding: 8px 12px;
                  margin-bottom: 8px;
                  font-size: 13px;
                  font-weight: 700;

                  &:last-of-type {
                    margin-bottom: 0;
                  }

                  span {
                    font-family: Arial;
                    font-weight: 700;
                    font-size: 16px;
                    line-height: 24px;
                    letter-spacing: -0.31px;
                    color: #544f40;
                  }
                }

                .pill {
                  background-color: #fdd562;
                  border-radius: 6px;
                  padding: 8px 12px;
                  margin-bottom: 8px;
                  font-family: Arial;
                  font-weight: 700;
                  font-size: 16px;
                  line-height: 24px;
                  letter-spacing: -0.31px;
                  color: #544f40;

                  &:last-child {
                    margin-bottom: 0;
                  }
                }

                &.ongoing-dates {
                  p.results-label {
                    margin-bottom: 4px;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
