.lcc-widget {
  font-family: inherit;
  color: var(--lcc-text);
}

.lcc-widget [hidden] {
  display: none !important;
}

.lcc-banner {
  position: fixed;
  z-index: 999998;
  left: 50%;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(680px, calc(100vw - 28px));
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: var(--lcc-bg);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
  transform: translateX(-50%);
}

.lcc-banner__text {
  min-width: 0;
}

.lcc-banner__text strong {
  display: block;
  margin: 0 0 6px;
  color: var(--lcc-text);
  font-size: 15px;
  line-height: 1.25;
}

.lcc-banner__text p {
  margin: 0;
  color: var(--lcc-muted);
  font-size: 14px;
  line-height: 1.45;
}

.lcc-banner__text a {
  display: inline-block;
  margin-top: 8px;
  color: var(--lcc-primary);
  font-size: 13px;
  text-decoration: none;
}

.lcc-banner__text a:hover {
  text-decoration: underline;
}

.lcc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 250px;
}

.lcc-button {
  appearance: none;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.lcc-button:hover {
  transform: translateY(-1px);
}

.lcc-button:focus-visible,
.lcc-icon:focus-visible,
.lcc-modal__close:focus-visible {
  outline: 2px solid var(--lcc-accent);
  outline-offset: 3px;
}

.lcc-button--primary {
  color: #fff;
  background: var(--lcc-primary);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.22);
}

.lcc-button--soft {
  color: var(--lcc-primary);
  background: rgba(13, 148, 136, 0.1);
}

.lcc-button--ghost {
  color: var(--lcc-muted);
  background: transparent;
}

.lcc-icon {
  position: fixed;
  z-index: 999997;
  bottom: var(--lcc-icon-offset-y);
  left: var(--lcc-icon-offset-x);
  display: grid;
  place-items: center;
  width: var(--lcc-icon-size);
  height: var(--lcc-icon-size);
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: var(--lcc-icon-symbol);
  background: var(--lcc-icon-color);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lcc-icon:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.22);
}

.lcc-icon svg {
  display: block;
  width: 58%;
  height: 58%;
}

.lcc-modal {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.lcc-modal__panel {
  position: relative;
  width: min(520px, 100%);
  padding: 22px;
  border-radius: 8px;
  color: var(--lcc-text);
  background: var(--lcc-bg);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.lcc-modal__panel h2 {
  margin: 0 0 10px;
  color: var(--lcc-text);
  font-size: 22px;
  line-height: 1.2;
}

.lcc-modal__panel p {
  margin: 0 0 16px;
  color: var(--lcc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.lcc-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--lcc-muted);
  background: rgba(15, 23, 42, 0.06);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lcc-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 10px 0;
  padding: 13px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.02);
}

.lcc-choice input {
  margin-top: 3px;
  accent-color: var(--lcc-primary);
}

.lcc-choice strong {
  display: block;
  margin-bottom: 3px;
  color: var(--lcc-text);
  font-size: 14px;
}

.lcc-choice small {
  display: block;
  color: var(--lcc-muted);
  font-size: 13px;
  line-height: 1.4;
}

.lcc-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .lcc-banner {
    display: block;
    width: calc(100vw - 24px);
    padding: 14px;
  }

  .lcc-banner__actions {
    justify-content: stretch;
    min-width: 0;
    margin-top: 12px;
  }

  .lcc-banner__actions .lcc-button {
    flex: 1 1 auto;
  }

  .lcc-icon {
    bottom: var(--lcc-icon-offset-y-mobile);
    left: var(--lcc-icon-offset-x-mobile);
    width: var(--lcc-icon-size-mobile);
    height: var(--lcc-icon-size-mobile);
  }

  .lcc-modal__actions {
    display: grid;
  }
}
