.notice27 {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--notice27-max-width, 700px);
  margin: 1rem auto;
  overflow: hidden;
  border: 1px solid #ccd4df;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  box-shadow: 0 4px 18px rgba(23, 32, 51, 0.08);
  font-family: inherit;
  text-align: left;
}

.notice27 *,
.notice27 *::before,
.notice27 *::after {
  box-sizing: border-box;
}

.notice27--full {
  padding: clamp(0.5rem, 2vw, 0.875rem);
}

.notice27__disclosure {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

.notice27__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  min-height: 72px;
  margin: 0;
  padding: 0.75rem 0.875rem;
  border: 0;
  border-radius: 7px;
  background: #f7f9fc;
  color: #172033;
  cursor: pointer;
  list-style-position: inside;
}

.notice27__summary:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: -3px;
}

.notice27__summary-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.125rem;
}

.notice27__title {
  color: #172033;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.notice27__summary-description {
  color: #4b5870;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.35;
}

.notice27__action {
  color: #1649b8;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.notice27__panel {
  padding: clamp(0.5rem, 2vw, 0.875rem);
  border-top: 1px solid #dce2eb;
  background: #fff;
}

.notice27 img.notice27__image,
.woocommerce .notice27 img.notice27__image {
  /*
   * The official notice must not inherit storefront image effects. These
   * narrowly scoped invariants intentionally outrank common WooCommerce theme
   * rules, including important rules, without affecting any other image.
   */
  display: block !important;
  width: 100% !important;
  max-width: var(--notice27-max-width, 700px) !important;
  max-height: none !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  clip-path: none !important;
  filter: none !important;
  transform: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  mix-blend-mode: normal !important;
}

.notice27__source {
  margin: 0.75rem 0 0;
  color: #354056;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.notice27__source a {
  color: #1649b8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.notice27__source a:focus-visible {
  border-radius: 2px;
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.notice27--sitewide {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.notice27-block-fallback {
  width: 100%;
  clear: both;
}

@media (max-width: 480px) {
  .notice27 {
    max-width: 100%;
    margin: 0.75rem auto;
    border-radius: 6px;
  }

  .notice27__summary {
    gap: 0.5rem;
    min-height: 68px;
    padding: 0.625rem 0.75rem;
  }

  .notice27__summary-description {
    font-size: 0.75rem;
  }

  .notice27__action {
    max-width: 7.5rem;
    white-space: normal;
  }

  .notice27--full,
  .notice27__panel {
    padding: 0.375rem;
  }
}

@media print {
  .notice27 {
    max-width: 100%;
    border: 0;
    box-shadow: none;
  }

  .notice27__summary {
    display: none;
  }

  .notice27__panel {
    display: block !important;
    border: 0;
  }
}
