/* Document purchases, kits and Document Preparation. Shared by My Account and the kit purchase page. */
.document-order button,.prep-card button,.doc-kit-card button,.doc-feedback button{min-height:40px;border:1px solid #254e42;background:#254e42;color:#fff;border-radius:6px;padding:8px 14px;font:600 14px system-ui,sans-serif;cursor:pointer}
.document-order button.secondary,.prep-card button.secondary,.doc-kit-card button.secondary{background:transparent;color:#254e42}
.doc-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;border-bottom:1px solid var(--line,#dbe1d8);margin:12px 0 18px}
.doc-tabs button{margin:0 0 -1px;min-height:42px;background:transparent;color:var(--muted,#62716c);border:1px solid transparent;border-bottom:0;border-radius:7px 7px 0 0;padding:8px 14px}
.doc-tabs button[aria-selected="true"]{color:var(--ink,#183a37);background:#fff;border-color:var(--line,#dbe1d8);border-bottom:1px solid #fff}
.doc-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:24px;align-items:start}
.doc-layout:has(.doc-help:empty){grid-template-columns:minmax(0,1fr)}
.doc-help:empty{display:none}
.doc-help{font-size:14px;border:1px solid var(--line,#dbe1d8);border-radius:9px;padding:14px 16px;background:#fbfbf8}
.doc-help details{margin:0}.doc-help summary{font-weight:600;cursor:pointer}
.doc-help ol{padding-left:18px;margin:8px 0}.doc-help li{margin:6px 0}
.doc-empty{color:var(--muted,#62716c);padding:16px;border:1px dashed var(--line,#dbe1d8);border-radius:8px}
.doc-library{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.doc-kit-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;border:1px solid var(--line,#dbe1d8);border-radius:9px;background:#fbfbf8}
.doc-kit-card h3{margin:0;font:600 16px/1.3 system-ui,sans-serif}
.doc-kit-card .doc-meta{margin:0}
.doc-kit-card button{margin:auto 0 0}
.doc-sku{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--green,#254e42)}
.doc-meta{font-size:14px;color:var(--muted,#62716c);margin:2px 0 0}
#document-account article.document-order,.document-order{margin:0 0 16px;padding:0;border:1px solid var(--line,#dbe1d8);border-radius:9px;background:#fff;overflow:hidden}
.doc-order-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 16px;padding:14px 18px;background:#f7f9f5;border-bottom:1px solid var(--line,#dbe1d8)}
.doc-order-head h3{margin:0;font:600 17px/1.3 system-ui,sans-serif}
.doc-order-right{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.doc-total{font-size:17px}
.document-order>*:not(.doc-order-head){margin-left:18px;margin-right:18px}
.doc-receipt-box{margin-top:12px;margin-bottom:4px}.doc-receipt-box summary{cursor:pointer;font-weight:600;font-size:14px;color:var(--green,#254e42)}
.doc-receipt{max-width:420px;margin:8px 0;font-size:14px}
.doc-receipt th,.doc-receipt td{padding:6px 0;border-bottom:1px solid var(--line,#dbe1d8);font-weight:400}
.doc-receipt td{text-align:right}
.doc-receipt-total th,.doc-receipt-total td{font-weight:700;border-bottom:0}
.doc-kits{margin:10px 0;font-size:15px}
.doc-kits td{padding:8px 6px;vertical-align:middle}
.doc-kits td:first-child{padding-left:0}
.doc-kit-state{color:var(--muted,#62716c);font-size:14px;white-space:nowrap}
.doc-kit-action{text-align:right;white-space:nowrap}
.doc-kit-action button{margin:0}
.document-order button{margin:.35rem .5rem .35rem 0}
.doc-kit-action button,.doc-kit-card button{margin:0}
.doc-refund{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;margin-top:8px;padding:10px 0;border-top:1px solid var(--line,#dbe1d8)}
.doc-refund p{margin:0;flex:1 1 280px}
.document-order button.danger{background:transparent;color:#a3341f;border-color:#d7a294}
.document-order button.danger:hover{background:#fbeee9}
.doc-feedback{margin-top:8px;margin-bottom:14px;padding-top:10px;border-top:1px solid var(--line,#dbe1d8)}
.doc-feedback>summary{cursor:pointer;font-weight:600;color:var(--green,#254e42)}
.doc-thanks{margin-top:8px;margin-bottom:14px}
.doc-survey-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
.doc-survey-q{margin:8px 0;font-weight:500}.doc-survey-main{grid-column:1/-1;font-weight:700}
.doc-survey-q select{margin-top:4px}
.doc-survey-yesno{border:0;padding:0;margin:10px 0;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.doc-survey-yesno legend{font-size:14px;font-weight:600;padding:0;margin-bottom:4px;float:left;width:100%}
.doc-radio{display:inline-flex;align-items:center;gap:6px;margin:0;font-weight:400}.doc-radio input{width:auto;display:inline}
.doc-survey-comment textarea,.prep-card textarea,.prep-questionnaire textarea{display:block;width:100%;box-sizing:border-box;font:inherit;padding:10px;border:1px solid #c4cec9;border-radius:6px;margin-top:4px}
.prep-card{margin:0 0 16px;padding:16px 18px;border:1px solid var(--line,#dbe1d8);border-left:4px solid var(--green,#254e42);border-radius:9px;background:#fff}
.document-order .prep-card{margin-top:12px}
.prep-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.prep-card h4{margin:0;font-size:16px}
.prep-stage{margin:.2rem 0 .6rem}
.prep-steps{display:flex;list-style:none;padding:0;margin:14px 0;counter-reset:step}
.prep-steps li{flex:1;position:relative;padding-top:30px;text-align:center;font-size:13px;color:var(--muted,#62716c);counter-increment:step}
.prep-steps li::before{content:counter(step);position:absolute;top:0;left:50%;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;border:2px solid #c4cec9;background:#fff;line-height:20px;font-weight:700;font-size:12px;z-index:1}
.prep-steps li::after{content:"";position:absolute;top:11px;left:-50%;width:100%;height:2px;background:#c4cec9}
.prep-steps li:first-child::after{display:none}
.prep-steps li.done{color:var(--ink,#183a37)}.prep-steps li.done::before{content:"\2713";background:var(--green,#254e42);border-color:var(--green,#254e42);color:#fff}
.prep-steps li.done::after,.prep-steps li.current::after{background:var(--green,#254e42)}
.prep-steps li.current{color:var(--ink,#183a37);font-weight:700}.prep-steps li.current::before{border-color:var(--green,#254e42);color:var(--green,#254e42)}
.prep-thread{display:flex;flex-direction:column;gap:8px;margin:12px 0;padding:12px;background:#f5f4ee;border-radius:8px;max-height:420px;overflow:auto}
.prep-msg{max-width:85%;padding:8px 12px;border-radius:10px;background:#fff;border:1px solid #e1e6df;align-self:flex-start}
.prep-msg.from-customer{align-self:flex-end;background:#e3efe6;border-color:#cfe0d4}
.prep-msg strong{font-size:13px;color:#4a5a54}.prep-msg time{font-size:12px;color:var(--muted,#62716c);margin-left:8px}
.prep-msg p{margin:.25rem 0 0;white-space:pre-wrap}
.prep-decide{margin-top:12px;padding-top:12px;border-top:1px solid var(--line,#dbe1d8)}
.prep-changes,.prep-reply{margin-top:10px}
.prep-questionnaire fieldset{margin:1rem 0;padding:14px 16px}.prep-q{margin:.4rem 0 1rem}.prep-q small{display:block;color:#4a5a54;font-size:13px;margin-top:4px}.prep-questionnaire label small{color:#4a5a54;font-size:13px}.prep-suggest{display:block;font-size:14px;margin-top:4px}
/* Status badges. */
.badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;line-height:18px;background:#eef1ee;color:var(--ink);white-space:nowrap}
.badge-ok{background:#e3efe6;color:#1d5a3a}
.badge-action{background:#fbe9d7;color:#8a4210}
.badge-muted{background:#eef0ee;color:var(--muted)}
.badge-test{background:#fff4c9;color:#6b5200}
@media(max-width:860px){.doc-layout{grid-template-columns:minmax(0,1fr)}.doc-help{order:-1}}
@media(max-width:600px){.doc-survey-grid{grid-template-columns:1fr}.doc-kits tr{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:8px 0;border-bottom:1px solid var(--line,#dbe1d8)}.doc-kits td{border:0;padding:0}.doc-kits td:first-child{grid-column:1/-1}.doc-kit-action{text-align:right}.prep-steps li{font-size:11px}.prep-msg{max-width:100%}}
.doc-order-head>div:first-child{flex:1 1 280px}
.doc-feedback>summary,.doc-receipt-box summary{font-size:14px}
.doc-tabs button{white-space:nowrap;flex:0 0 auto}
@media(max-width:600px){.doc-tabs{flex-wrap:wrap;overflow:visible;border-bottom:0;gap:6px}.doc-tabs button{border:1px solid var(--line,#dbe1d8);border-radius:999px;margin:0;min-height:38px;padding:6px 12px}.doc-tabs button[aria-selected="true"]{background:var(--green,#254e42);color:#fff;border-color:var(--green,#254e42)}.doc-tabs button[aria-selected="true"] .acct-count{background:#fff;color:var(--green,#254e42)}}
