/* productinstagramreel 1.0.12 */
.pir-reel-entry {
  margin-top: 17px;
  display: flex;
  justify-content: center;
}

.pir-reel-trigger {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #e4e7eb;
  background: #fff;
  color: #202124;
  min-height: 53px;
  padding: 11px 17px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: inherit;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.pir-reel-trigger:hover {
  border-color: #cfd4da;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.pir-reel-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.pir-instagram-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
}

.pir-instagram-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 1.8;
}

.pir-play-icon {
  font-size: 14px;
  opacity: .72;
}

.pir-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px 68px 18px 68px;
}

.pir-modal.is-open {
  display: flex;
}

.pir-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.70);
  backdrop-filter: blur(1px);
}

.pir-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 94vw);
  height: min(760px, 90vh);
  background: #fff;
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
}

.pir-modal-close {
  position: absolute;
  top: 0;
  right: -50px;
  z-index: 6;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(20,20,20,.88);
  color: #fff;
  font-size: 29px;
  line-height: 36px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
}

.pir-modal-close:focus {
  outline: none;
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
}

.pir-modal-close:focus:not(:focus-visible) {
  outline: none;
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 3px 12px rgba(0,0,0,.28);
}

.pir-modal-close:focus-visible {
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 3px;
}


.pir-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 6;
  transform: translateY(-50%);
  width: 44px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 22px;
  background: rgba(20,20,20,.82);
  color: #fff;
  font-size: 34px;
  line-height: 44px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.pir-modal-prev { left: -58px; }
.pir-modal-next { right: -58px; }

.pir-modal-counter {
  position: absolute;
  z-index: 6;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  border-radius: 14px;
  background: rgba(20,20,20,.82);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.pir-modal-frame-wrap,
.pir-modal-frame-wrap iframe {
  width: 100%;
  height: 100%;
}

.pir-modal-frame-wrap {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.pir-modal-frame-wrap iframe {
  display: block;
  border: 0;
  background: #fff;
}

.pir-modal-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

.pir-modal-loader span {
  width: 34px;
  height: 34px;
  border: 3px solid #e5e5e5;
  border-top-color: #222;
  border-radius: 50%;
  animation: pir-spin .75s linear infinite;
}

.pir-modal.is-loaded .pir-modal-loader {
  display: none;
}

body.pir-modal-open {
  overflow: hidden;
}

@keyframes pir-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .pir-reel-entry {
    margin-top: 12px;
    margin-bottom: 8px;
  }

  .pir-reel-trigger {
    width: 100%;
    max-width: 432px;
    justify-content: center;
    min-height: 48px;
    padding: 9px 13px;
    gap: 9px;
    border-radius: 11px;
    font-size: 1em;
    line-height: 1.12;
  }

  .pir-instagram-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
  }

  .pir-play-icon {
    font-size: 12px;
  }

  .pir-reel-label {
    max-width: calc(100% - 66px);
    text-align: center;
  }

  .pir-modal {
    padding:
      max(46px, env(safe-area-inset-top))
      8px
      max(12px, env(safe-area-inset-bottom))
      8px;
    align-items: center;
  }

  .pir-modal-dialog {
    width: min(430px, calc(100vw - 16px));
    height: min(720px, calc(100dvh - 66px - env(safe-area-inset-bottom)));
    max-height: calc(100dvh - 66px - env(safe-area-inset-bottom));
    border-radius: 12px;
  }

  .pir-modal-frame-wrap,
  .pir-modal-loader {
    border-radius: 12px;
  }

  .pir-modal-close {
    top: -42px;
    right: 2px;
    width: 36px;
    height: 36px;
    font-size: 27px;
    line-height: 32px;
  }

  .pir-modal-nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 40px;
    height: 48px;
    border-radius: 20px;
    font-size: 31px;
    line-height: 39px;
    background: rgba(20,20,20,.72);
  }

  .pir-modal-prev {
    left: 8px;
  }

  .pir-modal-next {
    right: 8px;
  }

  .pir-modal-counter {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 9px;
    border-radius: 13px;
    background: rgba(20,20,20,.68);
    font-size: 12px;
    line-height: 1;
  }
}
