/* Migration safety layer. Original PlatformaLP page rules stay in the captured HTML. */
html,
body.plp-export {
  margin: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
}

body.plp-export {
  overflow-x: hidden !important;
}

#area {
  padding-top: 0 !important;
}

.app-top,
.sectionslist,
.colorpicker,
.node-clone,
.preview-bar,
.node > .corner,
.node > .controls,
.section > .controls,
#area .incon > .controls,
.redonly,
.visualize,
.resizer,
.ui-resizable-handle,
[data-node-control],
[class*="node-control"] {
  display: none !important;
  visibility: hidden !important;
}

body:not(.plp-modal-open) .plp-modal-backdrop {
  display: none;
}

.plp-modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
  inset: 0;
  position: fixed;
  z-index: 1040;
}

body.plp-modal-open {
  overflow: hidden !important;
}

.modal.plp-open {
  display: block !important;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  position: fixed;
  z-index: 1050;
}

.modal.plp-open .modal-dialog {
  max-width: calc(100vw - 24px);
}

.form .field .input > input.form-control,
.form .field .input > textarea.form-control {
  box-sizing: border-box;
  display: block;
  width: 100%;
}

.plp-migration-message {
  background: #222;
  border-radius: 4px;
  bottom: 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  color: #fff;
  font: 15px/1.4 Arial, sans-serif;
  left: 50%;
  max-width: min(460px, calc(100vw - 32px));
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  text-align: center;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
  z-index: 2147483647;
}

.plp-migration-message.plp-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.plp-export-disabled {
  cursor: not-allowed !important;
}

.plp-disabled-form input:disabled,
.plp-disabled-form textarea:disabled,
.plp-disabled-form select:disabled {
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

.plp-disabled-embed {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
  color: inherit;
  cursor: not-allowed;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  line-height: 1.4;
  max-width: 100%;
  min-height: 180px;
  overflow: hidden;
  padding: 24px;
  text-align: center;
  width: 100%;
}

.plp-disabled-embed:focus-visible {
  outline: 3px solid #1b6ff2;
  outline-offset: 3px;
}

.plp-disabled-embed[hidden] {
  display: none !important;
}

.plp-disabled-embed-copy,
.plp-disabled-chat-copy {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.plp-disabled-embed-label {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.plp-disabled-embed-notice {
  display: block;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  opacity: 0.72;
}

.plp-model-risk-embed--booking {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.plp-model-risk-embed--launcher {
  min-height: 64px;
  padding: 11px 18px;
}

.plp-model-risk-embed--tinkoff {
  background: #ffdd2d;
  border: 0;
  border-radius: 4px;
  color: #1f1f1f;
}

.plp-disabled-payment-action {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.plp-model-risk-embed--overlay {
  background-clip: padding-box;
  isolation: isolate;
  position: fixed;
  z-index: 2147483000;
}

.plp-model-risk-embed--sendpulse {
  align-items: stretch;
  bottom: 16px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
  color: #444;
  font-family: Arial, "Helvetica Neue", sans-serif;
  gap: 9px;
  justify-content: flex-start;
  min-height: 0;
  padding: 15px;
  right: 16px;
  text-align: left;
  width: 450px;
}

.plp-disabled-form-description {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.plp-disabled-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plp-disabled-form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.plp-disabled-form-field input {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  color: #444;
  cursor: not-allowed;
  font: 15px/1.2 Arial, sans-serif;
  height: 35px;
  opacity: 1;
  padding: 7px 8.75px;
  width: 100%;
  -webkit-text-fill-color: #444;
}

.plp-disabled-form-action {
  align-self: flex-start;
  background: #0089bf;
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 16px;
}

.plp-model-risk-embed--chat {
  align-items: center;
  background: #1f8ceb;
  border: 0;
  border-radius: 18px;
  bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
  color: #fff;
  flex-direction: row;
  gap: 10px;
  justify-content: flex-start;
  min-height: 68px;
  padding: 10px 14px;
  right: 18px;
  text-align: left;
  width: 300px;
}

.plp-disabled-chat-icon {
  background: #fff;
  border-radius: 50%;
  display: block;
  flex: 0 0 38px;
  height: 38px;
  position: relative;
  width: 38px;
}

.plp-disabled-chat-icon::before {
  border: 2px solid #1f8ceb;
  border-radius: 50%;
  content: "";
  inset: 10px 8px 11px;
  position: absolute;
}

.plp-disabled-chat-copy {
  align-items: flex-start;
  gap: 2px;
}

.plp-model-risk-embed--chat .plp-disabled-embed-notice {
  color: #fff;
  font-size: 11px;
  opacity: 0.84;
}

@media (max-width: 767px) {
  .plp-model-risk-embed--sendpulse {
    bottom: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    right: 12px;
    width: calc(100vw - 24px);
  }

  .plp-model-risk-embed--chat {
    bottom: 12px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }
}

.plp-disabled-embed-source {
  display: none !important;
}

.plp-slider-runtime {
  overflow: hidden;
}

[plp-slider-previous],
[plp-slider-next],
[plp-slider-page],
.slider1-previous,
.slider1-next,
.slider1-page,
.s-slider1-previous,
.s-slider1-next,
.s-slider1-page {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.plp-video-lazy {
  position: relative;
}

.plp-video-trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 0;
  position: absolute;
  touch-action: manipulation;
  width: 100%;
  z-index: 3;
}

.plp-video-trigger-icon {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  height: 64px;
  justify-content: center;
  transition: background-color 160ms ease-out, transform 160ms ease-out;
  width: 64px;
}

.plp-video-trigger-icon::before {
  border-bottom: 11px solid transparent;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  content: "";
  display: block;
  margin-inline-start: 5px;
}

.plp-video-trigger:hover .plp-video-trigger-icon,
.plp-video-trigger:focus-visible .plp-video-trigger-icon {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.06);
}

.plp-video-host,
.plp-video-media {
  height: 100%;
  width: 100%;
}

.plp-video-media {
  border: 0;
  display: block;
}

.plp-video-playing > img {
  visibility: hidden;
}

.plp-map-runtime {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.plp-map-frame {
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.plp-map-fallback {
  align-items: center;
  background: #eef2f5;
  color: #1d4f78;
  display: flex;
  font: 600 15px/1.3 Arial, sans-serif;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: absolute;
  text-align: center;
}

.plp-map-runtime.plp-map-loaded .plp-map-fallback {
  display: none;
}

.plp-bg-video-wrapper {
  overflow: hidden;
  position: relative;
}

.plp-bg-video-layer {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.plp-bg-video-frame {
  border: 0;
  left: 50%;
  max-width: none !important;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.plp-bg-video-wrapper > .wrapper2 {
  position: relative;
  z-index: 1;
}

.plp-particles-host {
  isolation: isolate;
  position: relative;
}

.plp-particles-canvas {
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

[data-plp-animation]:not(.plp-animation-visible) {
  opacity: 0;
}

.plp-animation-visible {
  animation-delay: var(--plp-animation-delay, 0s);
  animation-duration: 800ms;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
  backface-visibility: hidden;
}

[data-plp-animation="bounceIn"].plp-animation-visible { animation-name: plp-bounce-in; }
[data-plp-animation="tada"].plp-animation-visible { animation-name: plp-tada; }
[data-plp-animation="pulse"].plp-animation-visible { animation-name: plp-pulse; }
[data-plp-animation="flip"].plp-animation-visible { animation-name: plp-flip; }
[data-plp-animation="shake"].plp-animation-visible { animation-name: plp-shake; }
[data-plp-animation="fadeInDownBig"].plp-animation-visible { animation-name: plp-fade-in-down-big; }
[data-plp-animation="flipInX"].plp-animation-visible { animation-name: plp-flip-in-x; }
[data-plp-animation="flipInY"].plp-animation-visible { animation-name: plp-flip-in-y; }

@keyframes plp-bounce-in {
  0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  50% { opacity: 1; transform: scale3d(1.06, 1.06, 1.06); }
  70% { transform: scale3d(0.94, 0.94, 0.94); }
  100% { opacity: 1; transform: none; }
}

@keyframes plp-tada {
  0% { opacity: 1; transform: scale3d(1, 1, 1); }
  10%, 20% { transform: scale3d(0.9, 0.9, 0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate(-3deg); }
  100% { opacity: 1; transform: none; }
}

@keyframes plp-pulse {
  0% { opacity: 1; transform: scale3d(1, 1, 1); }
  50% { transform: scale3d(1.08, 1.08, 1.08); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes plp-flip {
  0% { opacity: 0; transform: perspective(500px) rotateY(-90deg); }
  60% { opacity: 1; transform: perspective(500px) rotateY(12deg); }
  100% { opacity: 1; transform: perspective(500px) rotateY(0); }
}

@keyframes plp-shake {
  0% { opacity: 1; transform: translate3d(0, 0, 0); }
  20%, 60% { transform: translate3d(-9px, 0, 0); }
  40%, 80% { transform: translate3d(9px, 0, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes plp-fade-in-down-big {
  0% { opacity: 0; transform: translate3d(0, -120px, 0); }
  100% { opacity: 1; transform: none; }
}

@keyframes plp-flip-in-x {
  0% { opacity: 0; transform: perspective(500px) rotateX(90deg); }
  100% { opacity: 1; transform: perspective(500px) rotateX(0); }
}

@keyframes plp-flip-in-y {
  0% { opacity: 0; transform: perspective(500px) rotateY(90deg); }
  100% { opacity: 1; transform: perspective(500px) rotateY(0); }
}

.plp-visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .plp-video-trigger-icon {
    transform: none !important;
  }

  [data-plp-animation] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .plp-bg-video-layer {
    display: none !important;
  }
}
