.ya-cookies {
  color: #16342f;
  font: 1rem/1.5 system-ui, sans-serif;
}

.ya-cookies a { color: #126e5c; text-decoration: underline; }
.ya-cookies p { margin: .55rem 0 .9rem; }
.ya-cookies h2 { margin: 0 0 .6rem; font-size: 1.25rem; line-height: 1.25; }
.ya-cookie-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
  padding: 1rem;
}

.ya-cookie-banner, #ya-cookie-preferences {
  box-sizing: border-box;
  color: inherit;
  background: #fff;
  border: 1px solid #abc2b8;
  border-radius: .85rem;
  padding: clamp(.85rem, 3vw, 1.3rem);
  box-shadow: 0 .35rem 2rem #16342f2b;
  overflow: auto;
}

.ya-cookie-banner {
  position: fixed;
  inset: auto max(.7rem, env(safe-area-inset-right)) max(.7rem, env(safe-area-inset-bottom)) auto;
  z-index: 1000;
  width: min(32rem, calc(100% - 1.4rem));
  max-height: calc(100vh - 1.4rem);
}

#ya-cookie-preferences { width: min(34rem, calc(100% - 1.4rem)); max-height: calc(100vh - 1.4rem); }
#ya-cookie-preferences::backdrop { background: #16342f66; }
.ya-cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin: 0 0 .65rem; }
.ya-cookie-actions button, #ya-cookie-preferences .ya-cookie-close {
  font: inherit;
  color: #fff;
  background: #126e5c;
  border: 1px solid #126e5c;
  border-radius: .5rem;
  padding: .5rem .7rem;
  cursor: pointer;
}

#ya-cookie-preferences .ya-cookie-close { color: #126e5c; background: #fff; margin-bottom: .7rem; }
#ya-cookie-preferences label { display: flex; align-items: center; gap: .55rem; }
#ya-cookie-preferences input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: #126e5c; flex: none; }
.ya-cookies :focus-visible { outline: 3px solid #b07523; outline-offset: 2px; }
