.rc-consent-banner,
.rc-consent-modal {
  --rc-blue: #2e6eb7;
  --rc-blue-dark: #154f91;
  --rc-navy: #06182d;
  --rc-muted: #506175;
  --rc-line: #d8dee6;
  --rc-surface: #ffffff;
  --rc-soft: #f3f6f9;
  --rc-focus: #f3a712;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--rc-navy);
}

.rc-consent-banner[hidden],
.rc-consent-modal[hidden] {
  display: none !important;
}

.rc-consent-banner {
  position: fixed;
  z-index: 100000;
  right: 24px;
  bottom: 24px;
  left: 24px;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 14px;
  background: var(--rc-surface);
  box-shadow: 0 18px 48px rgba(6, 24, 45, 0.22);
  animation: rc-consent-enter 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rc-consent-banner__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 24px;
}

.rc-consent-banner__copy {
  max-width: 720px;
}

.rc-consent-banner h2,
.rc-consent-modal h2,
.rc-consent-modal h3 {
  color: var(--rc-navy);
  font-family: "IBM Plex Sans", sans-serif;
  line-height: 1.25;
}

.rc-consent-banner h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.rc-consent-banner p,
.rc-consent-modal p {
  margin: 0;
  line-height: 1.55;
}

.rc-consent-banner p {
  color: var(--rc-muted);
  font-size: 15px;
}

.rc-consent-banner a,
.rc-consent-modal a {
  color: var(--rc-blue);
  font-weight: 600;
  text-underline-offset: 3px;
}

.rc-consent-banner__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
  min-width: 340px;
}

.rc-consent-banner__actions .rc-consent-button--text {
  grid-column: 1 / -1;
}

.rc-consent-button,
.rc-consent-close,
.cookie-settings-link {
  font: inherit;
}

.rc-consent-button {
  min-height: 46px;
  padding: 10px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.rc-consent-button--primary {
  background: var(--rc-blue);
  color: #ffffff;
}

.rc-consent-button--primary:hover {
  background: var(--rc-blue-dark);
}

.rc-consent-button--secondary {
  border-color: var(--rc-blue);
  background: #ffffff;
  color: var(--rc-blue);
}

.rc-consent-button--secondary:hover {
  border-color: var(--rc-blue-dark);
  color: var(--rc-blue-dark);
  background: #eef5fd;
}

.rc-consent-button--text {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: var(--rc-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rc-consent-button--text:hover {
  color: var(--rc-blue-dark);
}

.rc-consent-button:focus-visible,
.rc-consent-close:focus-visible,
.rc-consent-switch input:focus-visible + span,
.cookie-settings-link:focus-visible,
.rc-consent-modal summary:focus-visible,
.rc-consent-modal a:focus-visible {
  outline: 3px solid var(--rc-focus);
  outline-offset: 3px;
}

.rc-consent-modal {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.rc-consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 45, 0.62);
  animation: rc-consent-fade 180ms ease-out both;
}

.rc-consent-modal__panel {
  position: relative;
  display: flex;
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  background: var(--rc-surface);
  box-shadow: 0 24px 70px rgba(6, 24, 45, 0.34);
  animation: rc-consent-modal-enter 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rc-consent-modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--rc-line);
}

.rc-consent-modal h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rc-consent-modal__header p {
  color: var(--rc-muted);
  font-size: 14px;
}

.rc-consent-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--rc-soft);
  color: var(--rc-navy);
  cursor: pointer;
}

.rc-consent-close:hover {
  background: #e5ebf1;
}

.rc-consent-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.rc-consent-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #9caaba transparent;
  scrollbar-width: thin;
}

.rc-consent-modal__body::-webkit-scrollbar {
  width: 10px;
}

.rc-consent-modal__body::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 10px;
  background: #9caaba;
  background-clip: padding-box;
}

.rc-consent-category {
  padding: 22px 28px;
  border-bottom: 1px solid var(--rc-line);
}

.rc-consent-category:last-child {
  border-bottom: 0;
}

.rc-consent-category__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.rc-consent-category h3,
.rc-consent-category__title {
  display: block;
  margin: 0 0 5px;
  font-size: 17px;
  font-weight: 700;
}

.rc-consent-category p,
.rc-consent-category__description {
  display: block;
  max-width: 620px;
  color: var(--rc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.rc-consent-required {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e6f4eb;
  color: #176b39;
  font-size: 12px;
  font-weight: 700;
}

.rc-consent-switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.rc-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rc-consent-switch .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rc-consent-switch input + span {
  position: relative;
  display: block;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: #8291a2;
  transition: background-color 160ms ease;
}

.rc-consent-switch input + span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(6, 24, 45, 0.24);
  content: "";
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rc-consent-switch input:checked + span {
  background: var(--rc-blue);
}

.rc-consent-switch input:checked + span::after {
  transform: translateX(22px);
}

.rc-consent-category details {
  margin-top: 14px;
}

.rc-consent-category summary {
  width: fit-content;
  color: var(--rc-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.rc-consent-cookie-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  background: var(--rc-soft);
}

.rc-consent-cookie-list p {
  color: #33465a;
  font-size: 13px;
  line-height: 1.5;
}

.rc-consent-cookie-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.rc-consent-modal__footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  border-top: 1px solid var(--rc-line);
  background: #ffffff;
}

.rc-consent-policy-link {
  flex: 0 0 auto;
  font-size: 13px;
}

.rc-consent-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.rc-consent-status {
  position: fixed;
  z-index: 100002;
  right: 18px;
  bottom: 18px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cookie-settings-link {
  display: inline-flex;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-settings-link:hover {
  color: #ffffff;
}

.newsletter-privacy {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
}

.newsletter-privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 1px 0 0;
  accent-color: #ffffff;
}

.newsletter-privacy a {
  color: #ffffff;
  font-weight: 700;
  text-underline-offset: 3px;
}

body.rc-consent-modal-open {
  overflow: hidden;
}

@keyframes rc-consent-enter {
  from {
    transform: translateY(18px);
    opacity: 0;
    filter: blur(4px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes rc-consent-modal-enter {
  from {
    transform: translateY(14px) scale(0.985);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes rc-consent-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  .rc-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .rc-consent-banner__content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
  }

  .rc-consent-banner__actions {
    min-width: 0;
  }

  .rc-consent-modal {
    align-items: end;
    padding: 0;
  }

  .rc-consent-modal__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }

  .rc-consent-modal__header,
  .rc-consent-category,
  .rc-consent-modal__footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .rc-consent-category__summary {
    gap: 16px;
  }

  .rc-consent-modal__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .rc-consent-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .rc-consent-banner__actions,
  .rc-consent-modal__actions {
    grid-template-columns: 1fr;
  }

  .rc-consent-banner__actions .rc-consent-button--text {
    grid-column: auto;
  }

  .rc-consent-modal h2 {
    font-size: 23px;
  }

  .rc-consent-modal__header {
    padding-top: 20px;
  }

  .rc-consent-category__summary {
    align-items: flex-start;
  }

  .rc-consent-required {
    max-width: 96px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rc-consent-banner,
  .rc-consent-modal__backdrop,
  .rc-consent-modal__panel {
    animation: none;
  }

  .rc-consent-button,
  .rc-consent-switch input + span,
  .rc-consent-switch input + span::after {
    transition: none;
  }
}
