.notary-order-modal { display: none; position: fixed; z-index: 10020; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; padding: 20px; align-items: center; justify-content: center; background: #0a192bb3; color: #08213e; font: 16px/1.5 Arial, sans-serif; color-scheme: light; }
.notary-order-modal.is-open { display: flex; }
.notary-order-modal, .notary-order-modal * { box-sizing: border-box; }
.notary-order-modal [hidden] { display: none !important; }
.notary-order-card { position: relative; width: 100%; max-width: 560px; max-height: 100%; overflow: auto; overscroll-behavior: contain; padding: 32px; border-radius: 20px; background: white; box-shadow: 0 24px 80px #04122240; }
.notary-order-modal h2 { margin: 0 32px 20px 0; font: 600 28px/1.2 Arial, sans-serif; letter-spacing: -.4px; color: #08213e; }
.notary-order-modal h3 { margin: 22px 0 12px; font: 600 20px/1.3 Arial, sans-serif; color: #08213e; }
.notary-order-modal p { margin: 0 0 12px; font-size: 16px; line-height: 1.5; }
.notary-order-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #f2f5f8; color: #08213e; font: 30px/1 Arial, sans-serif; cursor: pointer; }
.notary-order-conditions { margin-bottom: 22px; padding: 18px; border-radius: 14px; background: #eaf8f5; }
.notary-order-conditions p { font-size: 14px; }
.notary-order-conditions p:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; }
.notary-order-conditions p:first-child strong { color: #343cc7; font-size: 30px; }
.notary-order-conditions p:last-child { margin-bottom: 0; }
.notary-order-modal form { margin: 0; }
.notary-order-modal label { display: block; margin: 16px 0 6px; font-size: 15px; font-weight: 600; }
.notary-order-optional { font-weight: 400; color: #52677b; }
.notary-order-modal input, .notary-order-modal textarea { display: block; width: 100%; min-width: 0; height: 48px; padding: 10px 12px; border: 1px solid #cbd6e0; border-radius: 8px; background: #fff; color: #08213e; font: 16px/1.4 Arial, sans-serif; }
.notary-order-dropzone { padding: 18px; border: 2px dashed #a7b6d8; border-radius: 12px; background: #f7f9ff; }
.notary-order-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 340px; margin: 14px 0 0; padding: 2px; overflow: auto; list-style: none; }
.notary-order-previews li { min-width: 0; padding: 8px; border: 1px solid #dce4ee; border-radius: 8px; background: #fff; }
.notary-order-preview-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 96px; overflow: hidden; border-radius: 4px; background: #edf1fa; }
.notary-order-preview-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.notary-order-preview-badge { color: #283a9e; font-size: 22px; font-weight: 600; }
.notary-order-preview-name { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 13px; line-height: 1.4; }
.notary-order-preview-size { display: block; margin-top: 4px; color: #52677b; font-size: 12px; }
.notary-order-dropzone.is-dragging-files { border-color: #343cc7; background: #eaf8f5; }
.notary-order-modal .notary-order-dropzone-title { margin: 0; font-size: 18px; font-weight: 600; }
.notary-order-modal .notary-order-dropzone .notary-order-hint:last-child { margin-bottom: 0; }
.notary-order-drop-overlay { position: absolute; z-index: 2; inset: 20px; width: calc(100% - 40px); max-width: 560px; margin: auto; padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 3px dashed #343cc7; border-radius: 20px; background: #eaf8f5f5; text-align: center; pointer-events: none; }
.notary-order-drop-overlay strong { color: #283a9e; font-size: 30px; line-height: 1.2; }
.notary-order-drop-overlay p { max-width: 360px; margin: 0; }
.notary-order-modal input[type=file] { height: auto; min-height: 48px; padding: 10px; }
.notary-order-modal input[type=file]::file-selector-button { max-width: 100%; padding: 6px; border: 0; border-radius: 4px; color: #283a9e; background: #edf1fa; cursor: pointer; }
.notary-order-modal .notary-order-hint { margin: 6px 0 14px; font-size: 13px; color: #52677b; }
.notary-order-primary, .notary-order-secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; padding: 12px 18px; border: 1px solid #343cc7; border-radius: 10px; font: 600 16px/1.4 Arial, sans-serif; cursor: pointer; text-align: center; }
.notary-order-primary { width: 100%; margin-top: 18px; background: #343cc7; color: white; }
.notary-order-secondary { background: white; color: #283a9e; }
.notary-order-modal button:disabled { opacity: .65; cursor: wait; }
.notary-order-modal :focus-visible { outline: 3px solid #343cc7 !important; outline-offset: 3px; }
.notary-order-error { margin: 16px 0; padding: 14px; border-radius: 10px; color: #842626; background: #fff0ef; }
.notary-order-confirmation { padding: 18px; border-radius: 14px; background: #eaf8f5; }
.notary-order-confirmation h3 { margin-top: 0; }
.notary-order-confirmation p:last-child { margin-bottom: 0; }
.notary-order-documents { margin: 0 0 20px; padding-left: 22px; list-style: decimal outside; }
.notary-order-documents li + li { margin-top: 8px; }
.notary-order-payment { margin: 20px 0; padding: 18px; border-radius: 14px; background: #f2f6ff; }
.notary-order-payment h3 { margin-top: 0; }
.notary-order-payment p:last-child { margin-bottom: 0; }
.notary-order-uploaded ul { padding-left: 22px; margin: 0; overflow-wrap: anywhere; }
.notary-order-resume { margin: 24px 0; padding-top: 18px; border-top: 1px solid #dce6ed; }
.notary-order-resume label { margin-top: 0; }
.notary-order-resume p { font-size: 14px; }
.notary-order-copy { margin-top: 10px; }
.notary-order-modal .notary-order-copy-status { margin: 8px 0 0; }
.notary-order-discuss { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #dce6ed; }
.notary-order-discuss p { flex-basis: 100%; margin: 0; font-weight: 600; }
.notary-order-discuss a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #283a9e; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.notary-order-discuss img { display: block; width: 26px; height: 26px; }
.notary-order-max img { padding: 3px; border-radius: 7px; background: linear-gradient(135deg, #089cff, #6843e6); }
@media (max-width: 599px) {
  .notary-order-modal { padding: 12px; }
  .notary-order-card { padding: 26px 18px 22px; border-radius: 16px; }
  .notary-order-modal h2 { font-size: 24px; }
  .notary-order-dropzone { padding: 12px; }
  .notary-order-previews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .notary-order-drop-overlay { inset: 12px; width: calc(100% - 24px); padding: 20px; border-radius: 16px; }
  .notary-order-drop-overlay strong { font-size: 26px; }
}

.notary-order-open { text-decoration: none; margin-bottom: 4px; }
.notary-order-state { margin: 22px 0; padding: 18px; border: 1px solid #dce6ed; border-radius: 14px; background: #f4f7fc; }
.notary-order-modal .notary-order-state h3 { margin-top: 0; }
.notary-order-modal .notary-order-state-label { font-size: 23px; font-weight: 600; color: #283a9e; }
.notary-order-modal .notary-order-state-label.is-ready { color: #167343; }
.notary-order-modal .notary-order-refresh-status { margin-bottom: 0; }
.notary-order-reports { padding-bottom: 18px; border-bottom: 1px solid #dce6ed; }
.notary-order-report-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.notary-order-report-list li { padding: 14px; border: 1px solid #bddfd4; border-radius: 12px; background: #eaf8f5; }
.notary-order-report-name { display: block; overflow-wrap: anywhere; font-weight: 600; }
.notary-order-modal .notary-order-report-info { margin: 6px 0 10px; color: #52677b; font-size: 13px; }
.notary-order-page { margin: 0; background: #eaf8f5; color: #08213e; font: 16px/1.5 Arial, sans-serif; }
.notary-order-page-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 800px; margin: 0 auto; padding: 22px 20px; }
.notary-order-page-header a { color: #08213e; text-decoration: none; }
.notary-order-page-brand { font-size: 24px; font-weight: 700; }
.notary-order-page .notary-order-modal { position: relative; height: auto; min-height: 60vh; padding: 0 20px 40px; background: transparent; align-items: flex-start; }
.notary-order-page .notary-order-card { max-width: 760px; max-height: none; overflow: visible; box-shadow: 0 12px 40px #0a192b12; }
.notary-order-page .notary-order-number, .notary-order-page .notary-order-close, .notary-order-page .notary-order-new, .notary-order-page .notary-order-open, .notary-order-page .notary-order-form { display: none; }
@media (max-width: 599px) { .notary-order-page .notary-order-modal { padding: 0 12px 24px; } .notary-order-page-header { padding: 16px 12px; } }

.notary-order-uploaded ul { display: grid; gap: 10px; padding: 0; margin-bottom: 12px; list-style: none; }
.notary-order-uploaded li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; border: 1px solid #cbd6e0; border-radius: 10px; background: #fff; }
.notary-order-file-name { flex: 1 1 210px; min-width: 0; overflow-wrap: anywhere; }
.notary-order-modal .notary-order-delete-document { flex: 0 0 auto; min-height: 44px; padding: 8px 14px; border-color: #ceb4b8; color: #93313e; font-size: 14px; }
.notary-order-modal .notary-order-payment-status { margin: 14px 0; color: #283a9e; }

.notary-order-modal textarea { height: 48px; min-height: 48px; resize: none; overflow-y: hidden; }
.notary-order-delivery { margin: 22px 0; padding: 18px; border: 1px solid #dce6ed; border-radius: 14px; background: #f7f9ff; }
.notary-order-modal .notary-order-delivery h3 { margin-top: 0; }
.notary-order-modal .notary-order-delivery-status { margin: 14px 0 0; color: #283a9e; }
.notary-order-legacy-address { overflow-wrap: anywhere; white-space: pre-wrap; }
