.ysa-cookie-banner,
.ysa-cookie-preferences {
  box-sizing: border-box;
  color: var(--n-900, #0e141f);
  background: var(--n-0, #fff);
  font: 14px/1.55 "Geist", "Ysa Auth", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  border: 1px solid var(--n-200, #e1e3e8);
  border-radius: 20px;
  box-shadow: 0 16px 60px rgba(14, 20, 31, .16);
}
.ysa-cookie-banner *, .ysa-cookie-preferences * { box-sizing: border-box; }
.ysa-cookie-banner[hidden], .ysa-cookie-preferences:not([open]) { display: none; }
.ysa-cookie-banner {
  position: fixed;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 100200;
  width: min(500px, calc(100vw - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
}
.ysa-cookie-heading { display: flex; align-items: center; gap: 12px; }
.ysa-cookie-icon {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  height: 42px;
  color: var(--teal-ink, #0b6f68);
  background: var(--teal-soft, #e8f6f4);
  border-radius: 12px;
}
.ysa-cookie-banner h2, .ysa-cookie-preferences h2 {
  margin: 0;
  font: 650 19px/1.3 "Geist", "Ysa Auth", Arial, sans-serif;
  letter-spacing: -.03em;
  color: inherit;
}
.ysa-cookie-banner p, .ysa-cookie-preferences p {
  margin: 14px 0 20px;
  padding: 0;
  font: inherit;
  color: var(--n-600, #4d5360);
}
.ysa-cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ysa-cookie-button {
  appearance: none;
  flex: 1 1 160px;
  min-height: 44px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid var(--n-300, #c9ccd2);
  border-radius: 10px;
  background: var(--n-0, #fff);
  color: var(--n-800, #1b2230);
  font: 600 13px/1.4 "Geist", "Ysa Auth", Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}
.ysa-cookie-button:hover { background: var(--n-50, #f6f7f8); }
.ysa-cookie-primary { background: #008f7b; border-color: #008f7b; color: #fff; }
.ysa-cookie-primary:hover { background: #007b6b; border-color: #007b6b; }
.ysa-cookie-settings-link { appearance: none; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; padding: 0; margin: 0; }
.ysa-cookie-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ysa-cookie-links a, .ysa-cookie-links button, .ysa-cookie-privacy { color: var(--n-600, #4d5360); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.ysa-cookie-banner :focus-visible, .ysa-cookie-preferences :focus-visible, .ysa-cookie-settings-link:focus-visible { outline: 3px solid var(--teal-ink, #0b6f68); outline-offset: 3px; }
.ysa-cookie-preferences {
  display: flex;
  flex-direction: column;
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
}
.ysa-cookie-preferences::backdrop { background: rgba(14, 20, 31, .38); }
.ysa-cookie-preferences-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; }
.ysa-cookie-close { display: grid; place-items: center; flex: 0 0 40px; height: 40px; padding: 0; margin: 0; background: var(--n-50, #f6f7f8); color: var(--n-700, #2e3441); border: 0; border-radius: 10px; cursor: pointer; }
.ysa-cookie-preferences-body { flex: 1 1 auto; min-height: 0; padding: 0 24px 22px; overflow-y: auto; overscroll-behavior: contain; }
.ysa-cookie-preferences-body > p { margin-top: 0; }
.ysa-cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; margin: 0; border-top: 1px solid var(--n-150, #e9ebee); font: inherit; color: inherit; }
.ysa-cookie-category h3, .ysa-cookie-category strong { display: block; margin: 0; font: 600 14px/1.4 "Geist", "Ysa Auth", Arial, sans-serif; color: inherit; }
.ysa-cookie-category p, .ysa-cookie-category-description { display: block; margin: 5px 0 0; font-size: 12px; line-height: 1.55; color: var(--n-600, #4d5360); }
.ysa-cookie-required { flex-shrink: 0; color: var(--teal-ink, #0b6f68); font-size: 11px; font-weight: 600; }
.ysa-cookie-optional { cursor: pointer; }
.ysa-cookie-toggle { appearance: none; flex: 0 0 40px; width: 40px; height: 24px; margin: 0; padding: 3px; background: var(--n-300, #c9ccd2); border: 0; border-radius: 20px; cursor: pointer; }
.ysa-cookie-toggle::before { display: block; width: 18px; height: 18px; border-radius: 50%; background: #fff; content: ""; }
.ysa-cookie-toggle:checked { background: #008f7b; }
.ysa-cookie-toggle:checked::before { transform: translateX(16px); }
.ysa-cookie-preferences-actions { flex: 0 0 auto; padding: 18px 24px; border-top: 1px solid var(--n-150, #e9ebee); }
.ysa-cookie-status { position: fixed; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 540px) {
  .ysa-cookie-banner { left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 16px; }
  .ysa-cookie-preferences-head { padding: 18px 20px 12px; }
  .ysa-cookie-preferences-body { padding: 0 20px 18px; }
  .ysa-cookie-preferences-actions { padding: 16px 20px; }
}
