:host {
  /**
   * @prop --background: Background of the loading
   *
   * @prop --border-color: Border color of the loading
   * @prop --border-radius: Border radius of the loading
   * @prop --border-width: Border width of the loading
   * @prop --border-style: Border style of the loading
   *
   * @prop --white-space: White space of the loading message
   *
   * @prop --box-shadow: Box shadow of the loading
   *
   * @prop --min-width: Minimum width of the loading
   * @prop --width: Width of the loading
   * @prop --max-width: Maximum width of the loading
   *
   * @prop --min-height: Minimum height of the loading
   * @prop --height: Height of the loading
   * @prop --max-height: Maximum height of the loading
   */
  --border-width: 0;
  --border-style: none;
  --border-color: initial;
  --box-shadow: 0 15px 25px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.1), 0 6px 20px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.12), 0 13.2px 40px 0 rgba(var(--box-shadow-color, 0, 0, 0), 0.08);
  --min-width: auto;
  --width: auto;
  --min-height: auto;
  --height: auto;
  --max-height: auto;
  --white-space: pre-wrap;
  --background: var(--bkkr-overlay-background, var(--bkkr-background-color, #fff));
  --border-radius: 32px;
  left: 0;
  top: 0;
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  outline: none;
  font-family: var(--bkkr-font-family);
  contain: strict;
  z-index: 1001;
  pointer-events: none;
}
:host-context([dir=rtl]) {
  left: unset;
  right: unset;
  right: 0;
}

:host-context(bkkr-content) {
  --safe-area-top: 0px;
  --safe-area-bottom: 0px;
}

:host(.overlay-hidden) {
  display: none;
}

.loading-wrapper {
  border-radius: var(--border-radius);
  left: 50%;
  margin-left: auto;
  margin-right: auto;
  margin-top: auto;
  margin-bottom: auto;
  display: block;
  position: absolute;
  width: var(--width);
  min-width: var(--min-width);
  max-width: var(--max-width);
  height: var(--height);
  min-height: var(--min-height);
  max-height: var(--max-height);
  border-width: var(--border-width);
  border-style: var(--border-style);
  border-color: var(--border-color);
  background: var(--background);
  box-shadow: var(--box-shadow);
}
[dir=rtl] .loading-wrapper, :host-context([dir=rtl]) .loading-wrapper {
  left: unset;
  right: unset;
  right: 50%;
}

@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .loading-wrapper {
    margin-left: unset;
    margin-right: unset;
    -webkit-margin-start: auto;
    margin-inline-start: auto;
    -webkit-margin-end: auto;
    margin-inline-end: auto;
  }
}

.loading-container {
  display: flex;
  align-items: center;
  height: inherit;
  min-height: inherit;
  max-height: inherit;
  pointer-events: auto;
  contain: content;
}

.loading-wrapper.loading-top {
  top: 0;
  transform: translate3d(-50%, -200%, 0);
}

.loading-wrapper.loading-middle {
  opacity: 0.01;
}

.loading-wrapper.loading-bottom {
  bottom: 0;
  transform: translate3d(-50%, 200%, 0);
}

.loading-content {
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 15px;
  padding-bottom: 15px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
@supports (margin-inline-start: 0) or (-webkit-margin-start: 0) {
  .loading-content {
    padding-left: unset;
    padding-right: unset;
    -webkit-padding-start: 15px;
    padding-inline-start: 15px;
    -webkit-padding-end: 15px;
    padding-inline-end: 15px;
  }
}