#ekn-scc-root,
#ekn-scc-root * {
  box-sizing: border-box;
}

#ekn-scc-root[hidden] {
  display: none !important;
}

.ekn-scc {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ekn-scc__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 8, 40, 0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  pointer-events: none;
}

.ekn-scc.is-modal-open,
.ekn-scc__banner,
.ekn-scc__modal,
.ekn-scc-manage-link,
.ekn-scc-shortcode-button {
  pointer-events: auto;
}

.ekn-scc.is-modal-open .ekn-scc__backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ekn-scc__banner,
.ekn-scc__modal-card,
.ekn-scc-manage-link,
.ekn-scc-shortcode-button {
  border-radius: 18px;
}

.ekn-scc__banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100vw - 28px));
  padding: 18px;
  color: var(--ekn-scc-text, #110828);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 8, 40, 0.08);
  box-shadow: 0 16px 44px rgba(17, 8, 40, 0.11);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: eknSccFadeUp .24s ease;
}

.ekn-scc--top .ekn-scc__banner {
  top: 22px;
  bottom: auto;
}

.ekn-scc__content,
.ekn-scc__actions,
.ekn-scc__modal-header,
.ekn-scc__modal-body,
.ekn-scc__modal-actions {
  position: relative;
  z-index: 1;
}

.ekn-scc__brand-row,
.ekn-scc__modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ekn-scc__logo,
.ekn-scc__modal-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}

.ekn-scc__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--ekn-scc-text, #110828) 58%, white);
}

.ekn-scc__banner h2,
.ekn-scc__modal h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.2vw, 20px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ekn-scc-text, #110828);
  font-weight: 700;
}

.ekn-scc__banner p,
.ekn-scc__modal p {
  margin: 0;
  line-height: 1.5;
  font-size: 13.5px;
  color: var(--ekn-scc-muted, #4A3870);
}

.ekn-scc__policy {
  display: inline-flex;
  margin-top: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ekn-scc-text, #110828);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(139,47,201,.22);
}

.ekn-scc__actions,
.ekn-scc__modal-actions {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.ekn-scc__button,
.ekn-scc-manage-link,
.ekn-scc-shortcode-button,
.ekn-scc__icon-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, opacity .16s ease;
  font-family: inherit;
}

.ekn-scc__button:hover,
.ekn-scc-manage-link:hover,
.ekn-scc-shortcode-button:hover,
.ekn-scc__icon-button:hover {
  transform: translateY(-1px);
}

.ekn-scc__button {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.015em;
  border-radius: 999px;
}

.ekn-scc__button--primary {
  background: linear-gradient(135deg, var(--ekn-scc-primary, #8B2FC9), var(--ekn-scc-secondary, #C0143C));
  color: #fff;
  box-shadow: 0 10px 22px rgba(139, 47, 201, 0.14);
}

.ekn-scc__button--secondary {
  background: linear-gradient(135deg, var(--ekn-scc-primary, #8B2FC9), var(--ekn-scc-secondary, #C0143C));
  color: #fff;
}

.ekn-scc__button--outline {
  background: rgba(255,255,255,.76);
  color: var(--ekn-scc-text, #110828);
  border: 1px solid rgba(17, 8, 40, 0.14);
}

.ekn-scc__button--text {
  background: transparent;
  color: var(--ekn-scc-text, #110828);
  padding: 0;
  min-height: auto;
  text-align: left;
  border-radius: 0;
  font-weight: 600;
  width: fit-content;
  justify-self: start;
  font-size: 13px;
}

.ekn-scc__modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ekn-scc__modal[hidden] {
  display: none !important;
}

.ekn-scc__modal-card {
  width: min(480px, 100%);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,8,40,.08);
  box-shadow: 0 24px 64px rgba(17, 8, 40, 0.14);
  padding: 18px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.ekn-scc__modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.ekn-scc__icon-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(17,8,40,.05);
  color: var(--ekn-scc-text, #110828);
  font-size: 22px;
  line-height: 1;
}

.ekn-scc__modal-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ekn-scc__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: rgba(247,244,255,.7);
  border: 1px solid rgba(17,8,40,.06);
  border-radius: 14px;
}

.ekn-scc__category strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--ekn-scc-text, #110828);
}

.ekn-scc__category p {
  font-size: 12.5px;
}

.ekn-scc__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17,8,40,.06);
  color: var(--ekn-scc-text, #110828);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ekn-scc__switch {
  position: relative;
  flex: 0 0 auto;
}

.ekn-scc__switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.ekn-scc__switch-track {
  display: inline-block;
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(17,8,40,.15);
  transition: background .2s ease;
}

.ekn-scc__switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(17,8,40,.12);
  transition: transform .2s ease;
}

.ekn-scc__switch input:checked + .ekn-scc__switch-track {
  background: linear-gradient(135deg, var(--ekn-scc-primary, #8B2FC9), var(--ekn-scc-secondary, #C0143C));
}

.ekn-scc__switch input:checked + .ekn-scc__switch-track::after {
  transform: translateX(20px);
}

.ekn-scc-manage-link,
.ekn-scc-shortcode-button {
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.82);
  color: var(--ekn-scc-text, #110828);
  border: 1px solid rgba(17,8,40,.08);
  box-shadow: 0 10px 28px rgba(17, 8, 40, 0.10);
  z-index: 2147483000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ekn-scc-manage-link {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  display: none;
}

.ekn-scc-manage-link.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: inline-flex !important;
}

.ekn-scc-manage-link__icon,
.ekn-scc-shortcode-button .ekn-scc-manage-link__icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, rgba(255,255,255,.95) 0 8%, transparent 9%),
    radial-gradient(circle at 70% 38%, rgba(255,255,255,.95) 0 7%, transparent 8%),
    radial-gradient(circle at 55% 70%, rgba(255,255,255,.95) 0 6%, transparent 7%),
    linear-gradient(135deg, var(--ekn-scc-primary, #8B2FC9), var(--ekn-scc-secondary, #C0143C));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.ekn-scc-manage-link::after,
.ekn-scc-shortcode-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17,8,40,.92);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 10px 24px rgba(17, 8, 40, 0.16);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.ekn-scc-manage-link:hover::after,
.ekn-scc-manage-link:focus-visible::after,
.ekn-scc-shortcode-button:hover::after,
.ekn-scc-shortcode-button:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.ekn-scc-shortcode-button {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: auto;
}

.ekn-scc-no-scroll {
  overflow: hidden;
}

@keyframes eknSccFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .ekn-scc__banner {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
    padding: 16px;
  }

  .ekn-scc--top .ekn-scc__banner {
    top: 14px;
    bottom: auto;
  }

  .ekn-scc-manage-link {
    left: 14px;
    bottom: 14px;
  }

    .ekn-scc__category {
    align-items: flex-start;
  }
}
