:root {
  --wcc-bg: #ffffff;
  --wcc-text: #172033;
  --wcc-muted: #526079;
  --wcc-border: #d9e0ea;
  --wcc-primary: #1769e0;
  --wcc-primary-hover: #0f56bb;
  --wcc-shadow: 0 18px 50px rgba(15, 31, 57, 0.2);
}

.wcc [hidden],
.wcc-embed-placeholder[hidden] {
  display: none !important;
}

.wcc-banner {
  position: fixed;
  z-index: 2147483000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  color: var(--wcc-text);
  font-family: inherit;
}

.wcc-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--wcc-border);
  border-radius: 16px;
  background: var(--wcc-bg);
  box-shadow: var(--wcc-shadow);
}

.wcc-banner h2,
.wcc-modal h2,
.wcc-category h3 {
  margin: 0 0 8px;
  color: var(--wcc-text);
  line-height: 1.25;
}

.wcc-banner p,
.wcc-modal p,
.wcc-category p {
  margin: 0;
  color: var(--wcc-muted);
  line-height: 1.55;
}

.wcc-links { margin-top: 8px !important; }
.wcc a { color: var(--wcc-primary); text-decoration: underline; }

.wcc-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.wcc-button,
.wcc-inline-settings,
.wcc-reopen {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--wcc-primary);
  border-radius: 9px;
  background: #fff;
  color: var(--wcc-primary);
  font: 600 15px/1.3 inherit;
  cursor: pointer;
}

.wcc-button:hover,
.wcc-inline-settings:hover,
.wcc-reopen:hover { background: #edf5ff; }

.wcc-button--primary {
  background: var(--wcc-primary);
  color: #fff;
}

.wcc-button--primary:hover { background: var(--wcc-primary-hover); }

.wcc button:focus-visible,
.wcc-inline-settings:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.wcc-modal {
  position: fixed;
  z-index: 2147483001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.wcc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 22, 39, 0.66);
}

.wcc-modal__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(760px, 90vh);
  overflow: auto;
  padding: 28px;
  border-radius: 16px;
  background: var(--wcc-bg);
  box-shadow: var(--wcc-shadow);
}

.wcc-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--wcc-text);
  font-size: 30px;
  cursor: pointer;
}

.wcc-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--wcc-border);
}

.wcc-switch { display: grid; gap: 5px; justify-items: center; color: var(--wcc-muted); font-size: 13px; }
.wcc-switch input { width: 24px; height: 24px; accent-color: var(--wcc-primary); }
.wcc-actions--modal { margin-top: 22px; }
.wcc-modal-open { overflow: hidden; }

.wcc-reopen {
  position: fixed;
  z-index: 2147482999;
  right: 18px;
  bottom: 18px;
  box-shadow: 0 8px 24px rgba(15, 31, 57, 0.16);
}

.wcc-embed-placeholder {
  display: grid;
  min-height: 260px;
  place-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed #9eabc0;
  border-radius: 12px;
  background: #f5f8fc;
  color: var(--wcc-text);
  text-align: center;
}

.wcc-embed-placeholder p { margin: 0; }

@media (max-width: 820px) {
  .wcc-banner { right: 10px; bottom: 10px; left: 10px; }
  .wcc-banner__inner { align-items: stretch; flex-direction: column; padding: 18px; }
  .wcc-actions { display: grid; grid-template-columns: 1fr; }
  .wcc-button { width: 100%; }
  .wcc-modal { padding: 10px; }
  .wcc-modal__panel { padding: 24px 18px; }
  .wcc-category { grid-template-columns: 1fr; }
  .wcc-switch { justify-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .wcc * { scroll-behavior: auto !important; }
}
