/* V15 template tools inherit the approved static monochrome glass system. */
.template-customer-tools{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:17px 18px;margin-bottom:22px;border:1px solid #e3e6e9;border-radius:16px;background:linear-gradient(140deg,#ffffffd9,#f4f5f7b3);box-shadow:inset 0 1px #fff,0 5px 18px #1b253207}
.template-customer-tools>div{min-width:0}.template-customer-tools b{display:block;font-size:15px;color:#25292d}.template-customer-tools small{display:block;font-size:12px;color:#727983;margin-top:6px;line-height:1.6}.template-customer-tools>div:last-child,.template-order-tools{display:flex;gap:8px;flex-wrap:wrap}.template-order-tools{margin-top:14px}.template-customer-tools .btn,.template-order-tools .btn{min-height:44px;font-size:13px;white-space:normal}.template-filled{padding:13px 15px;border:1px solid #dbe2df;border-radius:12px;background:#f2f6f4;color:#354c41;margin-bottom:20px;font-size:13px;line-height:1.7}.template-filled b,.template-filled span{display:block}
body dialog.template-import-dialog{width:min(760px,calc(100vw - 40px));max-width:calc(100vw - 40px);padding:0;overflow:hidden;max-height:calc(100dvh - 40px)}body dialog.template-copy-dialog{width:min(640px,calc(100vw - 40px));max-width:calc(100vw - 40px);padding:0;overflow:hidden}body .template-import-dialog>form,body .template-copy-dialog>form{margin:0;max-height:calc(100dvh - 40px);min-height:0;overflow:hidden}.template-import-dialog .panel-h>div{min-width:0}.template-import-dialog .template-eyebrow{display:block;letter-spacing:1.5px;font-size:11px;margin:0 0 7px;color:#828a94}.template-import-dialog .panel-h h2{font-size:24px}.template-import-dialog .dialog-body{padding-top:22px}.template-context{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 0 18px;margin:0 0 19px;border-bottom:1px solid #e6e8ec;font-size:14px}.template-context b{overflow-wrap:anywhere}.template-context span{font-size:12px;color:#79818c;overflow-wrap:anywhere}.template-source-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.template-source-heading label{font-size:14px;font-weight:600}.template-source-heading .btn{min-height:44px;font-size:12px;flex-shrink:0}
body .template-import-dialog textarea[data-template-source],body .template-copy-dialog textarea.template-copy-text{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:250px;resize:vertical;line-height:1.9;font-family:inherit;font-size:14px;border:1px solid #dce0e5;border-radius:14px;padding:16px;background:#fafbfd;color:#262b32}body .template-copy-dialog textarea.template-copy-text{min-height:340px}.template-source-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8b919b;font-size:11px;margin-top:6px}.template-source-meta .btn{font-size:12px;min-height:44px;padding:6px 11px}.template-explain,.template-status,.template-subtitle{color:#7a828b;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.template-status{padding-top:14px;margin:0;border-top:1px solid #edf0f2;margin-top:15px}.template-feedback{padding:13px 15px;background:#f5f6f8;border:1px solid #dbe0e6;border-radius:12px;margin-bottom:16px;white-space:pre-line;line-height:1.8;font-size:13px;color:#3c4753;overflow-wrap:anywhere}.template-feedback.is-error{background:#fff6f2;border-color:#edcbbb;color:#8c482d}.template-feedback[hidden]{display:none}.template-items>div{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #e9ecf0;font-size:14px}.template-items span{min-width:0;overflow-wrap:anywhere}.template-items small{display:block;font-size:12px;color:#818995;margin-top:7px}.template-items strong{font-size:16px;white-space:nowrap}.template-order-total{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:21px 0;font-size:13px;color:#727a85}.template-order-total strong{font-size:28px;color:#20262e}.template-shipping,.template-special{border:1px solid #e2e6eb;border-radius:14px;padding:17px;margin-top:15px;overflow-wrap:anywhere}.template-shipping small,.template-shipping b{display:block}.template-shipping small,.template-special small{font-size:12px;color:#7e8793}.template-shipping b{font-size:14px;margin:9px 0}.template-shipping p,.template-special p{font-size:13px;line-height:1.8;margin:5px 0}.template-special{background:#f6f7f9}.template-special b{font-size:14px}.template-import-dialog .footer-actions .btn,.template-copy-dialog .footer-actions .btn{min-height:46px}.template-import-dialog .footer-actions{justify-content:flex-end}
@media(max-width:650px){.template-customer-tools{display:block;padding:15px;margin-bottom:20px}.template-customer-tools>div:last-child{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:13px}.template-customer-tools .btn{padding:10px;font-size:12px}.template-order-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.template-order-tools .btn{padding:10px 8px;font-size:12px}body dialog.template-import-dialog,body dialog.template-copy-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 18px)}body .template-import-dialog>form,body .template-copy-dialog>form{max-height:calc(100dvh - 18px)}.template-import-dialog .panel-h h2{font-size:21px}.template-context{display:block}.template-context span{display:block;margin-top:7px}.template-source-heading{align-items:flex-start}.template-source-heading label{padding-top:12px;font-size:13px}.template-source-heading .btn{padding:10px 12px}body .template-import-dialog textarea[data-template-source],body .template-copy-dialog textarea.template-copy-text{font-size:16px;min-height:225px;padding:13px}.template-order-total strong{font-size:25px}.template-import-dialog .footer-actions .btn{flex:1;min-width:0;white-space:normal}.template-import-dialog .dialog-body,.template-copy-dialog .dialog-body{overscroll-behavior:contain}.template-items strong{font-size:14px}.template-subtitle{margin-top:0}.template-copy-dialog .footer-actions .btn{flex:1}}

body dialog.template-import-dialog .panel-h>div{flex:1;min-width:0}body dialog.template-import-dialog .panel-h h2{width:auto;max-width:none}
body dialog.template-import-dialog .icon-close,body dialog.template-copy-dialog .icon-close{width:44px;height:44px;min-width:44px}
