/**
 * Tutorial de ativação da key — compacto no PC e no celular.
 */

.order-seekkey__license-group ~ .order-seekkey__content,
.order-seekkey__license-group ~ .centralcart-content {
  display: none !important;
}

.kat {
  margin-top: 0.7rem;
  padding: 0.8rem 0.8rem 0.85rem;
  border-radius: 0.9rem;
  background: #141418;
  border: 1px solid rgb(255 255 255 / 0.08);
  font-family: 'Sora', 'Geist', sans-serif;
  color: #fff;
}

.kat__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin-bottom: 0.7rem;
}

.kat__badge {
  display: inline-flex;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgb(59 130 246 / 0.16);
  border: 1px solid rgb(59 130 246 / 0.32);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
}

.kat__warn {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #f5c451;
}

.kat__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 720px) {
  .kat {
    padding: 0.95rem 1rem 1rem;
  }

  .kat__steps {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .kat__step--video {
    grid-column: 1 / -1;
  }
}

.kat__step {
  display: grid;
  grid-template-columns: 1.55rem minmax(0, 1fr);
  gap: 0.55rem;
  padding: 0.7rem 0.7rem 0.75rem;
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.03);
  border: 1px solid rgb(255 255 255 / 0.06);
}

.kat__num {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #3b82f6;
  font-size: 0.75rem;
  font-weight: 800;
}

.kat__body h4 {
  margin: 0.05rem 0 0.3rem;
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.kat__body p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.64);
}

.kat kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.3rem;
  padding: 0 0.32rem;
  border-radius: 0.32rem;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: #0e0e12;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  color: #fff;
}

.kat__cmd {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.4rem;
  padding: 0.35rem 0.4rem 0.35rem 0.55rem;
  border-radius: 0.55rem;
  background: #0a0a0c;
  border: 1px solid rgb(245 196 81 / 0.24);
}

.kat__cmd code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f5c451;
  word-break: break-all;
}

.kat__copy {
  flex: 0 0 auto;
  height: 1.9rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 0.45rem;
  background: #3b82f6;
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
}

.kat__copy.is-ok {
  background: #16a34a;
}

.kat__video {
  position: relative;
  width: 100%;
  max-width: 28rem;
  margin-top: 0.5rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.65rem;
  background: #000;
  border: 1px solid rgb(255 255 255 / 0.08);
}

.kat__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.kat__help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 2.4rem;
  margin-top: 0.65rem;
  padding: 0 0.95rem;
  border-radius: 0.7rem;
  background: #5865f2;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.kat__help-ico {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
}

.kat__help-ico svg {
  width: 0.82rem;
  height: 0.82rem;
}

.kat__help-online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 2px #5865f2;
  animation: katHelpOnline 1.8s ease-in-out infinite;
}

@keyframes katHelpOnline {
  0%, 100% { box-shadow: 0 0 0 2px #5865f2, 0 0 0 0 rgb(34 197 94 / 0.5); }
  70% { box-shadow: 0 0 0 2px #5865f2, 0 0 0 5px rgb(34 197 94 / 0); }
}

@media (prefers-reduced-motion: reduce) {
  .kat__help-online {
    animation: none;
  }
}

@media (max-width: 719px) {
  .kat {
    padding: 0.75rem 0.7rem 0.8rem;
  }

  .kat__cmd {
    flex-direction: column;
    align-items: stretch;
  }

  .kat__copy {
    width: 100%;
    height: 2.15rem;
  }

  .kat__help {
    width: 100%;
  }

  .kat__video {
    max-width: none;
  }
}

#chat-messages .kat,
#chat-dialog-messages .kat {
  margin: 0;
}

.order-seekkey-chat__messages:has(.kat) {
  height: min(70vh, 34rem);
}