/* Shared chrome for the two web app pages (studio + store).
   Page-specific tweaks live in studio/web-studio.css and
   pricing/web-pricing.css. */

/* ---------------- Sign in with Google ----------------
   Google's light-theme button: white face, #747775 hairline, #1f1f1f label at
   14px medium, an 18px mark, 40px tall, 4px radius. The measurements are the
   branding guidelines' and are why this does not inherit the page's buttons —
   a nearly-right Google button is worse than none. */

.gsi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  min-width: 200px;
  padding: 0 12px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.gsi-button:hover:not(:disabled) {
  /* Google specifies a subtle state layer rather than a colour change. */
  background: #f7f8f8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.gsi-button:active:not(:disabled) {
  background: #f1f3f4;
}

.gsi-button:focus-visible {
  outline: 2px solid #7aa8ff;
  outline-offset: 2px;
}

.gsi-button:disabled {
  opacity: 0.62;
  cursor: default;
}

.gsi-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.gsi-label {
  /* Google asks that the label never wrap or be truncated. */
  white-space: nowrap;
}

/* ---------------- Sign-in prompt dialog ----------------
   Shown when something that needs an account is pressed while signed out —
   buying minutes, above all. It explains why the account is wanted before the
   Google popup appears, rather than springing one on the buyer. */

.web-prompt::backdrop {
  background: rgba(5, 15, 17, 0.72);
}

.web-prompt {
  width: min(420px, 92vw);
  padding: 26px 26px 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: #173035;
  color: #f3f7f6;
  font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
  text-align: center;
}

.web-prompt h2 {
  margin: 0 0 10px;
  font-size: 19px;
}

.web-prompt p {
  margin: 0 0 8px;
  color: #9bb0b4;
  font-size: 14px;
  line-height: 1.6;
}

.web-prompt .web-prompt-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.web-prompt .web-prompt-cancel {
  border: none;
  background: none;
  color: #9bb0b4;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.web-prompt .web-prompt-cancel:hover {
  color: #f3f7f6;
}

.web-prompt .web-prompt-error {
  margin-top: 12px;
  color: #ff8f8f;
  font-size: 13px;
}
