.th-hub-mode .th-admin:is([data-th-view=vouchers],[data-th-view=cards],[data-th-view=orders])>.th-studio-title{display:none}
.th-commerce-empty,.th-commerce-lookup,.th-commerce-order{padding:22px;margin-bottom:20px}
.th-commerce-lookup>form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.th-commerce-lookup label{flex:1;min-width:170px}
.th-commerce-lookup video{width:100%;max-height:300px;object-fit:cover;border-radius:10px;background:#222}
.th-commerce-lookup [data-th-scan-message]{width:100%;margin:0;font-size:12px;color:var(--th-ui-muted)}
.th-commerce-detail{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:24px;padding:24px;margin-bottom:20px}
.th-commerce-detail .th-benefit-art{align-self:start}
.th-commerce-detail-body{min-width:0}
.th-commerce-detail-body>p{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.th-commerce-detail-body>.th-screen-secondary{margin:8px 0 16px}
.th-commerce-form{display:grid;gap:14px;min-width:0}
.th-commerce-form h3{margin:0;font-size:16px}
.th-hub-mode .th-admin :is(.th-commerce-form,.th-commerce-filters,.th-commerce-lookup) label{display:block;color:var(--th-ui-muted);font-size:12px;font-weight:600;line-height:1.6;min-width:0}
.th-hub-mode .th-admin :is(.th-commerce-form,.th-commerce-filters,.th-commerce-lookup) :is(input:not([type=hidden],[type=checkbox]),select,textarea){display:block;width:100%;max-width:100%;min-height:44px;border:1px solid var(--th-ui-line);border-radius:8px;padding:9px 11px;background:var(--th-ui-surface);color:var(--th-ui-ink);font:inherit;margin:5px 0 0;box-sizing:border-box}
.th-commerce-form .th-screen-primary{justify-self:start}
.th-commerce-form .th-commerce-ack{display:flex!important;gap:9px;align-items:start;color:var(--th-ui-ink)!important;font-size:12px}
.th-commerce-ack input{flex-shrink:0;margin:3px 0 0}
.th-commerce-used{padding:14px;background:var(--th-brand-soft);color:var(--th-brand-ink);border-radius:9px}
.th-hub-mode .th-admin .th-commerce-issue{padding:18px 22px;margin:0 0 20px}
.th-commerce-issue>summary{cursor:pointer;font-size:15px;font-weight:800;color:var(--th-brand-ink)}
.th-commerce-issue[open]>.th-commerce-form{margin-top:20px;max-width:680px}
.th-commerce-register{padding:22px;margin-bottom:20px;min-width:0}
.th-commerce-register>header,.th-commerce-order>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px}
.th-commerce-register h2,.th-commerce-order h2{margin:0;font-size:20px}
.th-commerce-register header>span{font-size:12px;color:var(--th-ui-muted)}
.th-commerce-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:20px}
.th-commerce-filters>label{flex:1;min-width:170px}
.th-commerce-table-wrap{overflow:auto;max-width:100%;scrollbar-width:thin}
.th-hub-mode .th-admin .th-commerce-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left;background:transparent}
.th-commerce-table th{color:var(--th-ui-muted);font-size:11px;font-weight:600;padding:11px;border-bottom:1px solid var(--th-ui-line);white-space:nowrap}
.th-commerce-table td{padding:14px 11px;border-bottom:1px solid var(--th-ui-line);vertical-align:top;min-width:110px}
.th-commerce-table td:first-child{min-width:190px}
.th-commerce-table td small{display:block;font-size:11px;line-height:1.6;color:var(--th-ui-muted);margin-top:5px;max-width:240px;overflow-wrap:anywhere}
.th-commerce-table a,.th-commerce-pagination a,.th-commerce-profile a{color:var(--th-brand-ink,#7b293e);text-decoration:none;font-weight:700}
.th-commerce-table a:hover,.th-commerce-profile a:hover{text-decoration:underline}
.th-commerce-pagination{display:flex;justify-content:center;align-items:center;gap:20px;font-size:13px;margin:20px 0 0}
.th-commerce-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.th-commerce-order>p,.th-commerce-order li{font-size:14px;line-height:1.7}
.th-commerce-profile-list{display:grid;gap:12px;min-width:0}
.th-commerce-profile-list>article,.th-commerce-profile-list>a{display:flex;flex-direction:column;align-items:start;gap:7px;border:1px solid var(--th-ui-line,#e6e0df);border-radius:9px;padding:14px;background:var(--th-ui-surface,#fff);min-width:0;overflow-wrap:anywhere}
.th-commerce-profile-list p{margin:0;font-size:12px;line-height:1.7;color:var(--th-ui-muted,#726b70)}
.th-commerce-profile-list code{font:700 12px/1.5 monospace;padding:3px 6px;border-radius:5px;background:var(--th-brand-soft,#f3e7ea);color:var(--th-brand-ink,#7b293e)}
.th-commerce-profile-list small,.th-commerce-profile-list>a>span{font-size:11px;color:var(--th-ui-muted,#726b70);line-height:1.7}
.th-commerce-profile-list a{font-size:12px}
.th-hub-mode .th-admin .th-profile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.th-hub-mode .th-admin .th-profile-tabs a{min-width:0;text-align:center;white-space:normal}
.woocommerce .th-commerce-profile{margin:0 0 28px}
.woocommerce .th-commerce-profile-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.woocommerce .th-loyalty-card{border:1px solid #dfccd1;background:#fbf5f2;color:#431923;border-radius:12px;padding:20px;margin-bottom:24px}
.woocommerce .th-loyalty-card header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.woocommerce .th-loyalty-card header strong,.woocommerce .th-loyalty-kicker,.woocommerce .th-loyalty-card header small{display:block}
.woocommerce .th-loyalty-card header>b{font-size:26px;text-align:right}
.woocommerce .th-loyalty-card header small,.woocommerce .th-loyalty-kicker{font-size:12px}
.woocommerce .th-loyalty-card progress{width:100%;accent-color:#7b293e;margin-top:16px}
.woocommerce .th-loyalty-history ul{padding:0;list-style:none}
.woocommerce .th-loyalty-history li{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #dfccd1;font-size:12px}
.woocommerce .th-loyalty-history li small{display:block}
@media(max-width:1100px){.th-commerce-detail{grid-template-columns:minmax(0,1fr)}.th-commerce-detail>.th-benefit-art{max-width:680px;width:100%;justify-self:center}}
@media(max-width:600px){.th-commerce-empty,.th-commerce-lookup,.th-commerce-order,.th-commerce-register,.th-commerce-detail{padding:16px}.th-commerce-detail{gap:20px}.th-hub-mode .th-admin .th-commerce-issue{padding:16px}.th-commerce-filters>label,.th-commerce-lookup label{flex-basis:100%}.th-commerce-register>header,.th-commerce-order>header{flex-wrap:wrap}.th-commerce-register h2,.th-commerce-order h2{font-size:18px}.th-commerce-lookup>form>.th-screen-primary{flex:1}.th-commerce-detail .th-benefit-art-code{padding:16px 6px}.th-commerce-detail .th-benefit-art-main{padding:20px 8px}.th-commerce-form .th-screen-primary{white-space:normal}.th-commerce-detail .th-benefit-art-main>strong{font-size:10px}}

.th-discount-card-body{display:grid;gap:12px;padding:14px 0 0}
.th-discount-card-body label{font-size:12px;color:var(--th-ui-muted);line-height:1.6}
.th-hub-mode .th-admin .th-discount-card-body :is(input:not([type=hidden],[type=checkbox]),select){width:100%;margin-top:5px}
.th-discount-card-body>.button{justify-self:start}
.th-discount-card-body>[data-th-card-ack]{display:flex;align-items:start;gap:8px;font-size:12px;color:var(--th-ui-ink)}
.th-discount-card-body>[data-th-card-ack][hidden]{display:none}

.th-review-count{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 4px;margin-left:4px;background:#a54135;color:white;border-radius:20px;font-size:10px;font-weight:800}
.th-commerce-table .th-order-needs-link{color:#8e2e3f;background:#f3e7ea;padding:4px 6px;border-radius:5px;font-weight:700;width:fit-content}
.th-alert-item.needs-action{border-left:3px solid #a54135}
.th-commerce-new-client{margin-top:20px;padding-top:16px;border-top:1px solid var(--th-ui-line)}
.th-commerce-new-client>summary{cursor:pointer;color:var(--th-brand-ink);font-weight:700;font-size:12px}
.th-commerce-new-client[open]>.th-commerce-form{margin-top:16px}

.th-hub-mode .th-admin :is([data-th-order-profile],[data-th-start-scan],[data-th-real-voucher-ack])[hidden]{display:none!important}
.th-client-shared-contact{color:var(--th-brand-ink)!important;font-size:10px!important;white-space:normal!important}
.th-client-identity{font-size:11px;color:var(--th-ui-muted);line-height:1.6;margin:6px 0 0}
.th-hub-mode .th-admin[data-th-view=vouchers]>p>.th-screen-text{white-space:normal;max-width:100%;text-align:left;justify-content:flex-start}
