/* Reusable AI room-image-generation module styles.
   Deliberately generic/neutral -- override these custom properties per site
   (e.g. to match FloorOttawa's wood tones vs CabinetOttawa's palette) rather
   than editing this file directly, so upstream updates stay a drop-in. */

.img-gen {
  --img-gen-accent: #2f6f4f;
  --img-gen-accent-contrast: #ffffff;
  --img-gen-border: #d8d8d2;
  --img-gen-bg: #ffffff;
  --img-gen-text: #1f1f1c;
  --img-gen-muted: #6b6b63;
  --img-gen-error: #b3261e;
  --img-gen-radius: 10px;

  max-width: 480px;
  padding: 20px;
  border: 1px solid var(--img-gen-border);
  border-radius: var(--img-gen-radius);
  background: var(--img-gen-bg);
  color: var(--img-gen-text);
  font: inherit;
}

.img-gen--disabled {
  padding: 12px 16px;
}
.img-gen__disabled-note {
  color: var(--img-gen-muted);
  font-size: 0.85rem;
  margin: 0;
}

.img-gen__title {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.img-gen__quota {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--img-gen-muted);
}

.img-gen__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 10px 0 4px;
}

.img-gen__room-type,
.img-gen__prompt,
.img-gen__file {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--img-gen-border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.img-gen__tabs {
  display: flex;
  gap: 8px;
  margin: 14px 0 12px;
}
.img-gen__tab {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--img-gen-border);
  border-radius: 8px;
  background: #f7f7f4;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}
.img-gen__tab.is-active {
  background: var(--img-gen-accent);
  color: var(--img-gen-accent-contrast);
  border-color: var(--img-gen-accent);
}

.img-gen__preview {
  margin-top: 8px;
}
.img-gen__preview-img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
  display: block;
}

.img-gen__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--img-gen-muted);
  margin: 14px 0;
  line-height: 1.4;
}
.img-gen__consent input {
  margin-top: 2px;
  flex-shrink: 0;
}

.img-gen__turnstile {
  margin: 10px 0;
}

.img-gen__submit {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 8px;
  background: var(--img-gen-accent);
  color: var(--img-gen-accent-contrast);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.img-gen__submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.img-gen__loading {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--img-gen-muted);
  text-align: center;
}

.img-gen__error {
  margin: 10px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fbeceb;
  color: var(--img-gen-error);
  font-size: 0.82rem;
}

.img-gen__result-img {
  width: 100%;
  border-radius: var(--img-gen-radius);
  display: block;
  margin: 10px 0;
}

.img-gen__result-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.img-gen__download,
.img-gen__retry {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--img-gen-border);
}
.img-gen__download {
  background: var(--img-gen-accent);
  color: var(--img-gen-accent-contrast);
  border-color: var(--img-gen-accent);
}
.img-gen__retry {
  background: #fff;
  color: var(--img-gen-text);
}
