.vcc-root {
  --vcc-primary: #1f5a46;
  --vcc-surface: #fff;
  --vcc-text: #202124;
  --vcc-muted: #5f6368;
  --vcc-border: #d9dde1;
  --vcc-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  color: var(--vcc-text);
  font-family: inherit;
  line-height: 1.45;
  position: relative;
  z-index: 2147483000;
}

.vcc-root [hidden] {
  display: none !important;
}

.vcc-banner {
  align-items: center;
  background: var(--vcc-surface);
  border-top: 1px solid var(--vcc-border);
  bottom: 0;
  box-shadow: 0 -8px 26px rgba(0, 0, 0, .14);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  left: 0;
  padding: 20px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  z-index: 2147483002;
}

.vcc-banner h2,
.vcc-modal h2,
.vcc-modal h3 {
  color: var(--vcc-text);
  font-family: inherit;
  margin: 0;
  text-transform: none;
}

.vcc-banner h2,
.vcc-modal h2 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.vcc-banner p,
.vcc-modal p {
  color: var(--vcc-muted);
  font-size: .94rem;
  margin: 7px 0 0;
}

.vcc-banner__actions,
.vcc-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vcc-banner__actions {
  justify-content: flex-end;
  max-width: 620px;
}

.vcc-button {
  align-items: center;
  border: 2px solid var(--vcc-primary);
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: .93rem;
  font-weight: 650;
  justify-content: center;
  min-height: 44px;
  padding: 9px 17px;
  text-align: center;
}

.vcc-button:focus-visible,
.vcc-close:focus-visible,
.vcc-reopen:focus-visible,
.vcc-category input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--vcc-primary) 35%, white);
  outline-offset: 3px;
}

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

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

.vcc-button--link {
  background: transparent;
  border-color: transparent;
  color: var(--vcc-primary);
  text-decoration: underline;
}

.vcc-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.vcc-policy-links a {
  color: var(--vcc-primary);
  font-size: .9rem;
  text-decoration: underline;
}

.vcc-modal-backdrop {
  align-items: center;
  background: rgba(16, 20, 24, .62);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2147483004;
}

.vcc-modal {
  background: var(--vcc-surface);
  border-radius: 8px;
  box-shadow: var(--vcc-shadow);
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 780px);
  max-width: 720px;
  overflow: hidden;
  width: 100%;
}

.vcc-modal__header,
.vcc-modal__actions {
  align-items: center;
  display: flex;
  padding: 18px 22px;
}

.vcc-modal__header {
  border-bottom: 1px solid var(--vcc-border);
  justify-content: space-between;
}

.vcc-modal__body {
  overflow-y: auto;
  padding: 4px 22px 20px;
}

.vcc-modal__actions {
  border-top: 1px solid var(--vcc-border);
  justify-content: flex-end;
}

.vcc-close {
  background: transparent;
  border: 0;
  color: var(--vcc-text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 4px 8px;
}

.vcc-category {
  align-items: flex-start;
  border-bottom: 1px solid var(--vcc-border);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 17px 0;
}

.vcc-category label {
  cursor: pointer;
  display: block;
  flex: 1;
}

.vcc-category label strong,
.vcc-category label span {
  display: block;
}

.vcc-category label span {
  color: var(--vcc-muted);
  font-size: .9rem;
  margin-top: 4px;
}

.vcc-category input {
  accent-color: var(--vcc-primary);
  cursor: pointer;
  flex: 0 0 auto;
  height: 22px;
  margin-top: 2px;
  width: 42px;
}

.vcc-always-active {
  color: var(--vcc-primary);
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
}

.vcc-reopen {
  align-items: center;
  background: var(--vcc-primary);
  border: 2px solid #fff;
  border-radius: 50%;
  bottom: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 21px;
  height: 48px;
  justify-content: center;
  padding: 0;
  position: fixed;
  width: 48px;
  z-index: 2147483001;
}

.vcc-reopen-left .vcc-reopen {
  left: 14px;
}

.vcc-reopen-right .vcc-reopen {
  right: 14px;
}

.vcc-modal-open {
  overflow: hidden;
}

[data-vcc-blocked="1"][data-vcc-src] {
  background: #f2f3f4;
  min-height: 80px;
}

@media (max-width: 900px) {
  .vcc-banner {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .vcc-banner__actions {
    justify-content: stretch;
    max-width: none;
  }

  .vcc-banner__actions .vcc-button {
    flex: 1 1 180px;
  }
}

@media (max-width: 540px) {
  .vcc-banner {
    max-height: 88vh;
    overflow-y: auto;
    padding: 16px;
  }

  .vcc-banner__actions,
  .vcc-modal__actions {
    flex-direction: column;
  }

  .vcc-button {
    width: 100%;
  }

  .vcc-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .vcc-modal {
    border-radius: 8px 8px 0 0;
    max-height: 94vh;
  }

  .vcc-modal__header,
  .vcc-modal__actions {
    padding: 15px 16px;
  }

  .vcc-modal__body {
    padding: 4px 16px 16px;
  }
}

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