/* ===== QELK cookie consent ===== */
:root{
  --qelk-blue: #2f6fed;
  --qelk-blue-dark: #1f4fd1;
  --qelk-navy: #0f2540;
  --qelk-text: #33445b;
  --qelk-border: #dce6f5;
  --qelk-bg: #ffffff;
  --qelk-bg-soft: #f3f7ff;
}

.qelk-cookie{
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}

.qelk-cookie__card{
  pointer-events: auto;
  width: 100%;
  max-width: 100%;
  background: var(--qelk-bg);
  border: 1px solid var(--qelk-border);
  box-shadow: 0 12px 32px rgba(15, 37, 64, 0.12);
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}

.qelk-cookie.is-visible .qelk-cookie__card{
  transform: translateY(0);
}

.qelk-cookie__top{
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.qelk-cookie__icon{
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--qelk-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qelk-cookie__icon svg{
  width: 22px;
  height: 22px;
}

.qelk-cookie__title{
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--qelk-navy);
}

.qelk-cookie__text{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--qelk-text);
}

.qelk-cookie__text a{
  color: var(--qelk-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(47,111,237,.35);
}

.qelk-cookie__text a:hover{
  border-bottom-color: var(--qelk-blue);
}

.qelk-cookie__actions{
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.qelk-cookie__btn{
  flex: 1;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.qelk-cookie__btn:active{
  transform: scale(.97);
}

.qelk-cookie__btn--accept{
  color: #fff;
  background: linear-gradient(180deg, var(--sky-deep), var(--sky-dark));
  box-shadow: 0 6px 16px rgba(47,111,237,.35);
}

.qelk-cookie__btn--accept:hover{
  box-shadow: 0 8px 20px rgba(47,111,237,.45);
}

.qelk-cookie__btn--decline{
  color: var(--qelk-navy);
  background: var(--qelk-bg-soft);
  border: 1px solid var(--qelk-border);
  flex: 0 0 auto;
}

.qelk-cookie__btn--decline:hover{
  background: #e9f0fd;
}

/* ===== Desktop: card in bottom-right corner ===== */
@media (min-width: 641px){
  .qelk-cookie{
    justify-content: flex-end;
    padding: 0 24px 24px 0;
  }
  .qelk-cookie__card{
    max-width: 360px;
    border-radius: 18px;
    transform: translateY(24px);
    opacity: 0;
    transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  }
  .qelk-cookie.is-visible .qelk-cookie__card{
    transform: translateY(0);
    opacity: 1;
  }
}
