/* Cookie consent bar: full-width white bar at the bottom; stacks on phones. */
.ckbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995; background: #fff; border-top: 1px solid #e3e8ee; box-shadow: 0 -8px 30px rgba(15, 25, 40, 0.12); transform: translateY(105%); transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.24, 1); }
.ckbar[hidden] { display: none; }
.ckbar.is-shown { transform: none; }
.ckbar-inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ckbar-text { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 16px; line-height: 1.5; color: #404040; }
.ckbar-text i { flex: none; font-size: 22px; color: #2d5e8f; }
.ckbar-actions { display: flex; gap: 12px; flex: none; }
.ckbar-btn { font-family: "Montserrat", sans-serif; font-weight: 900; font-size: 15px; line-height: 1; padding: 17px 34px; border-radius: 50px; cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.ckbar-btn:active { transform: scale(0.98); }
.ckbar-reject { background: #fff; color: #111; border: 2px solid #cfd8e3; }
.ckbar-reject:hover { border-color: #2d5e8f; }
.ckbar-accept { background: linear-gradient(90deg, #3274b6 0%, #274868 100%); color: #fff; border: 2px solid transparent; }
.ckbar-accept:hover { background: linear-gradient(90deg, #2d68a3 0%, #213e58 100%); }

/* While the bar is visible, the floating buttons sit above it. */
.rpchat, .rpwa { transition: bottom 0.4s ease; }
body.has-cookie-bar .rpchat { bottom: calc(24px + var(--ckbar-h, 0px)); }
body.has-cookie-bar .rpwa { bottom: calc(24px + var(--ckbar-h, 0px)); }
body.has-cookie-bar .back-to-top-wrapper.back-to-top-btn-show { bottom: calc(104px + var(--ckbar-h, 0px)); }

/* Footer link that reopens the choice. */
.cookie-reopen { background: none; border: 0; padding: 0; margin-left: 10px; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; opacity: 0.9; }
.cookie-reopen:hover { opacity: 1; }

@media (max-width: 767.98px) {
  .ckbar-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 18px 20px; }
  .ckbar-text { font-size: 15px; align-items: flex-start; }
  .ckbar-actions { width: 100%; }
  .ckbar-btn { flex: 1 1 0; padding: 16px 12px; }
  body.has-cookie-bar .rpchat, body.has-cookie-bar .rpwa { bottom: calc(16px + var(--ckbar-h, 0px)); }
  body.has-cookie-bar .rpchat.is-open { bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .ckbar { transition: none; } }
