/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-latin-400-21a53f82.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-latin-500-ae3e40ad.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-latin-600-a32e7417.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-latin-700-1a901159.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-latin-800-2e7078a8.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/caveat-latin-500-a21867d1.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/caveat-latin-600-703ea97c.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Caveat";
  src: url("/assets/caveat-latin-700-a75d2141.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Outfit", ui-sans-serif, system-ui, sans-serif;
}

.reveal-audio {
  animation: revealFromMic 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hide-audio {
  animation: hideToMic 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes revealFromMic {
  from {
    clip-path: circle(0% at calc(100% - 60px) calc(100% - 24px));
    opacity: 0;
  }
  to {
    clip-path: circle(150% at calc(100% - 60px) calc(100% - 24px));
    opacity: 1;
  }
}

@keyframes hideToMic {
  from {
    clip-path: circle(150% at calc(100% - 60px) calc(100% - 24px));
    opacity: 1;
  }
  to {
    clip-path: circle(0% at calc(100% - 60px) calc(100% - 24px));
    opacity: 0;
  }
}

/* DOCX tag-review preview */
.docx-preview-host {
  position: relative;
  overflow: auto;
  cursor: grab;
  user-select: none;
  overscroll-behavior: contain;
}

.docx-preview-host.is-panning {
  cursor: grabbing;
}

.docx-preview-host .docx-preview-fit {
  position: relative;
  overflow: hidden;
}

.docx-preview-host .docx-wrapper {
  background: transparent !important;
  padding: 12px !important;
  gap: 0.75rem;
  width: max-content !important;
  max-width: none !important;
  transform-origin: top left;
  will-change: transform;
}

.docx-preview-host .docx-wrapper > section.docx {
  width: 210mm !important;
  min-width: 210mm !important;
  max-width: 210mm !important;
  min-height: 297mm !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1rem !important;
}

.docx-preview-host .docx-wrapper > section.docx > article {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Tables must fit the A4 page, not expand it */
.docx-preview-host table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}

.docx-preview-host td,
.docx-preview-host th {
  padding: revert-layer;
  border-style: solid;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal !important;
  overflow: hidden;
}

.docx-preview-host img {
  max-width: 100% !important;
  height: auto;
}

.docx-preview {
  font-family: "Georgia", "Times New Roman", serif;
  line-height: 1.55;
  color: #1e293b;
}

.docx-preview .docx-p {
  margin: 0 0 0.75rem;
  min-height: 1.25em;
}

.docx-preview .docx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.875rem;
}

.docx-preview .docx-td {
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

.docx-preview .docx-td .docx-p {
  margin-bottom: 0.35rem;
}

.docx-preview .docx-td .docx-p:last-child {
  margin-bottom: 0;
}

.docx-preview .tag-highlight,
.docx-preview-host .tag-highlight {
  background: #fef3c7;
  color: #78350f;
  border-radius: 0.25rem;
  padding: 0 0.2rem;
  font-weight: 600;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85em;
  cursor: pointer;
}

.docx-preview .tag-highlight:hover,
.docx-preview-host .tag-highlight:hover {
  background: #fde68a;
}

.tag-review-card.is-selected {
  border-color: #0f172a;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.billing-address-fields input[type="text"],
.billing-address-fields select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.billing-address-row {
  display: grid;
  gap: 1rem;
}

.billing-address-row > * {
  min-width: 0;
}

.billing-address-row--street {
  grid-template-columns: 7.5rem minmax(0, 1fr);
}

.billing-address-row--number {
  grid-template-columns: 6rem minmax(0, 1fr);
}

.billing-address-row--city {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 4.75rem;
}
