:root {
  color-scheme: light;
  color: #173b63;
  background: #edf3f8;
  font: 100%/1.55 system-ui, sans-serif;
}
body { margin: 0; padding: clamp(12px, 5vw, 48px); }
main {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(18px, 5vw, 40px);
  border: 1px solid #d5e2ef;
  border-radius: 16px;
  background: #fff;
}
h1 { font-size: clamp(1.55rem, 5vw, 2.15rem); line-height: 1.2; }
h2 { font-size: 1.25rem; }
a { color: #13578c; }
label { display: block; font-weight: 650; margin: 1.5rem 0 .45rem; }
input { max-width: 100%; font: inherit; }
input::file-selector-button { padding: .55em .75em; font: inherit; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .45rem; text-align: left; border-bottom: 1px solid #d5e2ef; }
th:last-child, td:last-child { text-align: right; }
.service-price { font-size: 1.15rem; font-weight: 750; }
fieldset { margin: 1.25rem 0; min-inline-size: 0; border: 1px solid #d5e2ef; border-radius: 10px; }
legend { font-weight: 700; }
fieldset label { margin-top: .65rem; }
select, input[type="date"], button { min-height: 44px; font: inherit; }
.period-fields { display: flex; gap: 1rem; flex-wrap: wrap; }

[hidden] { display: none !important; }
header { margin: 1rem 0; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.title-row h1 { margin: 0; }
.service-price { margin: 0; white-space: nowrap; }
#preview-note, #document-help, #report-description { margin: .55rem 0 0; color: #3c5369; }
#service-steps { display: flex; flex-wrap: wrap; gap: .35rem 1.75rem; margin: 0 0 1rem; padding-inline-start: 1.5rem; font-size: .95rem; }
.document-panel, .report-panel { padding: clamp(14px, 3vw, 22px); border-radius: 12px; }
.document-panel { border: 1px solid #cbdbeb; background: #f5f9fc; }
.report-panel { margin-top: 1rem; border: 1px solid #d5e2ef; }
.document-panel h2, .report-panel h2 { margin: 0; }
.file-label { margin-top: .9rem; }
#statement { display: block; width: 100%; }
#statement::file-selector-button { background: #196149; border: 0; border-radius: 7px; color: white; cursor: pointer; }
#statement:disabled::file-selector-button { opacity: .65; cursor: default; }
#file-limit { display: block; margin-top: .35rem; color: #3c5369; }
#status, #payment-status { margin: .5rem 0 0; font-size: .9rem; }
input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid #13578c; outline-offset: 3px; }

.emk-date-parts { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: .5rem; }
.emk-date-parts input { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; font-size: 16px; }
.emk-date-error { color: #9d2929; }

.service-layout { display: grid; gap: 1rem; }
.service-inputs { min-width: 0; }
.checkout-documents { margin: 0; }
.checkout-documents p { margin: 0 0 .65rem; }
.checkout-validation { margin: .5rem 0 .75rem; }
.checkout-validation #payment-status { margin: .25rem 0 0; color: #3c5369; }
.checkout-document-verified {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: #edf8f1;
  color: #16613b;
  padding: .4rem .6rem;
  border-radius: 6px;
}
.checkout-tick { font-size: 1.15rem; line-height: 1; }
.checkout-documents details { margin: .65rem 0; }
.checkout-documents summary { color: #13578c; cursor: pointer; font-weight: 600; }
.checkout-documents details p { margin: .65rem 0; }
.checkout-note { color: #3c5369; font-size: .9rem; }
.checkout-check { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .65rem; margin-bottom: .5rem; }
.checkout-check label { display: inline-flex; align-items: flex-start; gap: .5rem; margin: 0; }
.checkout-check input { flex: 0 0 auto; margin: .22rem 0 0; width: 1.15rem; height: 1.15rem; }
.checkout-read { min-height: 32px; padding: .1rem .2rem; border: 0; background: transparent; color: #13578c; text-decoration: underline; cursor: pointer; }
.checkout-documents dialog { width: min(36rem, 84vw); max-height: 80vh; padding: 1.15rem; border: 1px solid #d5e2ef; border-radius: 12px; color: inherit; }
.checkout-documents dialog::backdrop { background: #173b6366; }
.checkout-documents dialog h2 { margin: 0 0 .75rem; }
.service-price, #checkout-total, #checkout-pay:disabled { color: #000; }
#checkout-pay:disabled { opacity: 1; background: #edf3f8; border: 1px solid #bac9d6; border-radius: 7px; padding: 0 .75rem; }
@media (min-width: 900px) {
  body { padding: 14px 24px; }
  main:has(#checkout-documents:not([hidden])) { max-width: 69rem; padding: 18px 24px; }
  main:has(#checkout-documents:not([hidden])) header { margin: .65rem 0; }
  main:has(#checkout-documents:not([hidden])) h1 { font-size: 1.65rem; }
  .service-layout:has(#checkout-documents:not([hidden])) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .service-layout .document-panel, .service-layout .report-panel { padding: 12px 15px; }
  .service-inputs .report-panel, .service-inputs fieldset { margin-block: .6rem; }
  .service-inputs h2 { margin-block: .4rem; }
}

.checkout-documents .coupon-label { margin: .6rem 0 .25rem; }
.coupon-entry { display: flex; gap: .45rem; margin-bottom: .55rem; }
.coupon-entry input { flex: 1; min-width: 0; padding-inline: .55rem; border: 1px solid #bac9d6; border-radius: 7px; }
.coupon-entry button { padding-inline: .65rem; }
#checkout-coupon-status { font-size: .9rem; }


.checkout-documents .checkout-seller-link { margin: .55rem 0 0; }
.checkout-seller-details { margin: 0 0 1rem; }
.checkout-seller-details dt { font-weight: 650; }
.checkout-seller-details dd { margin: 0 0 .5rem; overflow-wrap: anywhere; }

#checkout-billing fieldset { margin: .7rem 0; padding: 0; border: 0; }
#checkout-billing input, #checkout-billing select { width: 100%; min-width: 0; min-height: 44px; padding: .35rem .55rem; border: 1px solid #bac9d6; border-radius: 7px; box-sizing: border-box; }
#checkout-billing label { margin: .4rem 0 .2rem; font-size: .9rem; }
.billing-location { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
@media(max-width:400px){.billing-location{grid-template-columns:1fr;gap:0}}

.emk-paid-result-logo {
  display: block;
  width: min(240px, 75%);
  height: auto;
  margin: 0 auto 1rem;
}
.emk-paid-result-trademark {
  margin: .5rem 0 0;
  font-size: .875rem;
  color: #41576b;
}
