#afcc-cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 560px;
  margin: auto;
  padding: 20px;
  background: #082e27;
  color: #fff;
  border: 1px solid #b99455;
  border-radius: 12px;
  box-shadow: 0 8px 30px #0005;
  z-index: 2147483647;
  font: 15px/1.5 Arial, sans-serif;
}

#afcc-cookie-banner p {
  margin: 12px 0;
}

#afcc-cookie-banner button {
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #b99455;
  background: #f8f2e7;
  color: #082e27;
  font-weight: bold;
  cursor: pointer;
}

#afcc-cookie-banner a {
  display: block;
  margin-top: 12px;
  color: #f4d99b;
}

#afcc-cookie-preferences {
  position: static;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  background: #082e27;
  color: #fff;
  border: 1px solid #b99455;
  border-radius: 6px;
  cursor: pointer;
}

/* Cookie consent button layout */
#afcc-cookie-banner > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

#afcc-cookie-banner button {
  min-width: 110px;
}

#afcc-cookie-banner button:focus-visible,
#afcc-cookie-preferences:focus-visible {
  outline: 3px solid #f4d99b;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  #afcc-cookie-banner {
    box-sizing: border-box;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
  }

  #afcc-cookie-banner > div button {
    flex: 1;
  }
}

/* AFCC_COOKIE_MENU_V1 — no floating preference control. */
.afcc-cookie-footer-control {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
}
.afcc-cookie-menu-button {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  margin: 8px 0;
  border: 1px solid #b99455;
  border-radius: 10px;
  background: #f8f2e7;
  color: #082e27;
  text-align: left;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.afcc-cookie-menu-button:focus-visible { outline: 3px solid #b99455; outline-offset: 2px; }
@media (max-width: 1000px) {
  .afcc-cookie-footer-control { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  #afcc-cookie-banner {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 125px);
    max-height: calc(100dvh - 125px - env(safe-area-inset-bottom, 0px));
    overflow: auto;
    box-sizing: border-box;
  }
}
