.petola-consent-root {
  position: relative;
  z-index: 1000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.petola-consent-page.petola-consent-lock {
  overflow: hidden;
}

.petola-consent-banner {
  position: fixed;
  z-index: 1001;
  bottom: 24px;
  left: 50%;
  width: min(980px, calc(100% - 48px));
  color: #2c2c2e;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(47, 125, 112, 0.22);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(31, 65, 58, 0.18), 0 4px 18px rgba(31, 65, 58, 0.08);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.petola-consent-banner-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

.petola-consent-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: #2f7d70;
  background: #e6f2ef;
  border: 1px solid #c9e2dc;
  border-radius: 14px;
}

.petola-consent-icon svg {
  width: 24px;
  height: 24px;
}

.petola-consent-eyebrow {
  margin: 0;
  color: #2f7d70;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.petola-consent-banner h2,
.petola-consent-dialog h2 {
  margin: 5px 0 0;
  color: #2c2c2e;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.petola-consent-description,
.petola-consent-dialog-intro {
  max-width: 620px;
  margin: 7px 0 0;
  color: #5f6261;
  font-size: 13px;
  line-height: 1.62;
}

.petola-consent-text-link,
.petola-consent-dialog-links a {
  display: inline-flex;
  margin-top: 7px;
  color: #24685d;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(36, 104, 93, 0.35);
  text-underline-offset: 3px;
}

.petola-consent-text-link:hover,
.petola-consent-dialog-links a:hover {
  color: #1d554c;
  text-decoration-color: currentColor;
}

.petola-consent-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.petola-consent-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

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

.petola-consent-button:active {
  transform: translateY(0);
}

.petola-consent-button-primary {
  color: #fff;
  background: #2f7d70;
  border-color: #2f7d70;
}

.petola-consent-button-primary:hover {
  background: #24685d;
  border-color: #24685d;
}

.petola-consent-button-secondary {
  color: #24685d;
  background: #e6f2ef;
  border-color: #c9e2dc;
}

.petola-consent-button-secondary:hover {
  background: #d9ece7;
  border-color: #aacfc6;
}

.petola-consent-button-quiet {
  color: #5f6261;
  background: transparent;
  border-color: #dfe8e5;
}

.petola-consent-button-quiet:hover {
  color: #24685d;
  background: #f5f7f6;
  border-color: #c9e2dc;
}

.petola-consent-button:focus-visible,
.petola-consent-text-link:focus-visible,
.petola-consent-dialog-links a:focus-visible,
.petola-consent-close:focus-visible,
.petola-consent-switch:focus-visible,
.petola-consent-manage:focus-visible,
.site-footer-consent-link:focus-visible {
  outline: 3px solid rgba(233, 120, 98, 0.45);
  outline-offset: 3px;
}

.petola-consent-manage {
  position: fixed;
  z-index: 1000;
  bottom: 18px;
  left: 18px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 13px 0 10px;
  color: #24685d;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #c9e2dc;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(31, 65, 58, 0.14);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.petola-consent-manage:hover {
  color: #fff;
  background: #2f7d70;
  transform: translateY(-2px);
}

.petola-consent-manage-icon {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #fff;
  background: #2f7d70;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
}

.petola-consent-manage:hover .petola-consent-manage-icon {
  color: #2f7d70;
  background: #fff;
}

.petola-consent-overlay {
  position: fixed;
  z-index: 1002;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 38, 35, 0.46);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.petola-consent-dialog {
  width: min(620px, 100%);
  max-height: min(720px, calc(100dvh - 48px));
  overflow: auto;
  padding: 26px;
  color: #2c2c2e;
  background: #fff;
  border: 1px solid rgba(47, 125, 112, 0.2);
  border-radius: 26px;
  box-shadow: 0 28px 90px rgba(18, 44, 39, 0.25);
}

.petola-consent-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.petola-consent-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: #5f6261;
  background: #f5f7f6;
  border: 1px solid #dfe8e5;
  border-radius: 50%;
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.petola-consent-close:hover {
  color: #24685d;
  background: #e6f2ef;
  border-color: #c9e2dc;
}

.petola-consent-dialog-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: #747776;
  font-size: 12px;
}

.petola-consent-dialog-links a {
  margin: 0;
}

.petola-consent-categories {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.petola-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 16px;
  background: #f8faf9;
  border: 1px solid #e0ebe8;
  border-radius: 17px;
}

.petola-consent-category-copy {
  min-width: 0;
}

.petola-consent-category-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.petola-consent-category h3 {
  margin: 0;
  color: #2c2c2e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.petola-consent-category p {
  max-width: 480px;
  margin: 5px 0 0;
  color: #686d6b;
  font-size: 12px;
  line-height: 1.62;
}

.petola-consent-required {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  color: #2f7d70;
  background: #e6f2ef;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.petola-consent-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  flex: 0 0 48px;
  align-items: center;
  padding: 3px;
  background: #d8e1df;
  border: 1px solid #c8d5d1;
  border-radius: 999px;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.petola-consent-switch::after,
.petola-consent-switch-knob {
  display: block;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(31, 65, 58, 0.18);
  content: "";
  transition: transform 180ms ease;
}

.petola-consent-switch::after {
  transform: translateX(0);
}

.petola-consent-switch.is-on {
  background: #2f7d70;
  border-color: #2f7d70;
}

.petola-consent-switch.is-on::after,
.petola-consent-switch.is-on .petola-consent-switch-knob {
  transform: translateX(20px);
}

.petola-consent-switch[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.92;
}

.petola-consent-dialog-footnote {
  margin: 17px 0 0;
  color: #747776;
  font-size: 11px;
  line-height: 1.65;
}

.petola-consent-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.site-footer-consent-link {
  display: block;
  padding: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-footer-consent-link:hover {
  color: var(--primary-hover, #24685d);
}

body[data-route] .petola-consent-manage {
  bottom: calc(86px + env(safe-area-inset-bottom));
}

@media (max-width: 820px) {
  .petola-consent-banner {
    bottom: 14px;
    width: calc(100% - 28px);
    border-radius: 21px;
  }

  .petola-consent-banner-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    padding: 17px 16px 16px;
  }

  .petola-consent-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .petola-consent-icon svg {
    width: 21px;
    height: 21px;
  }

  .petola-consent-banner h2 {
    font-size: 16px;
  }

  .petola-consent-description {
    font-size: 12px;
    line-height: 1.65;
  }

  .petola-consent-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .petola-consent-actions .petola-consent-button-primary {
    grid-column: 1 / -1;
  }

  .petola-consent-button {
    min-height: 46px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .petola-consent-manage {
    bottom: 14px;
    left: 12px;
    min-height: 40px;
    font-size: 10px;
  }

  .petola-consent-overlay {
    place-items: end center;
    padding: 10px;
  }

  .petola-consent-dialog {
    max-height: calc(100dvh - 20px);
    padding: 21px 17px 17px;
    border-radius: 23px 23px 17px 17px;
  }

  .petola-consent-dialog h2 {
    font-size: 20px;
  }

  .petola-consent-dialog-intro {
    font-size: 13px;
  }

  .petola-consent-category {
    align-items: flex-start;
    gap: 12px;
    padding: 15px 13px;
  }

  .petola-consent-category h3 {
    font-size: 13px;
  }

  .petola-consent-category p {
    font-size: 11px;
    line-height: 1.64;
  }

  .petola-consent-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .petola-consent-dialog-actions .petola-consent-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .petola-consent-banner h2 {
    font-size: 15px;
  }

  .petola-consent-eyebrow {
    font-size: 9px;
  }

  .petola-consent-button {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .petola-consent-button,
  .petola-consent-manage,
  .petola-consent-switch,
  .petola-consent-switch::after,
  .petola-consent-switch-knob {
    transition: none;
  }
}
