.flowride-consent{
  width:min(440px, calc(100% - 2 * var(--space-2)));
  max-width:none;
  max-height:calc(100dvh - 2 * var(--space-2));
  margin:auto;
  overflow-y:auto;
  padding:var(--space-2);
  border:0;
  outline:0;
  background:var(--bricks-color-ygrnej);
  color:var(--bricks-color-eqcrjq);
  box-shadow:0 12px 40px rgba(0,0,0,.18);
  font-size:15px;
  line-height:1.45;
}

.flowride-consent::backdrop{
  background:rgba(0,0,0,.35);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
}

/* The gutter keeps the page from shifting when its scrollbar goes away. */
html:has(.flowride-consent[open]){
  overflow:hidden;
  scrollbar-gutter:stable;
}

.flowride-consent [hidden]{
  display:none !important;
}

.flowride-consent__title{
  margin:0 0 var(--space-1);
  font-weight:700;
  font-size:1.15em;
  text-transform:uppercase;
}

.flowride-consent__text{
  margin:0;
}

.flowride-consent__text a{
  color:inherit;
  font-weight:700;
  text-decoration:none;
}

.flowride-consent__settings{
  display:flex;
  flex-direction:column;
  gap:var(--space-1);
  margin-top:var(--space-2);
}

.flowride-consent__option{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-2);
  padding:12px 14px;
  background:var(--kurzy-input-disabled-bg);
  cursor:pointer;
}

/* Theme styles every label grey and small. */
.flowride-consent label.flowride-consent__option{
  margin:0;
  color:inherit;
  font-size:inherit;
  line-height:inherit;
}

.flowride-consent__option-text{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.flowride-consent__option-text span{
  font-size:.9em;
}

.flowride-consent__option input{
  position:absolute;
  opacity:0;
  width:0;
  height:0;
}

.flowride-consent__switch{
  position:relative;
  flex-shrink:0;
  width:42px;
  height:24px;
  border-radius:12px;
  background:#c4c4c4;
  transition:background .15s ease;
}

.flowride-consent__switch::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--bricks-color-ygrnej);
  transition:transform .15s ease;
}

.flowride-consent__option input:checked + .flowride-consent__switch{
  background:var(--bricks-color-eqcrjq);
}

.flowride-consent__option input:checked + .flowride-consent__switch::after{
  transform:translateX(18px);
}

.flowride-consent__option input:disabled + .flowride-consent__switch{
  opacity:.45;
}

.flowride-consent__option input:focus-visible + .flowride-consent__switch{
  outline:2px solid var(--bricks-color-eqcrjq);
  outline-offset:2px;
}

.flowride-consent__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--space-1);
  margin-top:var(--space-2);
}

.flowride-consent__button{
  padding:12px 16px;
  border:0;
  border-radius:0;
  background:var(--bricks-color-eqcrjq);
  color:var(--bricks-color-ygrnej);
  font:inherit;
  font-weight:700;
  text-transform:uppercase;
  cursor:pointer;
}

.flowride-consent__button:hover{
  background:#333;
}

.flowride-consent__button--save{
  grid-column:1 / -1;
}

.flowride-consent__link{
  grid-column:1 / -1;
  justify-self:center;
  padding:6px 8px;
  border:0;
  background:none;
  color:inherit;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.flowride-consent__button:focus-visible,
.flowride-consent__link:focus-visible{
  outline:2px solid var(--bricks-color-eqcrjq);
  outline-offset:2px;
}

@media (max-width:478px){
  .flowride-consent{
    width:calc(100% - 2 * var(--space-1));
  }
}

/* Placeholder of a YouTube video in an article until it is loaded (Consent\Embeds). */
.flowride-video{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:var(--space-1);
  width:100%;
  aspect-ratio:16 / 9;
  padding:var(--space-1);
  background:var(--bricks-color-eqcrjq);
  color:var(--bricks-color-ygrnej);
  text-align:center;
  cursor:pointer;
}

.wp-embed-responsive .wp-has-aspect-ratio .flowride-video{
  position:absolute;
  inset:0;
  height:100%;
  aspect-ratio:auto;
}

.flowride-video__play{
  padding:12px 16px;
  border:0;
  border-radius:0;
  background:var(--bricks-color-ygrnej);
  color:var(--bricks-color-eqcrjq);
  font:inherit;
  font-weight:700;
  text-transform:uppercase;
  cursor:pointer;
}

.flowride-video__play:focus-visible{
  outline:2px solid var(--bricks-color-ygrnej);
  outline-offset:2px;
}

.flowride-video__note{
  font-size:.9em;
}
