/**
* 2007-2021 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2021 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/
.display-flex-kln {
  display: flex;
  justify-content: center;
}

.display-flex-kln div {
  margin-left: 1em;
}

.hidden-kln {
  display: none;
}

#show_add_pass_sanitaire {
  width: 100%;
  margin-bottom: 2em;
}

.bloc-form-customer_document {
  padding: 1.2em;
  border-radius: 10px;
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.2);
  margin: 1em;
  margin-top: 2em;
}

.progress-bar-kln {
  border-radius: 7px;
  width: 100%;
  height: 22px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  background-image: linear-gradient(
    45deg,
    rgba(213, 188, 188, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  ) !important;
  background: #e5e5e5;
  background-image: none;
  margin-top: 1em;
  border: none;
  text-align: center;
  max-width: 100%;
}

.progress-bar-line {
  border-radius: 7px;
  height: 22px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  background: #7dc323;
  color: #fff;
  background-image: none;
  margin-top: 1em;
  border: none;
  width: 0px;
  text-align: center;
  max-width: 100%;
  font-weight: bold;
}

.btn-action {
  margin-top: 1em;
}

.form-pass {
  display: none;
}

.text-center-kln {
  text-align: center !important;
}

#kln_save_configuration {
  margin: 0;
  margin-top: 5px;
}

.insert-img-upload {
  max-width: 200px !important;
  margin-top: 1em;
}

.text-align-left-kln {
  text-align: left;
}

#kln_file_verification .bloc-form-customer_document {
  padding: 0;
  border-radius: 0px;
  box-shadow: 0px 0px 0px 0 rgba(0, 0, 0, 0.2);
  margin: 0em;
  margin-top: 0em;
}

body .form-values-kln {
  border: 1px solid #eee;
  padding: 1em !important;
  border-radius: 5px !important;
  margin-bottom: 1em !important;
}

.modal-header.kln-modal,
.modal-footerr.kln-modal {
  border-bottom: none;
}

.listing-file-kln {
  display: grid;
  justify-content: space-around;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1em;
}

.document-item-kln {
  padding: 1em;
  border: 1px solid #333;
  border-radius: 5px;
  text-align: center;
}

.kln_save_configuration {
  margin: 0;
}
.lds-roller {
	width: 30px;
	height: 30px;
	text-align: center;
	margin: auto;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #333;
  margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* Document receipt: common identity, keyboard-accessible drop area and per-file progress. */
.kln-common-identity { margin-bottom: 24px; }
.all-form-kln .form-values-kln { margin-bottom: 24px; padding: 16px; border: 1px solid #ddd; border-radius: 4px; }
.kln-other-person-label, .kln-reuse-label { display: block; margin: 12px 0; }
.kln-drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 16px; border: 2px dashed #999; border-radius: 4px; cursor: pointer; text-align: center; }
.kln-drop-zone:focus, .kln-drop-zone.kln-drag-over { outline: 2px solid #555; outline-offset: 2px; border-color: #333; background: #f7f7f7; }
.kln-drop-zone[aria-disabled="true"] { cursor: wait; opacity: .7; }
.kln-file-input { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; overflow: hidden; }
.kln-file-name { max-width: 100%; overflow-wrap: anywhere; }
.kln-progress { width: 100%; height: 8px; margin: 16px 0 8px; background: #e5e5e5; border-radius: 4px; overflow: hidden; }
.kln-progress-fill { height: 100%; background: #555; transition: width .15s linear; }
.kln-progress.kln-progress-complete .kln-progress-fill { background: #2e7d32; }
.kln-upload-status { margin: 8px 0; }
.kln-saved-choice label { display: block; }

.kln-file-preview { margin: 16px 0; padding: 12px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; }
.kln-file-preview img { display: block; max-width: 100%; max-height: 240px; margin: 0 auto 12px; object-fit: contain; }
.kln-file-preview iframe { display: block; width: 100%; height: 280px; margin-bottom: 12px; border: 0; background: white; }
.kln-file-preview a { display: inline-block; text-decoration: underline; }
.kln-remove-file { margin: 8px 8px 8px 0; }
.kln-reuse-label { padding-top: 16px; border-top: 1px solid #ddd; }

/* Compact thumbnail in the transfer zone; the full document stays in one modal. */
.kln-drop-copy { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.kln-drop-zone.kln-has-file { flex-direction: row; gap: 16px; padding: 16px; text-align: left; }
.kln-has-file .kln-drop-copy { align-items: flex-start; flex: 1; }
.kln-drop-zone .kln-file-preview { flex: 0 0 auto; margin: 0; padding: 0; border: 0; background: transparent; }
.kln-open-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 88px; min-height: 84px; padding: 6px; border: 1px solid #ddd; border-radius: 4px; background: #fafafa; color: #333; cursor: pointer; }
.kln-open-preview:focus-visible { outline: 2px solid #333; outline-offset: 2px; }
.kln-drop-zone .kln-file-preview img { display: block; width: 72px; height: 58px; margin: 0; object-fit: contain; }
.kln-preview-caption { font-size: 12px; text-decoration: underline; }
.kln-pdf-thumbnail, .kln-preview-placeholder { display: grid; place-items: center; width: 72px; height: 58px; font-weight: bold; }
#kln-preview-dialog { width: 90vw; max-width: 900px; max-height: 90vh; padding: 20px; border: 0; border-radius: 8px; background: white; color: #333; box-shadow: 0 12px 50px rgba(0,0,0,.35); }
#kln-preview-dialog:not([open]) { display: none; }
#kln-preview-dialog[open] { position: fixed; inset: 0; margin: auto; z-index: 10001; overflow: auto; }
#kln-preview-dialog::backdrop { background: rgba(0,0,0,.55); }
.kln-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.kln-preview-heading h3 { margin: 0; }
.kln-preview-dialog-content img { display: block; max-width: 100%; max-height: 68vh; margin: auto; object-fit: contain; }
.kln-preview-dialog-content iframe { width: 100%; height: 68vh; border: 0; }
.kln-preview-external { display: inline-block; margin-top: 16px; text-decoration: underline; }
#kln-preview-backdrop { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.55); }
