/* posway CMP v2 */
#posway-cmp {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

#posway-cmp .posway-cmp__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  pointer-events: auto;
}

#posway-cmp .posway-cmp__panel {
  position: relative;
  pointer-events: auto;
  width: 100%;
  max-width: 42rem;
  max-height: min(88vh, 40rem);
  overflow: auto;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 0.75rem;
  background: #0b1220;
  color: #f8fafc;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'Manrope', system-ui, sans-serif;
}

#posway-cmp .posway-cmp__view--hidden {
  display: none;
}

#posway-cmp .posway-cmp__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#posway-cmp .posway-cmp__text {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.82);
}

#posway-cmp .posway-cmp__text a {
  color: #93a4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#posway-cmp .posway-cmp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: flex-end;
}

#posway-cmp .posway-cmp__btn {
  appearance: none;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

#posway-cmp .posway-cmp__btn--primary {
  background: #122bfc;
  color: #fff;
}

#posway-cmp .posway-cmp__btn--primary:hover {
  opacity: 0.94;
}

#posway-cmp .posway-cmp__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#posway-cmp .posway-cmp__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

#posway-cmp .posway-cmp__btn--ghost {
  background: transparent;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

#posway-cmp .posway-cmp__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

#posway-cmp .posway-cmp__cat {
  margin-top: 0.9rem;
  padding: 0.85rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

#posway-cmp .posway-cmp__cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

#posway-cmp .posway-cmp__cat-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

#posway-cmp .posway-cmp__cat-desc {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(248, 250, 252, 0.72);
}

#posway-cmp .posway-cmp__badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 0.35rem;
  background: rgba(147, 164, 255, 0.18);
  color: #c7d0ff;
  white-space: nowrap;
}

#posway-cmp .posway-cmp__switch {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 1.4rem;
  flex-shrink: 0;
}

#posway-cmp .posway-cmp__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#posway-cmp .posway-cmp__switch span {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: 0.2s;
}

#posway-cmp .posway-cmp__switch span::before {
  content: '';
  position: absolute;
  height: 1.05rem;
  width: 1.05rem;
  left: 0.18rem;
  top: 0.175rem;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

#posway-cmp .posway-cmp__switch input:checked + span {
  background: #122bfc;
}

#posway-cmp .posway-cmp__switch input:checked + span::before {
  transform: translateX(1.05rem);
}

#posway-cmp .posway-cmp__details {
  margin-top: 0.65rem;
}

#posway-cmp .posway-cmp__details summary {
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  color: #93a4ff;
  list-style: none;
}

#posway-cmp .posway-cmp__details summary::-webkit-details-marker {
  display: none;
}

#posway-cmp .posway-cmp__table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-size: 0.7rem;
  line-height: 1.35;
}

#posway-cmp .posway-cmp__table th,
#posway-cmp .posway-cmp__table td {
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
  color: rgba(248, 250, 252, 0.85);
}

#posway-cmp .posway-cmp__table th {
  color: rgba(248, 250, 252, 0.55);
  font-weight: 600;
}

.posway-cmp__reopen {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 99990;
  appearance: none;
  border: 1px solid rgba(17, 43, 252, 0.25);
  background: #fff;
  color: #122bfc;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Manrope', system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.posway-cmp__reopen:hover {
  background: #f1f5ff;
}

@media (max-width: 640px) {
  #posway-cmp .posway-cmp__actions {
    flex-direction: column-reverse;
  }
  #posway-cmp .posway-cmp__btn {
    width: 100%;
  }
}
