/* === Capybara Cookie — POPUP CONTAINER (BX.PopupWindow) === */
.popup-window.capybara-cookie-popup {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    z-index: 12000 !important;
    max-width: 640px;
    width: calc(100vw - 32px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0,0,0,.45);
    background: #d0043c;
    color: #fff;
  }
  .capybara-cookie-popup .popup-window-content {
    padding: 20px 22px 16px;
  }
  .capybara-cookie-popup .popup-window-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 16px 16px;
    background: rgba(255,255,255,.04);
    border-top: 1px solid rgba(255,255,255,.06);
  }
  
  /* === Capybara Cookie — FORM INSIDE POPUP === */
  .capy-cookie-form__header { margin-bottom: 30px; }
  .capy-cookie-form__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
  }
  .capy-cookie-form__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .capy-cookie-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
  }
  .capy-cookie-row__check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    cursor: pointer;
  }
  .capy-cookie-row__label {
    user-select: none;
    font-weight: 600;
    cursor: pointer;
  }
  .capy-cookie-row__label.is-disabled {
    opacity: .6;
    cursor: default;
  }
  .capy-cookie-desc {
    margin: 0 0 12px 28px;
    color: #c7c9cf;
    line-height: 1.5;
    font-size: 14px;
  }
  
  /* === Buttons (reuse everywhere) === */
  .capy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .04s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, filter .2s ease;
  }
  .capy-btn:active { transform: translateY(1px); }
  .capy-btn--primary { background: #4caf50; color: #fff; }
  .capy-btn--primary:hover { filter: brightness(1.05); }
  .capy-btn--outline { background: transparent; border-color: #4b4f57; color: #e6e8eb; }
  .capy-btn--outline:hover { background: #2a2e35; }
  
  /* === Bottom cookie bar === */
  .cookie-bar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 22px;
    z-index: 9999;
    max-width: 980px;
    width: calc(100% - 24px);
    background: #d0043c;
    color: #fff;
    padding: 20px 40px;
    border-radius:0px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  .cookie-bar__inner {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
  }
  .cookie-bar__text { flex: 1 1 auto; line-height: 1.4; font-size: .9rem; }
  .cookie-bar__actions { flex: 0 0 auto; display: flex; gap: 8px; }
  
  /* Responsive tweaks */
  @media (max-width: 640px) {
    .cookie-bar__inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-bar__actions { justify-content: flex-end; }
    .capybara-cookie-popup .popup-window-content { padding: 16px; }
    .capy-cookie-desc { margin-left: 24px; }
  }
  
  /* Light scheme (optional) */
  @media (prefers-color-scheme: light) {
    .popup-window.capybara-cookie-popup { background: #fff; color: #111; box-shadow: 0 22px 60px rgba(0,0,0,.25); }
    .capybara-cookie-popup .popup-window-buttons { background: rgba(0,0,0,.03); border-top-color: rgba(0,0,0,.06); }
    .capy-cookie-desc { color: #555; }
    .cookie-bar { background: #fff; color: #111; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
    .capy-btn--outline { color: #333; border-color: #d5d7dc; }
    .capy-btn--outline:hover { background: #f2f3f5; }
  }
  
  /* Long content safety */
  .capybara-cookie-popup .popup-window-content { max-height: 72vh; overflow: auto; }
  
  .cookie-banner__link {
    color: var(--cb-text);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .cookie-banner__link:hover {
    text-decoration: unset;
    color: #ccc;
  }