.ppa-banner,
.ppa-dialog {
  box-sizing: border-box;
  color: #202124;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.ppa-banner *,
.ppa-dialog * {
  box-sizing: border-box;
}

.ppa-banner {
  position: fixed;
  z-index: 999990;
  right: 20px;
  bottom: 20px;
  left: 20px;
  width: auto;
  max-width: 1000px;
  max-height: min(85vh, 720px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid #c9cdd2;
  border-radius: 12px;
  box-shadow: 0 8px 36px rgb(0 0 0 / 22%);
}

.ppa-banner h2,
.ppa-dialog h2 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1.3;
}

.ppa-banner p,
.ppa-dialog p {
  margin: 0 0 14px;
}

.ppa-banner a,
.ppa-dialog a {
  color: #174ea6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ppa-banner-content {
  margin-bottom: 18px;
}

.ppa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ppa-button[type=button] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #242827;
  border-radius: 6px;
  color: #242827;
  background: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.ppa-close[type=button],
.ppa-button[type=button] {
  display: block;
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid #242827;
  border-radius: 4px;
  color: #242827;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition:color .3s ease-in-out, background-color .3s ease-in-out, border-color .3s ease-in-out;
}


.ppa-button[type=button]:hover,
.ppa-close[type=button]:hover {
  color: #242827;
  background: #EBEEF2;
}

.ppa-primary[type=button] {
    border-color: #25745F;
    color: #fff;
    background: #25745F;
}
.ppa-primary[type=button]:hover {
    border-color: #0F366A;
    color: #fff;
    background: #0F366A;
}

.ppa-close[type=button]{
  margin-left: auto;
  color: #242827;
  border: 1px solid #242827;
}

.ppa-button:focus-visible,
.ppa-close:focus-visible,
.ppa-banner a:focus-visible,
.ppa-dialog a:focus-visible,
.ppa-dialog input:focus-visible,
.ppa-open-settings:focus-visible {
  outline: 3px solid #e37400;
  outline-offset: 3px;
}

.ppa-backdrop {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
  background: rgb(0 0 0 / 58%);
}

.ppa-dialog {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid #d7dbe0;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgb(0 0 0 / 28%);
}

.ppa-dialog > h2 {
  margin-top: 8px;
}
.ppa-dialog > .ppa-privacy-link {
  margin-top:16px;
}

.ppa-preference-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
}

.ppa-preference-row input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: #174ea6;
}

.ppa-preference-row label {
  display: block;
  cursor: pointer;
}

.ppa-preference-row label strong,
.ppa-preference-row label span {
  display: block;
}

.ppa-preference-row label span {
  margin-top: 4px;
}

.ppa-necessary {
  margin: 16px 0;
  padding: 12px 14px;
  border-left: 4px solid #5f6368;
  background: #f5f6f7;
}

.ppa-necessary p {
  margin: 5px 0 0;
}

.ppa-privacy-link {
  display: inline-block;
}

@media (max-width: 600px) {
  .ppa-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 18px;
  }

  .ppa-actions {
    flex-direction: column;
  }

  .ppa-button {
    width: 100%;
    white-space: normal;
  }

  .ppa-dialog {
    padding: 20px;
  }

  .ppa-backdrop {
    align-items: flex-start;
    padding: 12px;
  }

  .ppa-dialog {
    max-height: calc(100vh - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ppa-banner *,
  .ppa-dialog * {
    scroll-behavior: auto;
    animation: none;
    transition: none;
  }
}

/* Floating Cookie Settings button */
.pp-cookie-settings-footer {
    position: fixed;
    left: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    z-index: 99990;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
}

/* Turn the shortcode link into a circle */
.pp-cookie-settings-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #222222;
    color: #ffffff;
    font-size: 0;
    line-height: 1;
    text-decoration: none;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease,
                background-color 0.2s ease;
}

/* Cookie icon */
.pp-cookie-settings-footer a::before {
    content: "🍪";
    font-size: 25px;
    line-height: 1;
}

/* Hover effect */
.pp-cookie-settings-footer a:hover {
    background: #444444;
    transform: scale(1.08);
}

/* Keyboard accessibility */
.pp-cookie-settings-footer a:focus-visible {
    outline: 3px solid #1769ff;
    outline-offset: 4px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .pp-cookie-settings-footer a {
        transition: none;
    }
}
