body.price-contract-open { overflow: hidden; }
#pricePreviewContract[hidden], .price-contract-modal[hidden], .price-contract-frame[hidden] { display: none !important; }
.price-contract-auth[hidden], .price-contract-body[hidden], .price-contract-auth-error[hidden] { display: none !important; }
.price-contract-auth { width: min(360px, calc(100% - 40px)); margin: auto; padding: 32px 0; }
.price-contract-auth h3 { margin: 0 0 10px; color: #172c4c; font-size: 22px; }
.price-contract-auth p { color: #718098; font-size: 14px; line-height: 1.8; }
.price-contract-auth form { display: grid; gap: 15px; margin-top: 24px; }
.price-contract-auth label { display: grid; gap: 10px; color: #354d6c; font-size: 14px; font-weight: 600; }
.price-contract-auth input { width: 100%; height: 46px; padding: 10px 12px; box-sizing: border-box; border: 1px solid #c9daee; border-radius: 8px; color: #253a57; background: #fbfdff; font: 16px Arial, sans-serif; }
.price-contract-auth input:focus { border-color: #2878f5; outline: 2px solid #e3efff; }
.price-contract-auth button { min-height: 46px; border: 0; border-radius: 8px; background: #2878f5; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; }
.price-contract-auth button:disabled { opacity: .55; cursor: wait; }
.price-contract-auth .price-contract-auth-error { margin: 0; color: #bc3535; font-size: 13px; }
.price-contract-dialog.is-verifying { max-width: 500px; height: auto; min-height: 410px; max-height: calc(100dvh - 48px); overflow-y: auto; }
.price-summary-actions #pricePreviewContract { border-color: #b9d5fc; background: #edf5ff; color: #2066c9; }
.price-summary-actions #pricePreviewContract:hover { border-color: #2878f5; background: #e1eeff; }
.price-contract-modal { position: fixed; inset: 0; z-index: 22000; display: flex; padding: 24px; align-items: center; justify-content: center; }
.price-contract-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(14, 31, 56, .64); backdrop-filter: blur(4px); cursor: default; }
.price-contract-dialog { position: relative; display: flex; flex-direction: column; width: min(1240px, 100%); height: min(940px, calc(100vh - 48px)); height: min(940px, calc(100dvh - 48px)); overflow: hidden; border: 1px solid #dce7f6; border-radius: 20px; background: #fff; box-shadow: 0 32px 80px rgba(6, 29, 62, .24); }
.price-contract-heading { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 26px; border-bottom: 1px solid #e4ebf5; }
.price-contract-heading h2 { margin: 0; font-size: 21px; line-height: 1.4; color: #172c4c; }
.price-contract-heading p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; color: #718098; }
.price-contract-heading button { flex-shrink: 0; width: 40px; height: 40px; border: 1px solid #e3eaf4; border-radius: 10px; color: #677d99; background: #f7faff; font-size: 26px; cursor: pointer; }
.price-contract-body { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: 0; flex: 1; }
.price-contract-sidebar { overflow-y: auto; padding: 22px; border-right: 1px solid #e4ebf5; background: #fff; }
.price-contract-cost { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #e4ebf5; }
.price-contract-cost span, .price-contract-cost small { display: block; color: #77889d; font-size: 12px; line-height: 1.7; }
.price-contract-cost strong { display: block; margin: 5px 0; color: #2878f5; font-size: 27px; line-height: 1.35; overflow-wrap: anywhere; }
.price-contract-form { display: grid; gap: 14px; }
.price-contract-form label { display: grid; gap: 6px; color: #354d6c; font-size: 12px; font-weight: 600; }
.price-contract-form input { width: 100%; min-width: 0; height: 39px; padding: 8px 10px; border: 1px solid #d9e4f1; border-radius: 7px; background: #fbfdff; color: #253a57; font: 14px/1.4 Arial, "Microsoft YaHei", sans-serif; box-sizing: border-box; }
.price-contract-form input:focus { border-color: #2878f5; outline: 2px solid #e3efff; }
.price-contract-form button, .price-contract-print { min-height: 40px; padding: 8px 14px; border: 1px solid #2878f5; border-radius: 8px; background: #2878f5; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.price-contract-form button { margin-top: 4px; background: #f0f6ff; color: #2878f5; border-color: #c6dbfa; }
.price-contract-print { width: 100%; margin-top: 12px; }
.price-contract-print:disabled { opacity: .5; cursor: default; }
.price-contract-note { margin-top: 13px; color: #8290a4; font-size: 11px; line-height: 1.8; }
.price-contract-preview { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: #edf1f7; }
.price-contract-status { flex: 0 0 auto; padding: 11px 18px; margin: 0; color: #66809e; font-size: 12px; line-height: 1.7; background: #f4f8fe; border-bottom: 1px solid #e1eaf5; }
.price-contract-status.is-error { color: #bc3535; background: #fff4f2; }
.price-contract-frame { display: block; flex: 1; width: 100%; min-height: 0; border: 0; background: #edf1f7; }
@media (max-width: 760px) {
    .price-contract-modal { padding: 8px; }
    .price-contract-dialog { height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: 13px; }
    .price-contract-heading { padding: 14px; gap: 10px; }
    .price-contract-heading h2 { font-size: 17px; }
    .price-contract-body { display: flex; flex-direction: column; overflow-y: auto; }
    .price-contract-sidebar { flex: 0 0 auto; overflow: visible; padding: 16px; border-right: 0; border-bottom: 1px solid #e4ebf5; }
    .price-contract-cost { margin-bottom: 14px; padding-bottom: 12px; }
    .price-contract-cost strong { font-size: 24px; }
    .price-contract-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .price-contract-form input { font-size: 16px; }
    .price-contract-form .price-contract-address { grid-column: 1 / -1; }
    .price-contract-form button { align-self: end; height: 39px; margin: 0; }
    .price-contract-note { margin-top: 10px; }
    .price-contract-preview { flex: 0 0 auto; min-height: 72vh; }
    .price-contract-frame { flex: none; min-height: 68vh; }
}
@media print { .price-contract-modal { display: none !important; } }
.price-contract-modal [hidden] { display: none !important; }
.price-contract-reset { width: 100%; margin-top: 12px; padding: 10px; border: 1px solid #d8e5fa; border-radius: 8px; color: #57708e; background: #f7faff; cursor: pointer; font: inherit; }
.price-contract-reset:hover { color: #2678ff; border-color: #2678ff; }
