.ktheme-popup-shell,
.ktheme-popup-shell * {
  box-sizing: border-box;
}

.ktheme-popup-shell[hidden] {
  display: none;
}

.ktheme-popup-shell {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--ktheme-popup-fade-duration, 280ms) ease, visibility 0s linear var(--ktheme-popup-fade-duration, 280ms);
}

.ktheme-popup-shell.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.ktheme-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 10, var(--ktheme-popup-overlay-opacity, 0.52));
}

.ktheme-popup-dialog {
  position: relative;
  z-index: 1;
  width: min(var(--ktheme-popup-width, 720px), 100%);
  max-height: min(var(--ktheme-popup-max-height, 760px), calc(100vh - 48px));
  overflow: auto;
  padding: var(--ktheme-popup-padding, 24px);
  border: 1px solid #ebeef2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
  color: #0e0e10;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity var(--ktheme-popup-fade-duration, 280ms) ease, transform var(--ktheme-popup-fade-duration, 280ms) ease;
}

.ktheme-popup-shell.is-open .ktheme-popup-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .ktheme-popup-shell,
  .ktheme-popup-dialog {
    transition: none;
  }

  .ktheme-popup-dialog {
    transform: none;
  }
}

.ktheme-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #ebeef2;
  border-radius: 6px;
  background: #fff;
  color: #0e0e10;
  cursor: pointer;
}

.ktheme-popup-close,
.ktheme-popup-cta,
.ktheme-popup-dismiss-today,
.ktheme-popup-footer-close,
.ktheme-popup-slider-button,
.ktheme-popup-slide-nav-item {
  font: inherit;
}

.ktheme-popup-title {
  margin: 0 42px 16px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
}

.ktheme-popup-slider {
  position: relative;
  min-height: var(--ktheme-popup-content-height, 520px);
  overflow: hidden;
}

.ktheme-popup-slide {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ktheme-popup-slider-transition-duration, 260ms) ease-out, transform var(--ktheme-popup-slider-transition-duration, 260ms) cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear var(--ktheme-popup-slider-transition-duration, 260ms);
}

.ktheme-popup-slide.is-active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.ktheme-popup-cta,
.ktheme-popup-dismiss-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 6px;
}

.ktheme-popup-cta {
  background: #5e6ad2;
  color: #fff;
  text-decoration: none;
}

.ktheme-popup-footer {
  margin-top: 16px;
}

.ktheme-popup-dismiss-today {
  border: 1px solid #ebeef2;
  background: #fafbfc;
  color: #3c3e44;
  cursor: pointer;
}

@media (max-width: 767px) {
  .ktheme-popup-shell {
    align-items: flex-end;
    padding: 12px;
  }

  .ktheme-popup-dialog {
    width: var(--ktheme-popup-mobile-width, 100%);
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

}
.ktheme-popup-position-top {
  align-items: flex-start;
}

.ktheme-popup-position-bottom {
  align-items: flex-end;
}

.ktheme-popup-type-bottom_slide {
  align-items: flex-end;
}

.ktheme-popup-type-bottom_slide .ktheme-popup-dialog {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.ktheme-popup-type-side_slide {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.ktheme-popup-type-side_slide .ktheme-popup-dialog {
  width: min(var(--ktheme-popup-width, 420px), calc(100vw - 48px));
  max-height: 100vh;
  min-height: 100vh;
  border-radius: 0;
}
.ktheme-popup-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.ktheme-popup-slider-button,
.ktheme-popup-slider-dot {
  border: 1px solid #d9dee7;
  background: #fff;
  color: #0e0e10;
  cursor: pointer;
}

.ktheme-popup-slider-button {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 22px;
  line-height: 1;
}

.ktheme-popup-slider-dots {
  display: inline-flex;
  gap: 8px;
}

.ktheme-popup-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
}

.ktheme-popup-slider-dot[aria-current="true"] {
  background: #5e6ad2;
  border-color: #5e6ad2;
}
@media (max-width: 767px) {
  .ktheme-popup-type-side_slide {
    align-items: flex-end;
    padding: 12px;
  }

  .ktheme-popup-type-side_slide .ktheme-popup-dialog {
    width: var(--ktheme-popup-mobile-width, 100%);
    max-height: calc(100vh - 24px);
    min-height: auto;
    border-radius: 12px 12px 0 0;
  }
}
.ktheme-popup-slide-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
}

.ktheme-popup-slide-nav.ktheme-popup-slide-nav-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ktheme-popup-slide-nav.ktheme-popup-slide-nav-count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ktheme-popup-slide-nav.ktheme-popup-slide-nav-count-5 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ktheme-popup-slide-nav-count-5 .ktheme-popup-slide-nav-item {
  grid-column: span 2;
}

.ktheme-popup-slide-nav-count-5 .ktheme-popup-slide-nav-item:nth-child(n+4) {
  grid-column: span 3;
}

.ktheme-popup-slide-nav.ktheme-popup-slide-nav-count-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ktheme-popup-slide-nav-count-5 .ktheme-popup-slide-nav-item:nth-child(n+4),
.ktheme-popup-slide-nav-count-6 .ktheme-popup-slide-nav-item:nth-child(n+4) {
  border-top: 1px solid #edf0f4;
}

.ktheme-popup-slide-nav-item {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 10px;
  border: 0;
  border-right: 1px solid #edf0f4;
  background: #fff;
  color: #66707c;
  text-align: center;
  cursor: pointer;
}

.ktheme-popup-slide-nav-item:last-child {
  border-right: 0;
}

.ktheme-popup-slide-nav-item strong {
  color: #1b1f24;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.ktheme-popup-slide-nav-item span {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.ktheme-popup-slide-nav-item[aria-current="true"] {
  background: #f7fbff;
  color: #0f6fdc;
}

.ktheme-popup-slide-nav-item[aria-current="true"] strong {
  color: #0f6fdc;
}

.ktheme-popup-slide-nav-item:focus-visible {
  outline: 3px solid rgba(15, 111, 220, 0.28);
  outline-offset: -3px;
}
/* KTheme review event popup treatment */
.ktheme-popup-dialog {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #e8fbff;
}

.ktheme-popup-close {
  position: absolute;
  inset: 10px 10px auto auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
  line-height: 1;
}

.ktheme-popup-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ktheme-popup-content {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.ktheme-popup-slide {
  min-height: var(--ktheme-popup-content-height, 520px);
  padding: 32px;
  text-align: center;
  background-color: #e8fbff;
  background-image: var(--ktheme-popup-slide-background-image, var(--ktheme-popup-preset-background, linear-gradient(145deg, #f8feff 0%, #d9f8ef 45%, #ecfbff 100%)));
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ktheme-popup-slide h3 {
  margin: 0 0 16px;
  color: #171b21;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.ktheme-popup-slide p {
  margin: 0 0 28px;
  color: #5b6978;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.ktheme-popup-cta {
  position: relative;
  overflow: hidden;
  min-width: 132px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #0878dc;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.ktheme-popup-cta span {
  position: relative;
  z-index: 2;
}

.ktheme-popup-cta.btn-primary {
  background: #0878dc;
  color: #fff;
  border-color: #0878dc;
}

.ktheme-popup-cta.btn-secondary {
  background: #6b7280;
  color: #fff;
  border-color: #6b7280;
}

.ktheme-popup-cta.btn-light {
  background: #fff;
  color: #11161d;
  border-color: #e7ebf0;
}

.ktheme-popup-cta.btn-dark {
  background: #11161d;
  color: #fff;
  border-color: #11161d;
}

.ktheme-popup-cta.btn-outline-primary {
  background: transparent;
  color: #0878dc;
  border-color: #0878dc;
}

.ktheme-popup-cta.btn-outline-dark {
  background: transparent;
  color: #11161d;
  border-color: #11161d;
}

.ktheme-popup-cta.btn-gradient-primary {
  background: linear-gradient(135deg, #0878dc 0%, #18c7b8 100%);
  color: #fff;
  border-color: transparent;
}

.ktheme-popup-cta.btn-ghost-primary,
.ktheme-popup-cta.btn-ghost-dark {
  background: transparent;
  border-color: transparent;
}

.ktheme-popup-cta.btn-ghost-primary {
  color: #0878dc;
}

.ktheme-popup-cta.btn-ghost-dark {
  color: #11161d;
}

.ktheme-popup-cta.btn-hover-invert:hover {
  background: #11161d;
  color: #fff;
  border-color: #11161d;
}

.ktheme-popup-cta.btn-hover-shadow:hover {
  box-shadow: 0 12px 28px rgba(20, 30, 45, 0.18);
}

.ktheme-popup-cta.btn-hover-shadow-lift:hover,
.ktheme-popup-cta.btn-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(20, 30, 45, 0.2);
}

.ktheme-popup-cta.btn-hover-lighten:hover {
  filter: brightness(1.08);
}

.ktheme-popup-cta.btn-hover-grow:hover {
  transform: scale(1.03);
}

.ktheme-popup-cta.btn-hover-shine::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -70%;
  z-index: 1;
  width: 44%;
  height: 180%;
  background: rgba(255,255,255,0.35);
  transform: rotate(24deg);
  transition: left 0.45s ease;
}

.ktheme-popup-cta.btn-hover-shine:hover::before {
  left: 125%;
}

.ktheme-popup-slide-nav {
  margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.82);
  border-bottom: 1px solid #edf0f4;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
}

.ktheme-popup-slide-nav-item {
  gap: 1px;
  min-height: 56px;
  padding: 8px;
  border-right: 0;
  background: transparent;
  color: #68717d;
}

.ktheme-popup-slide-nav-item strong,
.ktheme-popup-slide-nav-item span {
  font-size: 13px;
  line-height: 1.18;
}

.ktheme-popup-slide-nav-item[aria-current="true"] {
  background: transparent;
  color: #11161d;
  box-shadow: inset 0 -2px 0 #11161d;
}

.ktheme-popup-slide-nav-item[aria-current="true"] strong {
  color: #11161d;
}

.ktheme-popup-slider-controls {
  display: none;
}

.ktheme-popup-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 54px;
  margin-top: 0;
  border-top: 1px solid #e7e8eb;
  background: #fff;
}

.ktheme-popup-dismiss-today,
.ktheme-popup-footer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #59616d;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.ktheme-popup-footer-close {
  border-left: 1px solid #edf0f4;
}

@media (max-width: 767px) {
  .ktheme-popup-shell {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .ktheme-popup-dialog {
    width: min(var(--ktheme-popup-width, 720px), 90vw);
    max-width: 90vw;
    height: auto;
    max-height: min(var(--ktheme-popup-max-height, 760px), calc(100dvh - 48px));
    aspect-ratio: var(--ktheme-popup-aspect-ratio);
    overflow: hidden;
  }

  .ktheme-popup-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .ktheme-popup-slider {
    flex: 1 1 auto;
    min-height: 0;
  }

  .ktheme-popup-footer {
    flex: 0 0 auto;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .ktheme-popup-slide {
    min-height: 0;
    padding: 24px;
    background-image: var(--ktheme-popup-slide-background-mobile-image, var(--ktheme-popup-slide-background-image, var(--ktheme-popup-preset-background, linear-gradient(145deg, #f8feff 0%, #d9f8ef 45%, #ecfbff 100%))));
  }
}

.ktheme-popup-slider-effect-none .ktheme-popup-slide {
  transition: none;
}

.ktheme-popup-slider-effect-fade .ktheme-popup-slide {
  transform: none;
}

.ktheme-popup-slider-effect-slide .ktheme-popup-slide {
  transform: translateX(8%);
}

.ktheme-popup-slider-effect-slide .ktheme-popup-slide.is-active {
  transform: translateX(0);
}

.ktheme-popup-slider-effect-slide .ktheme-popup-slide.is-active.is-entering-forward {
  transform: translateX(8%);
}

.ktheme-popup-slider-effect-slide .ktheme-popup-slide.is-active.is-entering-backward {
  transform: translateX(-8%);
}

.ktheme-popup-slider-effect-slide .ktheme-popup-slide.is-leaving {
  z-index: 2;
  visibility: visible;
  opacity: 0;
  pointer-events: none;
}

.ktheme-popup-slider-effect-slide .ktheme-popup-slide.is-leaving-forward {
  transform: translateX(-8%);
}

.ktheme-popup-slider-effect-slide .ktheme-popup-slide.is-leaving-backward {
  transform: translateX(8%);
}

.ktheme-popup-slider-effect-zoom .ktheme-popup-slide {
  transform: scale(0.985);
}

.ktheme-popup-slider-effect-zoom .ktheme-popup-slide.is-active {
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .ktheme-popup-slider .ktheme-popup-slide {
    transition: none;
  }
}

.ktheme-popup-bg-preset-aqua_bubble {
  --ktheme-popup-preset-background:
    radial-gradient(circle at 26% -6%, rgba(255,255,255,0.96) 0 24%, rgba(255,255,255,0) 25%),
    radial-gradient(circle at 78% 18%, rgba(121,236,202,0.76) 0 28%, rgba(121,236,202,0) 29%),
    radial-gradient(circle at 88% 64%, rgba(0,132,225,0.88) 0 30%, rgba(0,132,225,0) 31%),
    radial-gradient(circle at 12% 82%, rgba(105,218,232,0.72) 0 24%, rgba(105,218,232,0) 25%),
    linear-gradient(145deg, #f8feff 0%, #d9f8ef 45%, #ecfbff 100%);
}

.ktheme-popup-bg-preset-blue_mist {
  --ktheme-popup-preset-background:
    radial-gradient(circle at 20% 4%, rgba(255,255,255,0.92) 0 22%, rgba(255,255,255,0) 23%),
    radial-gradient(circle at 78% 42%, rgba(72,151,255,0.42) 0 32%, rgba(72,151,255,0) 33%),
    linear-gradient(150deg, #f7fbff 0%, #dcecff 48%, #ffffff 100%);
}

.ktheme-popup-bg-preset-peach_event {
  --ktheme-popup-preset-background:
    radial-gradient(circle at 28% 8%, rgba(255,255,255,0.9) 0 22%, rgba(255,255,255,0) 23%),
    radial-gradient(circle at 82% 38%, rgba(255,154,128,0.5) 0 28%, rgba(255,154,128,0) 29%),
    radial-gradient(circle at 18% 88%, rgba(255,208,120,0.42) 0 24%, rgba(255,208,120,0) 25%),
    linear-gradient(145deg, #fffaf5 0%, #ffe3d4 52%, #fff8ed 100%);
}

.ktheme-popup-bg-preset-green_soft {
  --ktheme-popup-preset-background:
    radial-gradient(circle at 24% 6%, rgba(255,255,255,0.9) 0 24%, rgba(255,255,255,0) 25%),
    radial-gradient(circle at 78% 26%, rgba(91,214,162,0.46) 0 30%, rgba(91,214,162,0) 31%),
    radial-gradient(circle at 12% 84%, rgba(171,231,197,0.48) 0 26%, rgba(171,231,197,0) 27%),
    linear-gradient(145deg, #fbfffd 0%, #ddf7e9 48%, #f8fffb 100%);
}

.ktheme-popup-bg-mode-color {
  --ktheme-popup-preset-background: var(--ktheme-popup-background-color, #e8fbff);
}

.ktheme-popup-bg-mode-image {
  --ktheme-popup-preset-background: var(--ktheme-popup-background-image, linear-gradient(145deg, #f8feff 0%, #d9f8ef 45%, #ecfbff 100%));
}

@media (max-width: 767px) {
  .ktheme-popup-bg-mode-image {
    --ktheme-popup-preset-background: var(--ktheme-popup-background-mobile-image, var(--ktheme-popup-background-image, linear-gradient(145deg, #f8feff 0%, #d9f8ef 45%, #ecfbff 100%)));
  }
}
