/**
 * Convert a font size to a dynamic font size.
 * Fonts that participate in Dynamic Type should use
 * dynamic font sizes.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param unit (optional) - The unit to convert to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * a maximum font size.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * a minimum font size.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * Convert a font size to a dynamic font size but impose
 * maximum and minimum font sizes.
 * @param size - The initial font size including the unit (i.e. px or pt)
 * @param minScale - The minimum scale of the font (i.e. 0.8 for a minimum 80% scale).
 * @param maxScale - The maximum scale of the font (i.e. 2.5 for a maximum 250% scale).
 * @param unit (optional) - The unit to convert the initial font size to. Use this if you want to
 * convert to a unit other than $baselineUnit.
 */
/**
 * A heuristic that applies CSS to tablet
 * viewports.
 *
 * Usage:
 * @include tablet-viewport() {
 *   :host {
 *     background-color: green;
 *   }
 * }
 */
/**
   * A heuristic that applies CSS to mobile
   * viewports (i.e. phones, not tablets).
   *
   * Usage:
   * @include mobile-viewport() {
   *   :host {
   *     background-color: blue;
   *   }
   * }
   */
:host {
  --container-width: 420px;
  --container-gap: 8px;
  --card-box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.08);
  display: block;
  z-index: 10011;
  position: relative;
}

:host cpsl-overlay {
  z-index: 10011;
}

@media (max-width: 480px) {
  :host(.include-mobile-styling) .modal-wrapper {
    scale: none;
    top: 100%;
    left: 0;
    height: unset;
    opacity: 1;
  }
  :host(.include-mobile-styling) .modal-container {
    width: 100%;
    max-width: none;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
  }
  :host(.include-mobile-styling) .modal-body-card {
    --card-border-radius-bl: 0px;
    --card-border-radius-br: 0px;
  }
}

:host(.force-mobile-media) .modal-wrapper {
  scale: none;
  top: 100%;
  left: 0;
  height: unset;
  opacity: 1;
}
:host(.force-mobile-media) .modal-container {
  width: 100%;
  max-width: none;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
:host(.force-mobile-media) .modal-body-card {
  --card-border-radius-bl: 0px;
  --card-border-radius-br: 0px;
}

:host(.no-overlay) {
  z-index: 0;
}
:host(.no-overlay) .modal-body-card {
  --card-border-width: 1px;
}
:host(.no-overlay) .modal-container {
  max-height: unset;
}

.modal-wrapper {
  z-index: 10011;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  height: 100%;
  width: 100%;
  justify-content: center;
  align-items: center;
  scale: 0.8;
  opacity: 0;
  transform: none;
}

.modal-container {
  position: relative;
  overflow: hidden;
  width: var(--container-width);
  display: flex;
  flex-direction: column;
  gap: var(--container-gap);
  max-width: 95vw;
  max-height: 95vh;
  max-height: 95dvh;
  overflow: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  /* Hide scrollbar for Chrome, Safari and Opera */
}
.modal-container ::-webkit-scrollbar {
  display: none;
}
.modal-container.no-footer {
  gap: 0px;
}

.modal-body-card {
  --card-padding-top: 16px;
  --card-padding-bottom: 24px;
  --card-padding-start: 24px;
  --card-padding-end: 24px;
  --card-border-width: 0px;
}

.body::part(card-container) {
  box-shadow: var(--card-box-shadow);
  width: 100%;
}

.no-opacity {
  opacity: 0;
}

.mobile-footer {
  margin-top: 16px;
}

.footer-hidden {
  height: 0px;
  visibility: hidden;
  --card-padding-top: 0px;
  --card-padding-bottom: 0px;
  --card-padding-start: 0px;
  --card-padding-end: 0px;
  --card-border-width: 0px;
}