.l2cc-root {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 999998;
  pointer-events: none;
}

.l2cc-root.is-hidden {
  display: none;
}

.l2cc-banner,
.l2cc-modal,
.l2cc-manage {
  pointer-events: auto;
}

.l2cc-banner {
  margin: 0 0 18px 50px;
  width: min(350px, calc(100% - 54px));
  max-width: 350px;
  background: rgba(11, 14, 22, 0.96);
  color: #f4f7fb;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 0;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 18px 22px 18px 16px;
  display: block;
  gap: 18px;
}

.l2cc-copy {
  min-width: 0;
}

.l2cc-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.l2cc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244, 247, 251, 0.82);
}

.l2cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 14px;
}

.l2cc-btn,
.l2cc-manage,
.l2cc-icon-btn {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.l2cc-btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

.l2cc-btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
}

.l2cc-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f7fb;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.l2cc-btn-text {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: rgba(244, 247, 251, 0.78);
  border: 0;
  border-radius: 0;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.l2cc-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 16, 0.76);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.l2cc-modal-card {
  width: min(100%, 760px);
  background: linear-gradient(180deg, #0b0f16 0%, #111827 100%);
  color: #eef2f7;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 22px;
}

.l2cc-modal-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.l2cc-modal-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.l2cc-modal-header .l2cc-text {
  color: rgba(238, 242, 247, 0.78);
}

.l2cc-modal-header p {
  max-width: unset !important;
}

.l2cc-icon-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef2f7;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 26px;
  line-height: 1;
}

.l2cc-groups {
  display: grid;
  gap: 12px;
}

.l2cc-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-items: center;
}

.l2cc-row strong,
.l2cc-row small {
  display: block;
}

.l2cc-row small {
  margin-top: 4px;
  color: rgba(238, 242, 247, 0.7);
  line-height: 1.5;
}

.l2cc-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #16a34a;
  flex: 0 0 auto;
}

.l2cc-row.is-locked {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.24);
}

.l2cc-actions-modal {
  margin-top: 18px;
  justify-content: flex-start;
}

.l2cc-manage {
  position: fixed;
  left: 6px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  background: rgba(16, 24, 40, 0.96);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
  font-size: 0;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.l2cc-manage::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #ffffff 0 2px, transparent 2px),
    radial-gradient(circle at 68% 32%, #ffffff 0 2px, transparent 2px),
    radial-gradient(circle at 52% 68%, #ffffff 0 2px, transparent 2px),
    #22c55e;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .l2cc-banner {
    width: calc(100% - 16px);
    margin: 0 8px 12px;
    margin-bottom: 12px;
    padding: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: block;
  }

  .l2cc-actions {
    justify-content: stretch;
    margin-top: 14px;
  }

  .l2cc-btn {
    width: 100%;
  }

  .l2cc-modal-card {
    padding: 18px;
    border-radius: 16px;
  }

  .l2cc-row {
    align-items: flex-start;
  }
}
