.template-dialog{padding:0;border:1px solid #e5e7eb;border-radius:20px;background:#fff;color:#1d1d1f;box-shadow:0 30px 100px #0003;width:min(1120px,96vw);max-width:96vw;max-height:92vh;font:14px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;overflow:hidden}.template-dialog[open]{display:flex;flex-direction:column}.template-dialog::backdrop{background:#17213466;backdrop-filter:blur(5px)}.template-dialog header{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;border-bottom:1px solid #eceef1;flex-shrink:0}.template-dialog h2{margin:4px 0 0;font-size:23px;letter-spacing:-.5px}.template-eyebrow{font-size:11px;color:#86868b;margin:0}.template-scroll{overflow:auto;padding:20px 28px;min-height:0}.template-context{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:#f5f5f7;padding:16px;border-radius:12px}.template-dialog label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:500;position:relative}.template-dialog input,.template-dialog select{box-sizing:border-box;width:100%;min-width:0;background:white;border:1px solid #d8dce2;border-radius:8px;font:inherit;font-size:13px;padding:10px 11px;color:#1d1d1f}.template-dialog input:focus,.template-dialog select:focus{outline:3px solid #0071e322;border-color:#0071e3}.template-dialog input[readonly]{background:#f5f5f7;color:#6e6e73}.template-dialog label small{position:absolute;right:0;top:0;color:#8a6b24;font-size:10px;font-weight:400}.template-tabs{display:flex;align-items:center;gap:6px;padding:22px 0 8px;flex-wrap:wrap}.template-tabs button{padding:9px 15px;border:0;background:#f5f5f7;color:#6e6e73;border-radius:8px;cursor:pointer}.template-tabs button.active{background:#e9f2ff;color:#0066cc;font-weight:600}.template-download{margin-left:auto;color:#0066cc;text-decoration:none;font-size:12px}.template-note{color:#6e6e73;font-size:12px;line-height:1.8;margin:10px 0 18px}.template-extra{display:grid;grid-template-columns:1fr 2fr;align-items:center;gap:24px;padding:16px;background:#f5f8fc;border-radius:12px}.template-extra p{font-size:12px;line-height:1.6;color:#6e6e73}.template-section{padding:20px 0 6px}.template-section h3{font-size:15px;font-weight:600;display:flex;align-items:center;gap:10px;margin:0 0 18px}.template-section h3 span{font-size:11px;font-weight:500;color:#86868b}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 22px}.template-dialog footer{padding:16px 28px;border-top:1px solid #eceef1;background:#fafafc;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-shrink:0}.template-dialog footer>span{font-size:12px;color:#6e6e73}.template-dialog footer>div{display:flex;gap:10px;flex-shrink:0}.template-dialog button{cursor:pointer}.template-dialog button:disabled{opacity:.45;cursor:not-allowed}.template-errors{color:#b42318;line-height:1.7;font-size:12px;white-space:pre-wrap;padding-top:15px}.template-errors:empty{display:none}.template-upload{border:1px dashed #c4d3e6;padding:22px;border-radius:12px;background:#f9fbff}.template-upload h3{margin:0;font-size:16px}.template-upload p{font-size:12px;color:#6e6e73;line-height:1.8}.template-upload input{max-width:420px}.template-table{overflow:auto;margin:12px 0}.template-table table{min-width:1000px;width:100%;border-collapse:collapse}.template-table th,.template-table td{padding:12px;text-align:left;border-bottom:1px solid #eee;font-size:12px;vertical-align:top}.template-table th{background:#f5f5f7;color:#6e6e73}.template-table small{display:block;color:#86868b;margin-top:5px}.template-table td:last-child{min-width:210px;max-width:320px;line-height:1.7}.template-table input{width:160px}.template-bad{color:#b42318}.template-ok{color:#26764c}.template-detail{display:grid;grid-template-columns:180px 1fr;padding:13px 0;gap:20px;border-bottom:1px solid #eee;font-size:13px}.template-detail span{color:#6e6e73}.template-detail b{font-weight:500;overflow-wrap:anywhere}.template-entry-actions{display:flex;gap:10px;flex-wrap:wrap}.customer-portal .grid{grid-template-columns:1fr!important}.template-launcher p{color:#6e6e73;line-height:1.8}.template-launcher h3{font-size:20px}.template-launcher{padding:8px 0 18px}
@media(max-width:700px){.template-dialog{width:96vw;max-height:94dvh;border-radius:14px}.template-dialog header,.template-scroll,.template-dialog footer{padding:16px}.template-context,.template-grid{grid-template-columns:1fr}.template-extra{grid-template-columns:1fr;gap:5px}.template-extra p{margin-bottom:0}.template-dialog footer{align-items:stretch;flex-direction:column;gap:8px}.template-dialog footer>div{justify-content:flex-end}.template-download{margin-left:0}.template-detail{grid-template-columns:120px 1fr;gap:10px}.template-dialog label small{top:0}}

.template-dialog .template-table td.template-bad{color:#b42318}.template-dialog .template-table td.template-ok{color:#26764c}.template-context:has(>label:only-child){grid-template-columns:1fr}

/* Searchable country field; popup is in the browser top layer, including WMS dialogs. */
.order-compose .country-field{display:flex;flex-direction:column}
.order-compose .country-field>label{display:block;color:inherit;font-size:inherit}
.order-compose .country-select input{padding-right:76px}
.country-select .country-selected-code{position:absolute;right:38px;top:50%;transform:translateY(-50%);font-size:11px;font-weight:600;color:#737e91;pointer-events:none}
.order-compose .country-select-toggle{position:absolute;right:2px;top:2px;bottom:2px;width:32px;padding:0;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#778395;box-shadow:none}
.order-compose .country-select-toggle:hover{background:#edf3fc;color:#0066cc}
.country-select-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.country-picker-popup{box-sizing:border-box;position:fixed;inset:auto;margin:0;padding:5px;border:1px solid #dce3ed;border-radius:11px;background:#fff;color:#1d1d1f;box-shadow:0 8px 30px #182a4526;z-index:1000;font:13px/1.5 -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;overflow:hidden}
.country-picker-popup[hidden]{display:none!important}
.country-picker-popup::backdrop{background:transparent;pointer-events:none}
.country-picker-status{padding:6px 8px 9px;color:#7a8290;font-size:11px;font-weight:400;line-height:18px}
.country-picker-list{position:relative;max-height:270px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#bbc5d4 transparent}
.country-picker-option{display:flex;align-items:center;gap:11px;min-height:48px;padding:7px 9px;box-sizing:border-box;border-radius:7px;cursor:pointer}
.country-picker-option.is-active{background:#eaf2ff;color:#0066cc}
@media(hover:hover){.country-picker-option:hover{background:#f1f5fb}}
.country-option-code{display:grid;place-items:center;flex:0 0 32px;height:27px;border:1px solid #e5e9ef;border-radius:6px;background:#fff;font-size:11px;font-weight:600;letter-spacing:.4px;color:#536078}
.country-picker-option.is-active .country-option-code{border-color:#cbdffd;color:#0066cc}
.country-option-names{display:grid;gap:1px;min-width:0}
.country-option-names b{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.country-option-names>span{font-size:11px;color:#7c8491;overflow-wrap:anywhere}
.country-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.template-guide{margin:12px 0 20px;font-size:12px;color:#6e6e73}.template-guide summary{cursor:pointer;padding:6px 0}.template-guide[open]{padding-bottom:4px}.template-guide .template-note{margin:8px 0 0}

/* The customer order page opens directly in single-order mode. */
.customer-portal #form{display:block}
.template-dialog.template-inline{display:block;position:static;width:100%;max-width:none;max-height:none;overflow:visible;border:0;border-radius:0;box-shadow:none}
.template-inline>header{display:none}
.template-inline>.template-scroll{padding:0;overflow:visible}
.template-inline .template-tabs{padding-top:16px}
.template-inline>footer{position:sticky;bottom:0;margin:20px -24px -10px;padding:16px 24px;border-radius:0;background:#fafafcf5;backdrop-filter:blur(12px);z-index:1}
@media(max-width:700px){.template-inline>footer{margin-right:-20px;margin-left:-20px;padding:14px 20px}.template-inline .template-grid{gap:18px}.template-inline .template-tabs{gap:8px}.template-inline .template-context{padding:12px}.template-inline .template-extra{padding:12px}}

/* Compact order composer, shared by customer shipping and WMS. */
.customer-portal .order-account{display:flex;align-items:center;gap:10px;min-width:0;max-width:45%;font-size:12px}
.customer-portal .order-account label{white-space:nowrap;color:#6e6e73;font-weight:400}
.customer-portal .order-account input{width:200px;max-width:100%;min-width:0;border:0;background:transparent;padding:0;border-radius:0;font-size:12px;font-weight:600;color:#515158;box-shadow:none;text-overflow:ellipsis}
.order-compose .template-tabs{padding:0 0 18px;gap:4px}
.order-compose .template-tabs button{padding:10px 18px;background:#f2f3f5;border-radius:9px;font-size:13px;min-height:40px}
.order-compose .template-tabs button.active{color:#fff;background:#1d1d1f;box-shadow:0 2px 5px #0001}
.order-compose .template-context{background:#f7f8fa;padding:12px 14px;gap:12px;border:1px solid #eceef1;border-radius:12px}
.order-compose .template-context:has(>label:only-child){grid-template-columns:minmax(0,1fr)}
.order-compose .template-context:has(>label:only-child)>label{display:grid;grid-template-columns:160px minmax(0,1fr);align-items:center}
.order-compose .template-context select{background:#fff}
.order-compose .template-guide{margin:12px 0 0;font-size:11px}
.order-compose .template-guide summary{padding:6px 0;cursor:pointer}
.order-compose .template-guide summary>span{float:right;color:#86868b}
.order-compose .template-section{padding:22px 0;border-bottom:1px solid #eceef1}
.order-compose .template-section:last-of-type{border-bottom:0;padding-bottom:0}
.order-compose .template-section h3{gap:10px;margin:0 0 16px;font-size:15px;letter-spacing:-.2px}
.order-compose .template-section h3 .order-step{display:grid;place-items:center;width:27px;height:27px;background:#f2f4f7;border-radius:9px;color:#536078;font-size:11px;font-variant-numeric:tabular-nums}
.order-compose .template-section h3>small{margin-left:auto;color:#86868b;font-size:11px;font-weight:400;letter-spacing:0}
.order-compose .template-grid{gap:14px 18px}
.order-compose .order-field{gap:7px;min-width:0;font-size:12px;color:#515158}
.order-compose .order-required{font-style:normal;color:#b44838;margin-left:4px}
.order-compose .order-input{display:block;position:relative;min-width:0}
.order-compose input,.order-compose select{font-size:13px;line-height:20px;padding:9px 11px;border-radius:9px;min-height:40px;border-color:#dfe2e7;transition:border-color .15s,box-shadow .15s}
.order-compose input::placeholder{color:#a0a3aa;font-weight:400}
.order-compose .order-input:has(.order-unit) input{padding-right:35px}
.order-compose .order-unit{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#92969e;font-size:11px;pointer-events:none}
.order-compose .order-wide{grid-column:1/-1}
.order-compose .order-caption{margin:8px 0 0;font-size:11px;color:#86868b;line-height:1.6}
.order-compose .order-more{margin-top:14px;padding:0 12px;background:#f7f8fa;border:1px solid #eff0f3;border-radius:9px}
.order-compose .order-more>summary,.order-compose .order-declaration>summary{padding:11px 0;cursor:pointer;font-size:12px;color:#536078}
.order-compose summary>span{margin-left:12px;color:#92969e;font-size:11px;font-weight:400}
.order-compose .order-more[open]{padding-bottom:14px}
.order-compose .order-more[open]>.template-grid{margin-top:7px}
.order-compose .order-package{display:grid;grid-template-columns:1fr 1fr 2fr;gap:18px;align-items:start}
.order-compose .order-dimensions{border:0;padding:0;margin:0;min-width:0}
.order-compose .order-dimensions legend{padding:0;margin:0 0 7px;font-size:12px;color:#515158}
.order-compose .order-dimensions legend>span{font-size:10px;color:#92969e;margin-left:6px}
.order-compose .order-dimensions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.order-compose .order-dimensions .order-field>span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.order-compose .order-declaration{margin-top:16px;border:1px solid #dfe5ee;border-radius:10px;padding:0 14px}
.order-compose .order-declaration>summary{color:#1d1d1f;font-weight:600}
.order-compose .order-declaration[open]{padding-bottom:14px}
.order-compose [data-stock]:empty{display:none}
.order-compose .template-errors:not(:empty){margin:14px 0 0;padding:12px 14px;border-radius:10px;background:#fff3f1}
.order-compose>footer{background:#fffffff2}
.order-compose>footer .primary{background:#0071e3;color:#fff;border:0;border-radius:10px;min-height:42px;padding:0 26px;font-size:13px;font-weight:600}
.order-compose>footer .primary:hover{background:#0077ed}
.order-compose>footer .secondary{border-radius:10px;min-height:42px;padding:0 18px}
.customer-portal .card:has(>#form){overflow:visible}
.order-compose.template-inline>footer{margin:20px 0 0;padding:14px 0;z-index:2}
.order-compose :is(button,summary,a):focus-visible{outline:3px solid #0071e344;outline-offset:3px}
@media(max-width:850px){.order-compose .order-package{grid-template-columns:1fr 1fr}.order-compose .order-dimensions{grid-column:1/-1}.order-compose .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-compose .template-section h3>small{display:none}}
@media(max-width:700px){.order-compose .template-context:has(>label:only-child)>label{display:flex;align-items:stretch}.order-compose .template-context{grid-template-columns:1fr}.order-compose .template-grid{grid-template-columns:1fr}.order-compose .template-tabs{gap:5px;padding-bottom:14px}.order-compose .template-tabs button{padding:9px 12px}.order-compose .template-download{width:100%;padding-top:6px}.order-compose .template-guide summary>span{float:none;display:block;margin:6px 0 0}.order-compose .template-section{padding:18px 0}.order-compose .template-section h3{margin-bottom:14px}.order-compose .order-declaration>summary>span{display:block;margin:6px 0 0}.order-compose.template-inline>footer{margin:16px 0 0;padding:12px 0}.order-compose>footer>div{width:100%}.order-compose>footer button{flex:1}.order-compose .order-dimensions legend>span{font-size:10px}}

/* Inline shipping uses the available workspace; modal WMS entry keeps its own layout. */
.customer-portal .wrap:has(.order-create-card:not([hidden])){
  width:100%;max-width:none;margin:20px auto;padding:0 24px;
}
.customer-portal .order-create-card{border-radius:14px}
.customer-portal .order-create-card .order-page-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;
}
.customer-portal .order-page-head h1{font-size:18px;letter-spacing:-.3px}
.customer-portal .order-page-head p{margin-top:3px;font-size:12px;color:#777c86}
.customer-portal .order-create-card>.body{padding:16px 20px 12px}
.customer-portal .order-create-card .form-note{margin:0;font-size:11px;color:#777c86}
.order-compose.template-inline{container-type:inline-size}
.template-inline .order-compose-toolbar{display:grid;gap:12px;align-items:center}
.template-inline .template-tabs{padding:0;gap:5px}
.template-inline .template-tabs button{padding:8px 14px;min-height:36px;font-size:12px}
.template-inline .template-context{padding:8px 12px;border-radius:9px}
.template-inline .template-context:has(>label:only-child)>label{
  grid-template-columns:126px minmax(0,1fr);font-size:12px;
}
.template-inline .template-context select{min-height:36px;padding:7px 10px;font-size:12px}
.template-inline .template-guide{margin:8px 0 12px}
.template-inline .template-guide summary{padding:4px 0;color:#737984}
.template-inline .template-guide summary>span{color:#737984}
.template-inline .order-compose-columns,.template-inline .order-compose-column{
  display:grid;gap:12px;min-width:0;align-content:start;
}
.template-inline .template-section,.template-inline .template-section:last-of-type{
  padding:16px;border:1px solid #e7e9ee;border-radius:11px;min-width:0;
}
.template-inline .template-section h3{font-size:14px;gap:8px;margin-bottom:12px}
.template-inline .template-section h3 .order-step{
  width:24px;height:24px;border-radius:7px;background:#edf3fc;color:#486b9b;
}
.template-inline .template-section h3>small{color:#777c86}
.template-inline .template-grid{gap:12px}
.template-inline .order-field{gap:5px}
.template-inline input,.template-inline select{min-height:38px;padding:8px 10px;border-radius:7px}
.template-inline .order-caption{margin-top:7px;color:#777c86}
.template-inline .order-more{margin-top:12px;padding:0 10px;background:#f7f8fa;border:0;border-radius:7px}
.template-inline .order-more>summary,.template-inline .order-declaration>summary{padding:9px 0}
.template-inline .order-more[open]{padding-bottom:12px}
.template-inline .order-package{gap:12px}
.template-inline .order-dimensions legend{margin-bottom:5px}
.template-inline .order-declaration{margin-top:12px;padding:0 10px;border-radius:7px}
.template-inline .order-declaration[open]{padding-bottom:12px}
.template-inline .template-upload{margin-top:4px}
.order-compose.template-inline>footer{margin-top:12px;padding:12px 0;gap:12px}
.order-compose.template-inline>footer [data-progress]{font-size:12px;line-height:1.6}
.order-compose.template-inline>footer .primary{min-height:40px;padding:0 28px;border-radius:8px}

@container (min-width:760px){
  .template-inline .order-compose-toolbar{grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:28px}
  .template-inline .template-context{padding:0;border:0;background:transparent}
}
@container (min-width:1000px){
  .template-inline .order-compose-columns{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:16px}
  .template-inline .order-package{grid-template-columns:1fr 1fr}
  .template-inline .order-dimensions{grid-column:1/-1}
  .template-inline .template-section h3>small{display:none}
}
@container (max-width:599px){
  .template-inline .template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .template-inline .order-package{grid-template-columns:repeat(2,minmax(0,1fr))}
  .template-inline .order-dimensions{grid-column:1/-1}
  .template-inline .template-section h3>small{display:none}
}
@container (max-width:399px){
  .template-inline .template-grid{grid-template-columns:minmax(0,1fr)}
  .template-inline .template-context:has(>label:only-child)>label{display:flex;align-items:stretch}
  .template-inline .template-download{width:100%;padding-top:5px;margin-left:0}
  .template-inline .template-guide summary>span{float:none;display:block;margin:5px 0 0}
  .template-inline .order-dimensions legend>span{display:block;margin:3px 0 0}
  .template-inline .order-declaration>summary>span{display:block;margin:5px 0 0}
  .template-inline .template-section,.template-inline .template-section:last-of-type{padding:12px}
}
@media(max-width:760px){
  .customer-portal .wrap:has(.order-create-card:not([hidden])){margin:12px auto;padding:0 10px}
  .customer-portal .order-create-card .order-page-head{align-items:flex-start;flex-direction:column;gap:6px;padding:14px}
  .customer-portal .order-page-head h1{font-size:17px}
  .customer-portal .order-account{max-width:100%;gap:8px;font-size:11px}
  .customer-portal .order-account input{font-size:11px;flex:1;width:auto}
  .customer-portal .order-create-card>.body{padding:12px}
  .template-inline .template-tabs button{padding:8px 10px}
  .template-inline input,.template-inline select{font-size:16px;min-height:42px}
  .template-inline .template-context select{font-size:16px;min-height:42px}
  .order-compose.template-inline>footer{flex-direction:column;align-items:stretch}
  .order-compose.template-inline>footer .primary{min-height:44px}
}

/* One declaration row spans the form, with overflow contained inside the table. */
.order-compose .template-section.order-declaration-section{
  min-width:0;max-width:100%;margin-top:12px;padding:16px;
  border:1px solid #e7e9ee;border-radius:11px;
}
.order-compose .order-declaration-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;
}
.order-compose .order-declaration-head h3{margin:0}
.order-compose .order-declaration-controls{display:flex;align-items:center;gap:6px;flex-shrink:0}
.order-compose .order-declaration-controls>span{margin-right:6px;color:#777c86;font-size:11px}
.order-compose .order-declaration-controls button{
  display:grid;place-items:center;width:30px;height:28px;padding:0;border:1px solid #dfe3ea;
  border-radius:6px;background:#fff;color:#536078;font-size:17px;
}
.order-compose .order-declaration-controls button:hover{background:#edf3fc;color:#0066cc}
.order-compose .order-declaration-scroll{
  max-width:100%;overflow-x:auto;border:1px solid #e3e7ee;border-radius:8px;
  scrollbar-width:auto;scrollbar-color:#b8c4d5 #f3f5f8;
  overscroll-behavior-x:contain;scroll-padding-inline:50px;
}
.order-compose .order-declaration-scroll::-webkit-scrollbar{height:10px}
.order-compose .order-declaration-scroll::-webkit-scrollbar-track{background:#f3f5f8}
.order-compose .order-declaration-scroll::-webkit-scrollbar-thumb{
  background:#b8c4d5;border:2px solid #f3f5f8;border-radius:6px;
}
.order-compose .order-declaration-table{
  width:2168px;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;
}
.order-compose .order-declaration-table caption,
.order-compose .order-declaration-table .order-field>span:first-child{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;
  white-space:nowrap;clip-path:inset(50%);
}
.order-compose .order-declaration-table th,.order-compose .order-declaration-table td{
  padding:10px;border:0;border-right:1px solid #e8ebf0;text-align:left;vertical-align:middle;
  font-size:12px;line-height:1.5;
}
.order-compose .order-declaration-table thead th{
  padding:10px 12px;background:#f6f8fb;color:#626c7c;font-weight:500;border-bottom:1px solid #e8ebf0;
}
.order-compose .order-declaration-table tr>:last-child{border-right:0}
.order-compose .order-declaration-table tr>th:first-child{
  position:sticky;left:0;z-index:1;text-align:center;white-space:nowrap;padding-inline:6px;
}
.order-compose .order-declaration-table tbody th{background:#fff;color:#8993a2;font-weight:400}
.order-compose .order-declaration-table input{min-height:38px;width:100%;font-size:13px}
.order-compose .order-declaration-table .order-field{display:block;margin:0}
.order-compose .order-declaration-section [data-stock]:not(:empty){margin:0 0 10px;font-size:12px}
.order-compose .order-ioss{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:12px;
  margin-top:12px;padding:12px;background:#f7f9fc;border:1px solid #e6ebf3;border-radius:8px;
}
.order-compose .order-ioss p{margin:0 0 10px;color:#777c86;font-size:11px;line-height:1.6}
.order-compose .postal-check{margin-top:12px;padding:12px;border:1px solid #e1e7ef;border-radius:8px;background:#f8fafc;min-width:0}
.order-compose .postal-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}
.order-compose .postal-check button{min-height:30px;border:1px solid #cfdbe9;border-radius:6px;background:white;color:#0066cc;font-size:11px;padding:5px 10px;white-space:nowrap}
.order-compose .postal-check button:disabled{opacity:.5}
.order-compose .postal-message{font-size:12px;line-height:1.65;color:#66758a;margin:6px 0 0}
.order-compose .postal-check[data-tone=warning]{background:#fffbf2;border-color:#eeddb5}
.order-compose .postal-check[data-tone=warning] .postal-message{color:#866321}
.order-compose .postal-check[data-tone=error] .postal-message{color:#b42318}
.order-compose .postal-check[data-tone=success]{background:#f2faf5;border-color:#cbe5d5}
.order-compose .postal-check[data-tone=success] .postal-message{color:#26764c}
.order-compose .postal-choices{display:flex;align-items:center;gap:8px;min-width:0;margin-top:10px}
.order-compose .postal-choices select{flex:1;min-width:0;font-size:12px;min-height:34px;padding:6px 9px;background:white}
.order-compose .postal-check .postal-manual{margin-top:9px;background:transparent;border:0;padding:0;min-height:26px;color:#7b6539;text-align:left;white-space:normal}
.order-compose .postal-source{font-size:10px;color:#7c8591;line-height:1.7;margin:8px 0 0}
@media(max-width:700px){.order-compose .postal-choices{flex-direction:column;align-items:stretch}.order-compose .postal-choices select{width:100%;font-size:16px}.order-compose .postal-heading{flex-wrap:wrap}.order-compose .postal-check button{min-height:36px}}
@media(max-width:700px){
  .order-compose .template-section.order-declaration-section{padding:12px}
  .order-compose .order-declaration-head{align-items:flex-start;flex-wrap:wrap;gap:8px}
  .order-compose .order-declaration-controls{margin-left:auto}
  .order-compose .order-ioss{grid-template-columns:minmax(0,1fr);gap:6px}
  .order-compose .order-ioss p{margin:0}
  .order-compose .order-declaration-table input{font-size:16px;min-height:42px}
}
/* AI address recognition in the order entry address section. */
.order-ai-address{border:1px solid #dbe7f8;background:linear-gradient(135deg,#f7faff,#eef5ff);border-radius:8px;padding:11px 12px;margin:0 0 12px}
.order-ai-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin-bottom:7px}
.order-ai-head b{font-size:10px;color:#285589;letter-spacing:.02em}
.order-ai-head span{font-size:8.5px;color:#7588a1;line-height:1.5}
.order-ai-address textarea{width:100%;min-height:58px;resize:vertical;border:1px solid #cfdff3;border-radius:6px;background:#fff;color:#263750;padding:8px 9px;font:inherit;font-size:10px;line-height:1.6}
.order-ai-address textarea:focus{outline:3px solid #3476df22;outline-offset:1px;border-color:#8cb4ea}
.order-ai-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px}
.order-ai-actions .primary,.order-ai-actions .secondary{height:28px;padding:0 10px;font-size:9px}
.order-ai-actions [data-ai-status]{font-size:8.5px;color:#7588a1;line-height:1.45;flex:1;min-width:180px}
@media(max-width:600px){.order-ai-actions [data-ai-status]{flex-basis:100%}}
