/* Product shipping / terms notices (inc/product-notices.php). */

.ahe-notices{
  margin:24px 0 0;
  padding:18px 20px;
  border:1px solid var(--gray-200);
  border-left:4px solid var(--red);
  border-radius:var(--radius);
  background:var(--gray-50);
  font-size:.9rem;
  line-height:1.55;
  color:var(--gray-700);
}
.ahe-notices__head{margin:0 0 12px;color:var(--ink)}
.ahe-notices__head strong{color:var(--red);font-weight:700}
.ahe-notices__brand{
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:var(--radius);
  background:var(--white);
  border:1px solid var(--gray-200);
}
.ahe-notices__brand p{margin:0 0 .6em}
.ahe-notices__brand p:last-child{margin-bottom:0}

.ahe-notices__btn{
  display:inline-block;
  margin-top:4px;
  padding:10px 20px;
  border:0;
  border-radius:var(--radius);
  background:var(--red);
  color:var(--white);
  font-family:var(--font-head);
  font-weight:700;
  font-size:.86rem;
  letter-spacing:.02em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .15s ease;
}
.ahe-notices__btn:hover,
.ahe-notices__btn:focus-visible{background:var(--red-dark)}

/* Dialog ----------------------------------------------------------------- */
.ahe-notices__dialog{
  width:min(760px,calc(100vw - 32px));
  max-height:min(80vh,900px);
  padding:0;
  border:0;
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
  color:var(--gray-700);
  overflow:hidden;
}
.ahe-notices__dialog::backdrop{background:rgba(0,0,0,.55)}
.ahe-notices__dialog-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 22px;
  background:var(--red);
  color:var(--white);
}
.ahe-notices__dialog-head h2{
  margin:0;
  font-family:var(--font-head);
  font-size:1.1rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:var(--white);
}
.ahe-notices__close{
  flex:0 0 auto;
  width:32px;height:32px;
  display:grid;place-items:center;
  border:0;border-radius:50%;
  background:rgba(255,255,255,.15);
  color:var(--white);
  font-size:1.4rem;line-height:1;
  cursor:pointer;
}
.ahe-notices__close:hover,
.ahe-notices__close:focus-visible{background:rgba(255,255,255,.3)}
.ahe-notices__dialog-body{
  /* 80vh cap minus the header, so long copy scrolls inside the dialog
     rather than pushing the close button off screen. */
  max-height:calc(min(80vh,900px) - 64px);
  overflow-y:auto;
  padding:22px;
  font-size:.9rem;
  line-height:1.6;
}
.ahe-notices__dialog-body p{margin:0 0 1em}
.ahe-notices__dialog-body p:last-child{margin-bottom:0}
.ahe-notices__dialog-body strong{color:var(--ink)}

@media(max-width:600px){
  .ahe-notices{padding:14px 16px}
  .ahe-notices__dialog-head{padding:14px 16px}
  .ahe-notices__dialog-body{padding:16px}
}
