/* Scoped decoration only: never style, clip, cover or resize Google's iframe. */
.jrv-portal-ad,
.jrv-ad-privacy,
.jrv-ad-privacy * {
  box-sizing: border-box;
}

.jrv-portal-ad {
  background: #f8fbfc;
  border: 1px solid #dce9eb;
  border-radius: 16px;
  clear: both;
  color: #45616c;
  display: block;
  margin: 32px 0;
  max-width: 100%;
  min-width: 0;
  padding: 12px 14px 14px;
  position: relative;
  width: 100%;
}

.jrv-portal-ad__label {
  color: #58727d;
  display: block;
  font-family: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  margin: 0 0 9px;
  text-align: center;
  text-transform: uppercase;
}

.jrv-portal-ad__body {
  min-height: 90px;
  min-width: 0;
  width: 100%;
}

.jrv-portal-ad[data-jrv-ad-state="filled"] .jrv-portal-ad__body {
  min-height: 0;
}

.jrv-portal-ad[data-jrv-ad-state="pending"],
.jrv-portal-ad[data-jrv-ad-state="ineligible"],
.jrv-portal-ad[data-jrv-ad-state="unavailable"],
.jrv-portal-ad[data-jrv-ad-state="unfilled"],
.jrv-portal-ad[data-jrv-ad-state="revoked"] {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 1px;
  margin: 0;
  padding: 0;
}

.jrv-portal-ad [hidden],
.jrv-ad-privacy[hidden],
.jrv-ad-privacy [hidden] {
  display: none !important;
}

.jrv-portal-ad .jrv-portal-ad__preview {
  align-items: center;
  color: #58727d;
  display: flex;
  font-size: 12px;
  justify-content: center;
  line-height: 1.5;
  margin: 0;
  min-height: 90px;
  padding: 14px;
  text-align: center;
}

.jrv-ad-privacy {
  align-items: center;
  background: #f0f8f7;
  border: 1px solid #d5e8e6;
  border-radius: 14px;
  color: #244752;
  display: flex;
  flex-wrap: wrap;
  gap: 13px 20px;
  margin: 22px 0;
  padding: 16px 18px;
}

.jrv-ad-privacy .jrv-ad-privacy__text {
  color: inherit;
  flex: 1 1 280px;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}

.jrv-ad-privacy__actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.jrv-ad-privacy__choice {
  background: #fff;
  border: 1px solid #8eafac;
  border-radius: 9px;
  color: #153f45;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  min-height: 42px;
  padding: 10px 14px;
}

.jrv-ad-privacy__manage {
  background: transparent;
  border: 0;
  color: #164b50;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
  min-height: 36px;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jrv-ad-privacy__policy {
  color: #164b50;
  font-size: 10px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jrv-ad-privacy__choice:focus-visible,
.jrv-ad-privacy__manage:focus-visible,
.jrv-ad-privacy__policy:focus-visible {
  outline: 3px solid #ed975d;
  outline-offset: 3px;
}

.jrv-ad-privacy.is-compact {
  background: transparent;
  border: 0;
  gap: 6px 14px;
  margin: 12px 0;
  padding: 0;
}

.jrv-ad-privacy.is-compact .jrv-ad-privacy__text {
  font-size: 10px;
}

@media (max-width: 600px) {
  .jrv-portal-ad {
    border-radius: 12px;
    margin: 24px 0;
    padding: 10px 8px 12px;
  }

  .jrv-portal-ad__body {
    min-height: 100px;
  }

  .jrv-ad-privacy {
    border-radius: 12px;
    padding: 13px;
  }

  .jrv-ad-privacy__text {
    flex-basis: 100%;
  }
}
