html,
body {
  padding: 0;
  margin: 0;
  height: 100vh;
  width: 100vw;
  font-family: "Shapiro", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  background: var(--theme-bg);
  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;

  /* Theme Variables */
  --theme-bg: #ffffff; /* Base level page background */
  --theme-alt-bg: #fafafa; /* Alternate background */
  --theme-l1: #ffffff; /* Elevation on level 1. Accompanied by Shadow/XS */
  --theme-l2: #ffffff; /* Elevation on level 2. Accompanied by Shadow/S */
  --theme-100: #eef0f1; /* Disabled backgrounds, muted borders */
  --theme-200: #e2e5e8; /* Light border */
  --theme-300: #ced3d9; /* Hovered border */
  --theme-400: #84898f; /* Placeholder text */
  --theme-500: #5e666e; /* Light text */
  --theme-600: #4b5258; /* Light text 2 */
  --theme-700: #1d2125; /* Medium text */
  --theme-800: #121517; /* Headings / subheadings */
  --theme-900: #0a0c0d; /* Titles */
  --theme-primary: #785ef1; /* Primary */
  --theme-bg-transparent: #ffffff00;

  /* Bonfire Variables */
  --bonfire-primary: #785ef1;
  --bonfire-primary-light: rgba(98, 78, 226, 0.24);
  --bonfire-primary-hover: #8972f3;
  --bonfire-primary-transparent: rgba(120, 94, 241, 0.2);
  --bonfire-secondary: #ffd5bc;

  /* Utility Variables */
  --success: #00d180;
  --warning: #ffe67d;
  --error: #ea3223;
  --white: #ffffff;
  --black: #000000;

  --shadow-xs: 0px 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0px 1px 3px rgba(0, 0, 0, 0.05), 0px 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0px 2px 5px rgba(0, 0, 0, 0.06),
    0px 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0px 4px 6px -2px rgba(0, 0, 0, 0.06),
    0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-top: 0px -8px 24px -5px rgba(0, 0, 0, 0.06),
    0px 8px 24px -5px rgba(0, 0, 0, 0.06);

  --xsmall: 5px;
  --small: 10px;
  --medium: 20px;
  --large: 30px;
  --xlarge: 40px;
  --xxlarge: 50px;

  --z-index-modal: 10;
  --z-index-modal-overlay: 6;
  --z-index-high: 5;
  --z-index-above: 1;
  --z-index-base: 0;

  --z-index-preview-hero-image: 2;
  --z-index-preview-hero-frame: 3;
  --z-index-preview-hero-overlay: 4;
  --z-index-preview-hero-title: 5;

  --tablet-width: 768px;
  --desktop-width: 1440px;

  --regular: 400;
  --semi-bold: 500;
  --bold: 600;
  --extraBold: 800;

  --dashboard-forms-width: 900px;
  --creator-pages-max-width: 1024px;
  --wizard-max-width: 950px;

  --dashboard-menu-width: 256px;
  --dashboard-content-max-width: 1136px;

  --studio-menu-tablet-width: 350px;
  --studio-menu-width: 368px;
  --studio-menu-audio-player-offset: 250px;

  --creator-page-builder-header-height: 0px;

  --hamburger-menu-container-height: 30px;

  --card-border-radius: 8px;
  --card-inner-border-radius: 6px;
  --creator-page-builder-editor-padding-x: 64px;
  --builder-menu-block-height: 76px;

  --creator-page-footer-height: 75px;
  --creator-page-header-height: 80px;

  --creator-page-builder-header-height: 76px;
  --creator-page-builder-editor-header-height: 36px;
  --block-padding: 32px;
  --block-padding-mobile: 16px;

  --font-size-h1: 32px;
  --font-size-h2: 28px;
  --font-size-h3: 24px;
  --font-size-h4: 20px;
}

/** This handles rendering the header for the react-spring-bottom modal pop-up and sets the background to match the the body instead of the default color */
[data-rsbs-has-header="false"] [data-rsbs-header] {
  background: var(--theme-l1);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border: none;
  height: 35px;
}

/** This handles rendering the color for the top close widget so it is visible*/
[data-rsbs-has-header="false"] [data-rsbs-header]:before {
  width: 36px;
  height: 4px;
  background-color: var(--theme-500);
}

a {
  color: inherit;
  text-decoration: none;
}

* {
  box-sizing: border-box;
  font-family: "Shapiro", -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

#__next {
  height: 100%;
}

.calendly-inline-widget {
  width: 100%;
}

div[class*="shopify"] iframe {
  min-height: 150px !important;
}

/** Shapiro Font */
@font-face {
  font-family: "Shapiro";
  src: url(/fonts/shapiro/Shapiro-Regular.ttf) format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Shapiro";
  src: url(/fonts/shapiro/Shapiro-SemiBold.ttf) format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Shapiro";
  src: url(/fonts/shapiro/Shapiro-Bold.ttf) format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Shapiro-Medium";
  src: url(/fonts/shapiro/Shapiro-Medium.ttf) format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Shapiro-Wide";
  src: url(/fonts/shapiro/Shapiro-Regular-Wide.ttf) format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Shapiro-Wide";
  src: url(/fonts/shapiro/Shapiro-SemiBold-Wide.ttf) format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Shapiro-Wide";
  src: url(/fonts/shapiro/Shapiro-Bold-Wide.ttf) format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Shapiro-ExtraBold";
  src: url(/fonts/shapiro/Shapiro-ExtraBold.ttf) format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/*
  START - DatePicker component Custom Styles (components/DatePicker.tsx)
*/

div.react-datepicker {
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  background-color: var(--theme-200);
  border-color: var(--theme-200);

  /* make flexible attempt */
  max-width: 400px;
}

/* make flexible attempt */
div.react-datepicker .react-datepicker__month-container {
  display: flex;
  flex-direction: column;
}

/* Days of month container */
.react-datepicker .react-datepicker__month {
  margin: 0px;
}

/* Month text e.g. June 2022 */
.react-datepicker .react-datepicker__current-month {
  padding-bottom: 10px;
  margin-bottom: 0px;
  border-bottom-width: 1px;
  border-bottom-color: var(--theme-100);
  border-bottom-style: solid;
}

/* "Select time" text */
.react-datepicker .react-datepicker__header--time {
  padding-bottom: 10px;
}

.react-datepicker
  .react-datepicker__header
  .react-datepicker__header--has-time-select {
  border-color: var(--theme-100);
}

.react-datepicker .react-datepicker__header {
  padding-top: 10px;
  border-width: 1px;
  background-color: var(--theme-l1);
  border-bottom-color: var(--theme-100);
}

.react-datepicker .react-datepicker__header .react-datepicker__header--time {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--theme-100);
}

.react-datepicker .react-datepicker__day-names {
  background-color: var(--theme-alt-bg);
}

.react-datepicker .react-datepicker__current-month,
.react-datepicker .react-datepicker-time__header {
  font-family: "Shapiro";
  font-style: normal;
  font-weight: 56;
  font-size: 14px;
  line-height: 20px;
  color: var(--theme-900);
}

/* go to previous month button */
.react-datepicker .react-datepicker__navigation--previous {
  top: 5px;
}

/* go to next month button */
.react-datepicker .react-datepicker__navigation--next {
  top: 5px;
  right: 0px;
}

/* go to next month button when can be be selected */
.react-datepicker
  .react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button) {
  right: 121px;
}

/* go to previous / next month buttons (makes them skinnier) */
.react-datepicker .react-datepicker__navigation-icon::before {
  border-color: var(--theme-400);
  border-width: 2px 2px 0px 0px;
}

.react-datepicker-popper[data-placement^="bottom"]
  .react-datepicker__triangle::after {
  /* Not able to get triangle to take effect without !important :( */
  border-bottom-color: var(--theme-l1) !important;
}

.react-datepicker-popper[data-placement^="bottom"]
  .react-datepicker__triangle::before {
  /* Not able to get triangle to take effect without !important :( */
  border-bottom-color: var(--theme-200) !important;
}

.react-datepicker .react-datepicker__time-container {
  border-color: var(--theme-200);

  /* make flexible */
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.react-datepicker .react-datepicker__header--time {
  border-color: var(--theme-100);
}

.react-datepicker .react-datepicker__day-name {
  font-family: "Shapiro";
  font-style: normal;
  font-weight: 52;
  font-size: 13px;
  line-height: 20px;
  color: var(--theme-600);
}

/* Week (Day of month container)  */
.react-datepicker .react-datepicker__day-names,
.react-datepicker .react-datepicker__week {
  height: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

/* Day of month - no special state */
.react-datepicker .react-datepicker__day-name,
.react-datepicker .react-datepicker__day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 800px;
  margin: 0px;
  font-family: "Shapiro";
  font-style: normal;
  font-weight: 52;
  font-size: 13px;
  line-height: 20px;
  color: var(--theme-600);
}

/* Removes blue outline when day of month is focused */
.react-datepicker .react-datepicker__day:focus-visible {
  outline-width: 0px;
}

/* Day of month - today */
.react-datepicker .react-datepicker__day--today {
  background-color: var(--theme-alt-bg);
  color: var(--theme-600);
}

/* Day of month - outside of month */
.react-datepicker .react-datepicker__day.react-datepicker__day--outside-month {
  color: var(--theme-400);
  text-decoration-line: line-through;
}

/* Day of month - hover */
.react-datepicker .react-datepicker__day:hover {
  border-radius: 800px;
  background-color: var(--theme-100);
  color: var(--theme-800);
}

/* Day of month - selected */
.react-datepicker .react-datepicker__day.react-datepicker__day--selected,
.react-datepicker
  .react-datepicker__day.react-datepicker__day--keyboard-selected {
  background-color: var(--bonfire-primary);
  color: var(--white);
}

.react-datepicker .react-datepicker__time-container {
  width: 90px;
  border-left: 1px solid var(--theme-100);
}

.react-datepicker .react-datepicker__time-container .react-datepicker__time,
.react-datepicker
  .react-datepicker__time-container
  .react-datepicker__time
  .react-datepicker__time-box {
  width: 100%;
}

/* Time List Item */
.react-datepicker
  .react-datepicker__time-container
  .react-datepicker__time
  .react-datepicker__time-box
  ul.react-datepicker__time-list
  li.react-datepicker__time-list-item {
  font-family: "Shapiro";
  font-style: normal;
  font-weight: 52;
  font-size: 13px;
  line-height: 20px;
  color: var(--theme-600);
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--theme-l1);
}

/* Time List Item Selected */
.react-datepicker
  .react-datepicker__time-container
  .react-datepicker__time
  .react-datepicker__time-box
  ul.react-datepicker__time-list
  li.react-datepicker__time-list-item.react-datepicker__time-list-item--selected {
  background-color: var(--bonfire-primary);
  color: var(--white);
}

/* Time List Item Hover */
.react-datepicker
  .react-datepicker__time-container
  .react-datepicker__time
  .react-datepicker__time-box
  ul.react-datepicker__time-list
  li.react-datepicker__time-list-item:hover {
  background-color: var(--theme-100);
  color: var(--theme-800);
}

/*
  END - DatePicker component Custom Styles (components/DatePicker.tsx)
*/

/* Media values don't work in SASS files so breakpoint is hardecoded here */
@media (max-width: 768px) {
  html,
  body {
    --creator-page-header-height: 56px;
  }
}

.ql-bubble .ql-editor > * {
  padding: 0 !important;
}

.ql-editor {
  padding: 0 !important;
  text-align: inherit !important;
  font-size: inherit !important;
  overflow-y: unset !important;
}

.ql-tooltip {
  width: fit-content !important;
}

.ql-tooltip-editor > input {
  background-color: var(--theme-l1) !important;
  left: 0 !important;
  font-size: 16px !important;
  border-radius: var(--card-border-radius) !important;
  border: 1px solid var(--theme-200) !important;
  padding: 8px 16px !important;
}

/* Hide the tooltip arrow */
.ql-tooltip-arrow {
  display: none !important;
}

.ql-active {
  color: var(--bonfire-primary) !important;
}

.ql-container {
  font-size: inherit !important;
}

/* This is the placeholder */
.quill > .ql-container > .ql-editor.ql-blank::before {
  left: 0 !important;
  color: var(--theme-400) !important;
  font-style: normal;
}
