.ad-slot {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #6b7280;
  text-align: center;
  contain: layout style;
  box-sizing: border-box;
}

.ad-slot.is-unfilled,
.ad-slot.is-disabled,
.ad-slot[hidden] {
  display: none !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.ad-slot__label {
  display: block;
  margin: 0 0 0.4rem;
  color: #8a8a8a;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.ad-slot__unit {
  display: block;
  width: 100%;
}

.ad-slot__placeholder {
  display: grid;
  min-height: inherit;
  place-items: center;
  border: 1px dashed #cfd2d6;
  border-radius: 0.5rem;
  background: #f7f7f7;
  color: #777;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ad-slot--homepage-banner {
  width: min(100%, 68rem);
  min-height: 90px;
  margin: 2.25rem auto 0;
}

.ad-tool-page-shell {
  position: relative;
  width: 100%;
  min-width: 0;
}

.ad-tool-main {
  width: min(100%, 67rem);
  margin-inline: auto;
  min-width: 0;
}

.ad-tool-rail {
  display: none;
  min-width: 0;
}

.ad-tool-rail__sticky {
  position: sticky;
  top: calc(var(--header-offset, 72px) + 1.25rem);
  display: grid;
  gap: 1.5rem;
  max-height: calc(100vh - var(--header-offset, 72px) - 2.5rem);
  overflow: hidden;
}

.ad-slot--tool-left-sidebar {
  min-height: 500px;
}

.ad-slot--result-left-rectangle,
.ad-slot--result-inline,
.ad-slot--result-mobile-rectangle {
  min-height: 250px;
}

.ad-slot--tool-inline,
.ad-slot--processing-banner,
.ad-slot--result-inline,
.ad-slot--result-mobile-rectangle {
  width: min(100%, 45.5rem);
  margin-inline: auto;
}

.ad-slot--tool-inline {
  min-height: 90px;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.ad-slot--processing-banner {
  min-height: 90px;
  margin-top: 2rem;
}

.ad-slot--result-inline,
.ad-slot--result-mobile-rectangle {
  min-height: 250px;
  margin-top: 2rem;
}

[data-adsense-tool-page] [data-ad-states] {
  display: none;
}

[data-adsense-tool-page][data-ad-state="input"] [data-ad-states~="input"],
[data-adsense-tool-page][data-ad-state="upload"] [data-ad-states~="upload"],
[data-adsense-tool-page][data-ad-state="processing"] [data-ad-states~="processing"],
[data-adsense-tool-page][data-ad-state="result"] [data-ad-states~="result"],
[data-adsense-tool-page][data-ad-state="error"] [data-ad-states~="error"] {
  display: block;
}

@media (min-width: 90rem) {
  .ad-tool-page-shell {
    display: block;
  }

  .ad-tool-rail--left {
    display: block;
    position: absolute;
    top: 0;
    right: calc(50% + 34.5rem);
    width: min(12rem, calc(50% - 34.5rem - 1rem));
  }
}

@media (min-width: 100rem) {
  .ad-slot--tool-left-sidebar {
    min-height: 600px;
  }
}

@media (max-width: 79.999rem) {
  .ad-tool-page-shell {
    display: block;
  }
}

@media (max-width: 47.999rem) {
  .ad-slot--homepage-banner {
    min-height: 100px;
    margin-top: 1.75rem;
  }

  .ad-slot--tool-inline,
  .ad-slot--processing-banner {
    min-height: 100px;
    margin-top: 1.5rem;
  }

  .ad-slot--result-inline,
  .ad-slot--result-mobile-rectangle {
    min-height: 250px;
    margin-top: 1.75rem;
  }

  .tool-flow-result-ad:not([hidden]) {
    width: min(100%, 22rem);
    min-height: 100px;
    margin: 1.5rem auto 0;
  }

  .tool-flow-result-ad > .ad-slot {
    margin-top: 0;
  }

  .adsense-anchor-enabled {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .adsense-anchor-enabled .ad-slot--tool-inline {
    display: none !important;
  }
}

@media (max-width: 20rem) {
  .ad-slot {
    max-width: 100%;
  }
}
