.jw-drawer-author-view {
  padding: 1rem;
}

.jw-drawer {
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 1111;
  background-color: rgba(0, 0, 0, 0.75);
  padding: 0;
  opacity: 0;
  transition: visibility 0.3s linear, opacity 0.3s linear;
}

.jw-drawer.open {
  visibility: visible;
  opacity: 1;
}

.jw-drawer .jw-drawer-body-left,
.jw-drawer .jw-drawer-body-right {
  background: #fff;
  z-index: 10000;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 92%;
  transition: transform 300ms ease-in-out, opacity 300ms ease-in-out;
  overflow-y: auto;
  max-width: 512px;
  display: flex;
  flex-direction: column;
}

.jw-drawer .jw-drawer-body-left {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  opacity: 0;
}

.jw-drawer .jw-drawer-body-right {
  right: 0;
  left: auto;
  transform: translateX(100%);
  opacity: 0;
}

.jw-drawer.open .jw-drawer-body-left,
.jw-drawer.open .jw-drawer-body-right {
  transform: translateX(0);
  opacity: 1;
}

body.jw-drawer-open {
  /* body overflow is hidden to hide main scrollbar when drawer window is open */
  overflow: hidden;
}

.jw-drawer .jotform .form-all {
  box-shadow: none;
  margin-top: 0;
  font-family: "MMC", sans-serif;
}

.jw-drawer .jotform .error-navigation-container {
  display: none;
}

.jw-drawer .jotform .form-section {
  padding: 0;
}

.jw-drawer .jotform li.form-line {
  padding-left: 16px;
  padding-right: 16px;
}

.jw-drawer .jotform li::before {
  display: none;
}

.jw-drawer .jotform-thank-you-content .contentblock > section {
  margin: 0 !important;
}

.jw-drawer .jotform .form-input-wide {
  width: 100% !important; /* override style defined by jotform */
  position: relative;
}

.jw-drawer .jotform div.form-error-message {
  color: #a73d00;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.25rem;
  background-color: transparent !important; /* override style defined by jotform */
  background-image: none;
  padding: 0;
}

.jw-drawer .form-buttons-wrapper {
  margin: 0;
}

.jw-drawer .jotform div.form-error-message::before {
  display: inline-block;
  content: "\e002";
  color: #fd8204;
  font-family: "Material Icons";
  font-size: 0.875rem;
  position: relative;
  top: 2px;
}

.jw-drawer .jotform li.form-line-error,
.jw-drawer .jotform li.form-line-active {
  background-color: transparent;
}

.jw-drawer .jotform li.form-line-error input,
.jw-drawer .jotform li.form-line-error .select-styled {
  background-color: #fff4eb;
}

.jw-drawer
  .jotform
  .form-line-error
  .form-checkbox:not(:checked)
  + label:before {
  border-color: #fd8204;
}

.jw-drawer
  .jotform
  .form-line-error
  .form-checkbox:not(:checked):hover
  + label::before {
  border-color: #fd8204;
  box-shadow: none;
}

.jw-drawer .jotform button[type="submit"] {
  font-weight: 700;
  font-family: "MMC", sans-serif;
  font-size: 18px;
}

.jw-drawer .jotform div[data-component="text"] a {
  color: var(--mmal-brand-red);
}

.jw-drawer .jotform .calendar.popup {
  top: 9.56em !important; /* overriding inline styles added by jotforms */
  left: 40px !important;
  text-align: center !important;
}

.jw-drawer .jotform .calendar.popup::before {
  top: -3.24em;
  height: calc(100% + 3.25em);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  border-bottom: 1px solid #d9d9d9;

  @media (min-width: 768px) {
    padding: 24px;
  }
}

.spaceContent {
  justify-content: space-between;
}

.drawer-title {
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.25rem;
  margin: 0;
}

.drawer-button {
  border: none;
  background: none;
  display: flex;
  padding: 5px;
}

.drawer-button .material-icons {
  font-size: 1.25rem;
}

.drawer-button:hover {
  background: var(--grey-light);
}

.jw-drawer .jotform-integration-content .iframe-loader-container {
  padding-top: 50%;
}
