/* Galactic Bridge — compact product alert. Strictly limited to this widget. */
.gb-product-notice {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px 14px;
  margin: 7px 0 9px;
  padding: 8px 12px;
  border: 1px solid #bcd3ed;
  border-radius: 13px;
  color: #17395e;
  background: linear-gradient(105deg, #eff6ff 0%, #fafcff 100%);
  box-shadow: 0 2px 9px rgba(33, 77, 121, .035);
  font-size: 13px;
  line-height: 1.35;
}
.gb-product-notice[hidden],
.gb-product-notice button[hidden] { display: none !important; }
.gb-product-notice p {
  min-width: 0;
  margin: 0;
  font-size: inherit;
  font-weight: 550;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.gb-product-notice .gb-notice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.gb-product-notice button {
  box-sizing: border-box;
  min-height: 38px;
  max-width: 100%;
  padding: 7px 11px;
  border: 1px solid #b3cde8;
  border-radius: 9px;
  background: #fff;
  color: #164676;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.gb-product-notice .gb-notice-primary {
  color: #fff;
  background: #175da8;
  border-color: #175da8;
}
.gb-product-notice .gb-notice-primary:hover { background: #104d8d; }
.gb-product-notice button:not(.gb-notice-primary):hover { background: #eef6ff; }
.gb-product-notice button:focus-visible { outline: 3px solid #398bf0; outline-offset: 2px; }
.gb-product-notice .gb-notice-muted { font-size: 11px; color: #506987; }
@media (max-width: 720px) {
  .gb-product-notice {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 9px 11px;
    margin: 7px 0 8px;
    border-radius: 12px;
    font-size: 12px;
  }
  .gb-product-notice .gb-notice-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }
  .gb-product-notice button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 5px 6px;
    font-size: 11px;
  }
  /* When only the opt-in sound control is visible, don't waste an entire row. */
  .gb-product-notice .gb-notice-actions:has(> .gb-notice-primary[hidden]) {
    display: flex;
    justify-content: flex-start;
  }
  .gb-product-notice .gb-notice-actions:has(> .gb-notice-primary[hidden]) button:not([hidden]) {
    width: auto;
    padding-inline: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gb-product-notice * { transition: none !important; animation: none !important; }
}

/* 2026-11-23 compact refinement: alert only; no JS, data or logic changes. */
.gb-product-notice {
  margin: 5px 0 7px;
  min-height: 40px;
  gap: 5px 10px;
  padding: 5px 10px;
  border-radius: 10px;
  background: #f8fbff;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.25;
}
.gb-product-notice p { font-size: 12px; line-height: 1.25; font-weight: 550; }
.gb-product-notice .gb-notice-actions { gap: 5px; }
.gb-product-notice button {
  min-height: 32px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.1;
}
@media (max-width: 720px) {
  .gb-product-notice {
    grid-template-columns: minmax(0, 1fr);
    margin: 5px 0 7px;
    padding: 7px 9px;
    gap: 5px;
    min-height: 0;
    border-radius: 10px;
    font-size: 12px;
  }
  .gb-product-notice .gb-notice-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 5px;
  }
  .gb-product-notice button {
    width: 100%;
    min-height: 35px;
    padding: 5px 5px;
    font-size: 11px;
  }
}

@media (max-width: 355px) {
  .gb-product-notice button { font-size: 10px; }
}
/* Compact idle alert; the explanatory status and sound preference remain visible. */
.gb-product-notice:not(.has-alert) {grid-template-columns:minmax(0,1fr) auto;gap:5px;padding:5px 8px;min-height:0;}
.gb-product-notice:not(.has-alert) .gb-notice-actions {display:flex;width:auto;justify-content:flex-end;}
.gb-product-notice:not(.has-alert) p {font-size:11px;line-height:1.22;}
.gb-product-notice.stale {background:#f4f5f7;border-color:#d2dae3;}
@media(max-width:720px){.gb-product-notice:not(.has-alert) button {width:auto;min-height:36px;max-width:100%;}.gb-product-notice.has-alert button{min-height:40px;}}

/* Compact alert strip; do not change its behavior, country watermark or sound. */
.gb-product-notice {margin:3px 0 4px;padding:3px 5px;border:0;border-radius:6px;gap:3px 8px;box-shadow:none;background:#f4f8fc;}
.gb-product-notice p {font-size:12px;line-height:1.25;}
.gb-product-notice.stale {background:#f4f5f7;border:0;}
@media(max-width:720px){
 .gb-product-notice,.gb-product-notice:not(.has-alert) {padding:3px 4px;margin:2px 0 4px;gap:3px 5px;border-radius:6px;}
 .gb-product-notice.has-alert .gb-notice-actions {gap:4px;}
 .gb-product-notice button,.gb-product-notice.has-alert button,.gb-product-notice:not(.has-alert) button {min-height:44px;padding:3px 4px;font-size:11px;line-height:1.15;}
 .gb-product-notice:not(.has-alert) .gb-notice-actions {max-width:126px;}
}
