/* Keep original Estes styles intact; prototype behavior and accessibility only. */
:focus-visible { outline: 3px solid #0072ce; outline-offset: 3px; }
.glide__arrow { background: transparent; border: 0; color: white; cursor: pointer; }
.prototype-form-note { font-size: 12px; color: #666; margin: 8px 0 0; }
#prototype-dialog { width: min(560px, calc(100% - 32px)); padding: 40px; border: 0; border-top: 7px solid #fcd116; box-shadow: 0 16px 70px #0006; color: #222; }
#prototype-dialog::backdrop { background: #0009; }
#prototype-dialog h2 { margin: 16px 0; font-size: 28px; }
#prototype-dialog p { font-size: 16px; line-height: 1.6; }
#prototype-dialog .btn { display: block; margin-top: 16px; white-space: normal; }
#prototype-dialog [hidden] { display:none; }
.prototype-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.1px; }
.prototype-close { position:absolute; right:12px; top:8px; font-size:28px; background:none; border:0; cursor:pointer; }
@media(max-width:991px) {
  #main-nav.shell-menu-open { display:block!important; left:0!important; transform:none!important; max-height:calc(100dvh - 60px); overflow-y:auto; }
}
@media(max-width:767px) {
  #prototype-dialog { padding:28px 22px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; } }

@media (max-width: 767px) {
  /* Let the longest slide set the height, including when text is enlarged. */
  #homepage-hero .glide__slides {
    display: grid;
    min-height: 0;
  }
  #homepage-hero .glide__slide {
    grid-area: 1 / 1;
    position: relative;
    height: auto;
    min-height: 0;
  }
  #homepage-hero .bg-img,
  #homepage-hero .overlay {
    height: 100%;
    min-height: 0;
  }
  #homepage-hero .overlay .container,
  #homepage-hero .overlay .row { min-height: 100%; }
  #homepage-hero .overlay .row { padding-block: 1.5rem; }
  #homepage-hero .hero-title { font-size: clamp(1.5rem, 6.4vw, 2rem); line-height: 1.12; }
  #homepage-hero .hero-subtitle { margin-bottom: 1rem; line-height: 1.35; }
  #homepage-hero #homepage-tracking-widget-a { margin-top: 1rem; }

  #homepage-tracking-form .input-group {
    display: grid;
    gap: .5rem;
  }
  #homepage-tracking-form #pro-number { width: 100%; margin: 0; }
  #homepage-tracking-form .input-group-append {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem;
    margin: 0;
  }
  #homepage-hero #homepage-tracking-widget-a .card .selectdiv,
  #homepage-hero #homepage-tracking-widget-a .card .selectdiv select { width: 100%; }
  #homepage-hero #homepage-tracking-widget-a .card .selectdiv select { padding: 0 1.5rem 0 .625rem; }
  #homepage-tracking-form #home-btn-track-now { margin-bottom: 0 !important; }
  #homepage-tracking-form .tracking-links { margin-top: .75rem; }
}

/* Keep the accessible label in place while the user edits its field. */
:is(.float-labels, .floating-label, mat-form-field):has(
  :is(input, textarea)[placeholder]:is(:focus, :not(:placeholder-shown))
) label:not(.mdc-floating-label--float-above) {
  opacity: 0 !important;
  pointer-events: none;
}

@media (max-width: 767px) {
  #content img[width] { max-width: 100%; height: auto; }
  #content :is(p, a, h1, h2, h3, h4, td, th) { overflow-wrap: anywhere; }
  #content .container > .row.faqs.widget { margin-inline: -12px; }
  #content table[width] { max-width: 100%; }
  #content table.table-striped th, #content table.table-striped td { padding: .55rem; vertical-align: top; }
  #homepage-hero .glide:not(.glide--carousel) .glide__slide:first-child { opacity: 1; }
}
@media (max-width: 767px) {
  #content a.btn { max-width: 100%; white-space: normal; }
}

[data-request-panel] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  padding: .875rem 1rem;
  margin: 1rem 0;
  border: 1px solid #bdc9d1;
  border-radius: .375rem;
  color: #203746;
  background: #f6f8fa;
}
[data-request-panel][hidden] { display: none; }
[data-request-panel][data-state="success"] { background: #eff8f2; border-color: #90b89c; color: #16452c; }
[data-request-panel][data-state="error"] { background: #fff5f4; border-color: #c88c85; color: #792d24; }
[data-request-panel] [role="status"] { flex: 1 1 12rem; }
