.upo-consent-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 9999;
  padding: 1rem;
  background: var(--md-default-bg-color);
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.upo-consent-actions button {
  padding: .4rem .8rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.3);
  background: transparent;
  cursor: pointer;
}

.upo-consent-actions .primary {
  background: var(--md-primary-fg-color);
  color: white;
  border: none;
}

/* Footer link */
.upo-cookie-footer {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.upo-cookie-link {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: .25rem .5rem;
  text-decoration: underline;
  color: var(--md-default-fg-color);
  font: inherit;
}

/* Link-like button */
.upo-linklike {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  color: var(--md-typeset-a-color);
  font: inherit;
}

/* Banner */
.upo-consent-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  background: var(--md-default-bg-color);
  border: 1px solid rgba(0,0,0,.15);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.upo-consent-banner__text {
  max-width: 860px;
  line-height: 1.35;
}
.upo-consent-banner__links {
  margin-top: .35rem;
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
}
.upo-consent-banner__actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Modal */
.upo-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}
.upo-modal.is-open { display: block; }

.upo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}

.upo-modal__panel {
  position: relative;
  max-width: 720px;
  margin: 6vh auto;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.15);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
  overflow: hidden;
}

.upo-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.upo-modal__title {
  font-weight: 700;
  font-size: 1.05rem;
}
.upo-modal__subtitle {
  font-size: .85rem;
  opacity: .85;
  margin-top: .2rem;
}
.upo-modal__close {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 .3rem;
}

.upo-modal__body { padding: 14px 16px; }
.upo-modal__footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(0,0,0,.12);
}

.upo-small { font-size: .85rem; opacity: .85; }

/* Row */
.upo-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
}
.upo-row__name { font-weight: 700; }
.upo-row__desc { opacity: .9; font-size: .92rem; margin-top: .15rem; }

.upo-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.upo-links {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Switch (toggle) */
.upo-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.upo-switch input { display: none; }

.upo-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(0,0,0,.25);
  border-radius: 999px;
  transition: .2s;
}
.upo-switch__slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .2s;
}
.upo-switch input:checked + .upo-switch__slider {
  background: var(--md-primary-fg-color);
}
.upo-switch input:checked + .upo-switch__slider:before {
  transform: translateX(20px);
}
