.ruiwo-consent-manage {
  position: static;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 14px;
  border: 1px solid #b8c9c6;
  border-radius: 999px;
  background: #fff;
  color: #174f4a;
  box-shadow: none;
  font: 700 12px/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.ruiwo-consent-footer {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(184, 201, 198, .55);
  background: #f7faf9;
}

.ruiwo-consent-footer[hidden] {
  display: none !important;
}

.ruiwo-consent-manage:hover {
  border-color: #7fa69f;
  background: #f3faf8;
}

.ruiwo-consent-manage:focus-visible {
  outline: 3px solid rgba(18, 103, 199, .28);
  outline-offset: 3px;
}

.ruiwo-consent-manage[hidden] {
  display: none;
}

.ruiwo-consent {
  position: fixed;
  z-index: 9998;
  box-sizing: border-box;
  left: 12px;
  bottom: 12px;
  width: min(420px, calc(100vw - 24px));
  padding: 18px;
  border: 1px solid #b8ddd7;
  border-radius: 16px;
  background: #fff;
  color: #203332;
  box-shadow: 0 18px 50px rgba(20, 55, 51, .22);
  font: 400 14px/1.55 system-ui, sans-serif;
}

.ruiwo-consent[hidden] { display: none; }
.ruiwo-consent strong { display: block; color: #0b625a; font-size: 17px; }
.ruiwo-consent p { margin: 8px 0 14px; }
.ruiwo-consent a { color: #0b625a; font-weight: 700; }
.ruiwo-consent > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ruiwo-consent button { min-height: 44px; padding: 9px 14px; border: 1px solid #8ebbb5; border-radius: 10px; background: #fff; color: #174f4a; font: 800 13px/1.2 system-ui, sans-serif; cursor: pointer; }
.ruiwo-consent button[data-consent="grant"] { border-color: #11766d; background: #11766d; color: #fff; }

body.is-menu-open .ruiwo-consent-manage,
body.is-modal-open .ruiwo-consent-manage,
body.is-filter-sheet-open .ruiwo-consent-manage,
body.is-quick-sheet-open .ruiwo-consent-manage {
  display: none;
}

@media (max-width: 520px) {
  .ruiwo-consent-footer--has-mobile-action {
    padding: 12px 12px calc(96px + env(safe-area-inset-bottom));
  }

  .ruiwo-consent {
    left: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 12px;
    border-radius: 14px;
    font-size: 12.5px;
    line-height: 1.42;
  }

  .ruiwo-consent strong { font-size: 15px; }
  .ruiwo-consent p { margin: 5px 0 10px; }
  .ruiwo-consent > div { display: grid; grid-template-columns: 1fr 1fr; }

  body.is-analytics-consent-open #mobileActionBar,
  body.is-analytics-consent-open .mobile-contact-bar,
  body.is-analytics-consent-open .product-mobile-inquiry-bar {
    display: none !important;
  }
}


/* v89.24 compact mobile consent */
@media (max-width: 520px) {
  .ruiwo-consent {
    left: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
    max-height: min(46dvh, 310px);
    padding: 10px 11px 11px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.36;
  }
  .ruiwo-consent strong { font-size: 14px; line-height: 1.25; }
  .ruiwo-consent p { margin: 4px 0 8px; }
  .ruiwo-consent > div { gap: 6px; }
  .ruiwo-consent button { min-height: 40px; padding: 7px 10px; font-size: 12px; }
}

/* v89.32 compact mobile consent: preserve choice + policy link while reducing viewport obstruction. */
@media (max-width: 520px) {
  .ruiwo-consent {
    left: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100vw - 16px);
    max-height: 168px;
    overflow-y: auto;
    padding: 8px 9px 9px;
    border-radius: 12px;
    font-size: 10.8px;
    line-height: 1.28;
  }
  .ruiwo-consent strong { font-size: 12.5px; line-height: 1.2; }
  .ruiwo-consent p { margin: 3px 0 6px; }
  .ruiwo-consent > div { gap: 5px; }
  .ruiwo-consent button { min-height: 36px; padding: 6px 8px; border-radius: 9px; font-size: 11px; }
}
