
#ct-cookiebar{
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 999999;
  display: none;
  box-sizing: border-box;

  background: rgba(15,23,42,.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  padding: 14px;

  max-width: 920px;
  margin: 0 auto;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

#ct-cookiebar *{ box-sizing: border-box; }

.ct-cookiebar__row{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap; /* 🔥 ключ для Android */
}

.ct-cookiebar__text{
  flex: 1 1 420px;
  min-width: 240px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .95;
}

.ct-cookiebar__text a{
  color:#9dd1ff;
  text-decoration: underline;
}

.ct-cookiebar__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#ct-cookiebar button{
  appearance:none;
  border:0;
  border-radius:10px;
  padding:10px 14px;
  font-weight:700;
  cursor:pointer;
  line-height:1.1;
  white-space:nowrap;
}

#ct-cookie-accept{ background:#c62820; color:#fff; }
#ct-cookie-decline{ background:rgba(255,255,255,.14); color:#fff; }
#ct-cookie-more{ background:rgba(255,255,255,.08); color:#fff; }

#ct-cookiebar-details{
  display:none;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.12);
  font-size:13px;
  line-height:1.35;
  opacity:.95;
}

/* ===== Mobile fix ===== */
@media (max-width:520px){
  #ct-cookiebar{
    left:10px;
    right:10px;
    padding:12px;
  }

  .ct-cookiebar__text{
    flex:1 1 100%;
    min-width:0;
    font-size:13px;
  }

  .ct-cookiebar__actions{
    flex:1 1 100%;
  }

  #ct-cookiebar button{
    width:100%;      /* 🔥 кнопки столбиком */
    padding:12px;
  }

  #ct-cookiebar-details{
    max-height:42vh; /* 🔥 не раздувается */
    overflow:auto;
    -webkit-overflow-scrolling:touch;
  }
}
