/**
 * Copyright (c) Microblink Ltd. All rights reserved.
 */
/**
 * Copyright (c) Microblink Ltd. All rights reserved.
 *
 * SASS variables, not customizable via CSS variables
 */
/**
 * Camera experiences
 */
:host {
  box-sizing: border-box;
  position: relative;
  display: block;
  width: var(--mb-component-width);
  background: var(--mb-component-background);
  color: var(--mb-component-font-color);
  font-size: var(--mb-font-size);
  font-style: var(--mb-font-style);
  font-weight: var(--mb-font-weight);
  letter-spacing: var(--mb-letter-spacing);
  line-height: var(--mb-line-height);
  text-transform: var(--mb-component-text-transform);
  border-color: var(--mb-component-border-color);
  border-radius: var(--mb-component-border-radius);
  border-style: var(--mb-component-border-style);
  border-width: var(--mb-component-border-width);
  box-shadow: var(--mb-component-box-shadow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media only screen and (min-width: 1440px) {
  :host {
    font-size: var(--mb-font-size-desktop);
  }
}
.flex-break {
  flex-basis: 100%;
  width: 0;
}

/**
 * Screens
 */
:host #screen-loading.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

:host #screen-error.visible {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}
:host #screen-error.visible .icon-alert {
  display: flex;
  margin-right: 10px;
}

:host :host #screen-error:not(.visible),
:host :host #screen-action:not(.visible),
:host :host #screen-loading:not(.visible),
:host :host #screen-processing:not(.visible) {
  border: none;
}

/**
 * Action screen
 */
:host #screen-action.visible {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
:host #screen-action.visible .action-label {
  display: var(--mb-component-action-label);
  margin: 0 16px 0 0;
  cursor: default;
  font-size: var(--mb-component-action-label-font-size);
}
:host #screen-action.visible .action-label:dir(rtl) {
  background-color: black;
}
:host #screen-action.visible .action-buttons {
  display: flex;
  width: var(--mb-component-action-buttons-width);
  justify-content: var(--mb-component-action-buttons-justify-content);
}
:host #screen-action.visible .action-buttons mb-button:last-child {
  margin: var(--mb-component-action-buttons-last-margin);
}
:host #screen-action.visible .combined-image-upload {
  display: none;
  width: 100%;
  padding: 0;
}
:host #screen-action.visible .combined-image-upload.visible {
  display: block;
  padding: 8px 0;
}
:host #screen-action.visible .combined-image-upload mb-image-box,
:host #screen-action.visible .combined-image-upload mb-button-classic {
  display: block;
  box-sizing: border-box;
  float: left;
}
:host #screen-action.visible .combined-image-upload mb-image-box {
  width: calc(50% - 4px);
}
:host #screen-action.visible .combined-image-upload mb-image-box:nth-of-type(1) {
  margin-right: 4px;
}
:host #screen-action.visible .combined-image-upload mb-image-box:nth-of-type(2) {
  margin-left: 4px;
}
:host #screen-action.visible .combined-image-upload mb-button-classic {
  width: 100%;
  margin-top: 8px;
}

:host([dir=rtl]) #screen-action.visible .action-label {
  margin: 0 0 0 16px;
}
:host([dir=rtl]) #screen-action.visible .action-buttons mb-button:last-child {
  margin: 0 8px 0 0;
}

/**
 * Processing screen
 */
:host #screen-processing p {
  display: none;
  margin: 8px 0;
}

:host #screen-processing p.visible {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

:host #screen-processing p.in-progress {
  color: var(--mb-component-font-color-secondary);
}

:host #screen-processing p.done {
  color: var(--mb-component-font-color);
}

:host #screen-processing[data-type=single] p span {
  margin-left: 8px;
}

:host #screen-processing[data-type=combined] p span {
  margin-left: 8px;
}

/**
 * Overlays
 */
:host #overlay-drag-and-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
:host #overlay-drag-and-drop .drag-and-drop-icon {
  display: block;
  width: 24px;
  height: 24px;
}
:host #overlay-drag-and-drop .drag-and-drop-message {
  max-width: 360px;
  margin: 12px 0 0 0;
  text-align: center;
  color: var(--mb-component-font-color);
  font-size: var(--mb-font-size);
  font-style: var(--mb-font-style);
  font-weight: var(--mb-font-weight);
  letter-spacing: var(--mb-letter-spacing);
  line-height: var(--mb-line-height);
  text-transform: var(--mb-component-text-transform);
}
:host #overlay-drag-and-drop.visible {
  background-color: var(--mb-overlay-draganddrop-background);
}
:host #overlay-drag-and-drop.visible.error {
  background-color: var(--mb-overlay-draganddrop-background-error);
}
:host #overlay-drag-and-drop.inline {
  position: absolute;
  flex-direction: row;
  border-style: var(--mb-overlay-draganddrop-border-style);
  border-radius: var(--mb-component-border-radius);
  border-width: var(--mb-component-border-width);
}
:host #overlay-drag-and-drop.inline .drag-and-drop-message {
  margin: 0 0 0 8px;
}
:host #overlay-drag-and-drop.inline.visible {
  border-color: var(--mb-overlay-draganddrop-border-color);
}
:host #overlay-drag-and-drop.inline.visible.error {
  border-color: var(--mb-overlay-draganddrop-border-color-error);
}
:host #overlay-drag-and-drop.inline.visible.error .drag-and-drop-icon {
  margin-left: 16px;
}
:host #overlay-drag-and-drop.inline.visible.error .drag-and-drop-message {
  text-align: left;
}

:host #drag-and-drop-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: transparent;
}

:host #overlay-gallery-experience.visible {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: var(--mb-overlay-gallery-experience-background);
  color: var(--mb-overlay-gallery-experience-font-color);
}

:host #overlay-gallery-experience.visible p {
  margin: 8px 0 0 0;
  font-size: var(--mb-overlay-gallery-experience-font-size);
  font-weight: var(--mb-overlay-gallery-experience-font-weight);
  line-height: var(--mb-overlay-gallery-experience-line-height);
}

:host #overlay-camera-experience {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  background-color: #000;
  overflow-y: hidden;
}
:host #overlay-camera-experience .holder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
:host #overlay-camera-experience video {
  display: block;
  width: 100%;
  height: auto;
}
:host #overlay-camera-experience mb-camera-experience {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
:host #overlay-camera-experience mb-camera-experience.is-muted {
  background-color: rgba(0, 0, 0, 0.6);
}
:host #overlay-camera-experience mb-camera-experience.is-error {
  background-color: black;
}

:host #overlay-camera-experience.visible {
  display: flex;
  z-index: 1000;
}

:host input[type=file] {
  width: 0;
  height: 0;
  opacity: 0;
  clip: rect(1px, 1px, 1px, 1px);
}

:host button.modal-action-button {
  width: 126px;
  height: 32px;
  border-radius: 0;
  border: 0;
  background: #48B2E8;
  color: #ffffff;
  cursor: pointer;
}