.yutel-consent-banner[hidden] { display: none; }

.yutel-consent-banner,
.yutel-consent-dialog {
  box-sizing: border-box;
  color: #142235;
  background: #fff;
  border: 1px solid #9fbfdd;
  border-radius: 1rem;
  box-shadow: 0 12px 35px #08132133;
  padding: 1rem;
  font: 400 1rem/1.5 system-ui, sans-serif;
}

.yutel-consent-banner {
  position: fixed;
  z-index: 10000;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(34rem, calc(100% - 2rem));
}
.yutel-consent-dialog {
  margin: auto;
  width: min(34rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
}
.yutel-consent-dialog::backdrop { background: #081321a0; }
:is(.yutel-consent-banner, .yutel-consent-dialog) h2 {
  color: #142235;
  font: 750 1.2rem/1.3 system-ui, sans-serif;
  margin: 0 0 .35rem;
}
:is(.yutel-consent-banner, .yutel-consent-dialog) p {
  margin: 0 0 .75rem;
  font-size: .92rem;
}
.yutel-consent-banner a { color: #184f9a; text-decoration: underline; }
.yutel-consent-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.yutel-consent-actions button,
.yutel-external-video-note button {
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid #2162b2;
  border-radius: .55rem;
  background: #eef6ff;
  color: #16447c;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}
.yutel-consent-actions button:hover,
.yutel-external-video-note button:hover { background: #dcecff; }
:is(.yutel-consent-banner, .yutel-consent-dialog, .yutel-external-video-note) :focus-visible {
  outline: 2px solid #175fb2;
  outline-offset: 2px;
}
.yutel-consent-dialog fieldset { border: 0; padding: 0; margin: 0 0 .85rem; }
.yutel-consent-dialog legend { font-weight: 750; margin-bottom: .3rem; }
.yutel-consent-dialog label { display: flex; align-items: flex-start; gap: .65rem; padding: .4rem 0; }
.yutel-consent-dialog input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: #2162b2; flex: none; }
.yutel-consent-dialog small { display: block; color: #344b63; font-size: .84rem; }
.yutel-external-video-note {
  position: absolute;
  z-index: 2;
  inset: auto .7rem .7rem;
  padding: .5rem;
  border-radius: .5rem;
  text-align: center;
  background: #081321e8;
  color: #fff;
  font: 600 .8rem/1.4 system-ui, sans-serif;
}
.yutel-external-video-note a { color: #c6e5ff; text-decoration: underline; }

.yutel-chat-launcher[hidden] { display: none; }
.yutel-chat-launcher {
  position: fixed;
  z-index: 9990;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: calc(100vw - 2rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.yutel-chat-launcher img {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 4px 14px #08132145;
}
.yutel-chat-hint {
  padding: .38rem .55rem;
  border-radius: .65rem;
  background: #194f91;
  box-shadow: 0 3px 9px #08132135;
  text-align: left;
  font: 650 .75rem/1.25 system-ui, sans-serif;
}
.yutel-chat-launcher.yutel-chat-has-widget {
  right: var(--yutel-widget-right, 78px);
  bottom: var(--yutel-widget-bottom, 1rem);
  max-width: min(12rem, calc(100vw - 8rem));
}
.yutel-chat-has-widget img { display: none; }
.yutel-chat-launcher:focus-visible { outline: 2px solid #599fe0; outline-offset: 4px; }
.yutel-chat-launcher[aria-busy="true"] .yutel-chat-hint { font-size: 0; }
.yutel-chat-launcher[aria-busy="true"] .yutel-chat-hint::after { content: "Učitavanje…"; font-size: .75rem; }
.yutel-chat-contact { display: inline-block; margin-top: .6rem; color: #184f9a; text-decoration: underline; }

@media (max-width: 710px) {
  .yutel-chat-launcher:not(.yutel-chat-has-widget) {
    bottom: calc(max(1rem, env(safe-area-inset-bottom)) + var(--yutel-banner-height, 0px));
  }
}
@media (prefers-reduced-motion: no-preference) {
  html.yutel-chat-nudge .yutel-chat-launcher img,
  html.yutel-chat-nudge #VG_OVERLAY_CONTAINER .vg-open-btn img {
    animation: yutel-chat-nudge .55s ease-in-out 2;
  }
  @keyframes yutel-chat-nudge {
    0%, 100% { rotate: 0deg; }
    25% { rotate: 7deg; }
    75% { rotate: -7deg; }
  }
}
