.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;
  }
}

.notice27-admin {
  max-width: 1120px;
}

.notice27-licence-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  margin: 28px 0;
  padding: 28px;
  border: 1px solid #c9d3d0;
  border-radius: 14px;
  background:
    radial-gradient(circle at 95% 5%, rgba(0, 51, 153, 0.08), transparent 18rem),
    #fff;
  box-shadow: 0 12px 36px rgba(18, 38, 33, 0.08);
}

.notice27-licence-card h2 {
  margin: 2px 0 8px;
  color: #15352e;
  font-size: 1.7rem;
}

.notice27-kicker {
  margin: 0;
  color: #003399;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice27-licence-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: end;
  gap: 8px;
}

.notice27-licence-actions form,
.notice27-licence-actions p.submit {
  margin: 0;
  padding: 0;
}

.notice27-key-form,
.notice27-status-grid,
.notice27-licence-card > .description {
  grid-column: 1 / -1;
}

.notice27-key-form {
  padding: 20px;
  border-radius: 10px;
  background: #f4f7f6;
}

.notice27-key-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.notice27-key-form > div {
  display: flex;
  gap: 8px;
}

.notice27-key-form input[type="text"] {
  width: min(100%, 480px);
  min-height: 40px;
  font-family: monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice27-key-form p.submit {
  margin: 0;
  padding: 0;
}

.notice27-staging-trial-form {
  display: grid;
  gap: 8px;
  max-width: 420px;
  padding: 16px;
  border: 1px solid #c9d3d0;
  border-radius: 10px;
  background: #f4f7f6;
}

.notice27-staging-trial-form label {
  color: #15352e;
  font-weight: 700;
}

.notice27-staging-trial-form input[type="text"] {
  min-height: 40px;
  width: 100%;
}

.notice27-staging-trial-form .description,
.notice27-staging-trial-form p.submit {
  margin: 0;
  padding: 0;
}

.notice27-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.notice27-status-grid > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce3e1;
  border-radius: 8px;
}

.notice27-status-grid dt {
  margin-bottom: 7px;
  color: #5f6f6b;
  font-size: 0.75rem;
  font-weight: 700;
}

.notice27-status-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 782px) {
  .notice27-licence-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .notice27-licence-actions,
  .notice27-key-form,
  .notice27-status-grid,
  .notice27-licence-card > .description {
    grid-column: 1;
  }

  .notice27-licence-actions {
    justify-content: start;
  }

  .notice27-key-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .notice27-status-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .notice27-status-grid {
    grid-template-columns: 1fr;
  }
}
