.ycf-cookie-banners {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}

.ycf-cookie-banners > .ycf-cookie-banner {
  pointer-events: auto;
}

#ycf-cookie-banner.ycf-cookie-banner,
#ycf-cookie-banner-secondary.ycf-cookie-banner {
  width: min(92vw, 460px);
  background: #ffffff;
  border: 1px solid #e3daca;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  color: #222222;
}

.ycf-cookie-banner__content {
  display: grid;
  gap: 0.75rem;
  position: relative;
}

.ycf-cookie-banner__text {
  margin: 0;
  font-size: 12px;
}

.ycf-cookie-banner__link {
  display: inline-flex;
  width: fit-content;
  text-decoration: underline;
  font-weight: 600;font-size: 12px;
}

.ycf-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ycf-cookie-banner__close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 36px;
  height: 36px;
  border: 1px solid #e3daca;
  border-radius: 999px;
  background: #ffffff;
  color: #222222;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ycf-cookie-banner__close:hover {
  transform: translateY(-1px);
}

.ycf-cookie-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ycf-cookie-btn--primary {
  background: #f05a28;
  color: #ffffff;
}

.ycf-cookie-btn--secondary {
  background: #ffffff;
  border-color: #f05a28;
  color: #f05a28;
}

.ycf-cookie-btn--ghost {
  background: #f8f5ee;
  border-color: #ddd3c2;
  color: #3a2f24;
}

.ycf-cookie-btn:hover {
  transform: translateY(-1px);
}

.ycf-cookie-preferences {
  margin-top: 0.9rem;
  border-top: 1px solid #ece4d8;
  padding-top: 0.9rem;
}

.ycf-cookie-preferences h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.ycf-cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.ycf-cookie-preferences__actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ycf-cookie-banner.is-hidden {
  display: none;
}

@media (max-width: 720px) {
  .ycf-cookie-banners {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  #ycf-cookie-banner.ycf-cookie-banner,
  #ycf-cookie-banner-secondary.ycf-cookie-banner {
    width: 100%;
    padding: 0.85rem;
  }
}
