#quote-photo-dialog {
  width: min(760px, 94vw);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #e3d6cc;
  border-radius: 16px;
  padding: 28px;
  background: #fffaf4;
  color: #493737;
  box-shadow: 0 20px 80px #382c3333;
}
#quote-photo-dialog::backdrop {
  background: #382c3380;
  backdrop-filter: blur(3px);
}
.quote-photo-heading {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}
.quote-photo-heading h2 {
  font-size: 27px;
  margin: 0;
}
.quote-photo-close {
  background: transparent;
  color: inherit;
  border: 1px solid #dacbc1;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.quote-photo-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}
#quote-photo-preview {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #f4ede5;
  border-radius: 8px;
}
#quote-photo-name {
  font-weight: 600;
  margin: 0 0 10px;
}
.quote-photo-instructions {
  font-size: 12px;
  line-height: 1.8;
  color: #7b6863;
}
#quote-photo-message {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f2eae1;
  border-radius: 8px;
  padding: 15px;
}
#quote-photo-status {
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0 15px;
}
#quote-photo-share {
  width: 100%;
  cursor: pointer;
}
#quote-photo-share:disabled {
  opacity: 0.5;
  cursor: wait;
}
#quote-photo-manual p {
  font-size: 12px;
  line-height: 1.8;
}
.quote-photo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.quote-photo-actions button,
.quote-photo-actions a {
  font-size: 12px;
  min-height: 44px;
  padding: 12px;
  text-align: center;
}
.quote-photo-actions button {
  background: transparent;
  border: 1px solid #dacbc1;
  cursor: pointer;
}
#quote-photo-whatsapp {
  text-decoration: underline;
  text-underline-offset: 4px;
}
#quote-photo-dialog [hidden] {
  display: none !important;
}
#quote-photo-dialog :focus-visible {
  outline: 2px solid #96716f;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  #quote-photo-dialog {
    padding: 20px;
  }
  .quote-photo-heading h2 {
    font-size: 23px;
  }
  .quote-photo-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  #quote-photo-preview {
    max-height: 220px;
  }
  .quote-photo-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .quote-photo-actions > * {
    width: 100%;
  }
}
