/* TTCalc product photo generator */
body.tool-calc .calc-field textarea {
  width: 100%;
  min-height: 104px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

body.tool-calc .calc-field textarea::placeholder { color: rgba(255, 255, 255, .4); }

body.tool-calc .calc-field textarea:focus {
  outline: none;
  border-color: var(--brand-1, #F97316);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .2);
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.primary-button {
  flex: 1;
  min-width: 170px;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #111114;
  font: 500 15px/1 var(--font-body);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s var(--ease);
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .6);
}

.primary-button:disabled {
  opacity: .65;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.ghost-button {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 500 14px/1 var(--font-body);
  cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .24);
}

.photo-status {
  min-height: 20px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
}

.photo-status.is-busy { color: rgba(255, 255, 255, .8); }
.photo-status.is-success { color: #4ADE80; }
.photo-status.is-warning { color: #FBBF24; }
.photo-status.is-error { color: #F87171; }

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  align-content: start;
}

@media (max-width: 520px) {
  .photo-gallery { grid-template-columns: 1fr; }
}

.photo-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(0, 0, 0, .24);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.photo-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
}

.photo-card-actions > span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
}

.photo-card-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-card-buttons .ghost-button,
.photo-card-buttons .primary-button {
  min-width: 0;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 8px;
}
