/* Shared merchant controls. Keep these rules after the legacy styles. */
.modal:has(.leave-program-confirm){max-width:420px}
.leave-program-confirm h2{font-size:22px;line-height:1.2;margin:0 0 12px}
.leave-program-confirm p{font-size:13px;line-height:1.5;margin:8px 0;color:#655e55}
.leave-program-confirm label{display:block;font-size:12px;font-weight:700;margin:16px 0 8px}
.leave-program-confirm select{width:100%;font-size:13px}
.leave-program-confirm small{display:block;font-size:12px;line-height:1.4;color:#655e55;margin-top:8px}
.leave-confirm-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:20px}
.leave-confirm-actions .button{min-height:40px;padding:8px 14px;font-size:12px;border-radius:10px}

/* Temporary, in-person reward withdrawal code. */
.redemption-code-modal{text-align:center}
.redemption-code-modal h2{margin:8px 0 8px;font-size:23px;line-height:1.16}
.redemption-code-modal .modal-intro{margin:0 auto 14px;max-width:285px;font-size:13px;line-height:1.45}
.redemption-code-qr{width:174px;height:174px;margin:0 auto 12px;padding:10px;background:#fff;border:1px solid #e4dbcf;border-radius:14px}
.redemption-code-qr svg{display:block;width:100%;height:100%}
.redemption-code-value{display:block;letter-spacing:.11em;font-size:18px;color:#171717}
.redemption-code-expiry{margin:9px 0 6px;font-size:12px;color:#655e55}
.redemption-code-modal .helper-note{margin:0 auto 16px;max-width:290px;font-size:11px;line-height:1.45}
@media(max-width:720px){
 .redemption-code-qr{width:158px;height:158px}
 .redemption-code-modal h2{font-size:21px}
}
/* Shared compact reward layout for customer and merchant mobile views. */
@media(max-width:720px){
 .shell .workspace .rewards-grid{grid-template-columns:minmax(0,1fr);gap:12px}
 .shell .workspace .reward-card{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:start;gap:12px;padding:12px;border-radius:14px;min-width:0}
 .shell .workspace .reward-card>img{width:88px;height:96px;border-radius:10px;object-fit:cover}
 .shell .workspace .reward-content{min-width:0;padding:0}
 .shell .workspace .reward-content .merchant-name{margin:0 0 4px;font-size:11px;line-height:1.3}
 .shell .workspace .reward-content h3{min-height:0;margin:0;font-size:15px;line-height:1.3;overflow-wrap:anywhere}
 .shell .workspace .reward-points{margin:8px 0;font-size:14px;gap:5px}
 .shell .workspace .reward-points small{font-size:11px}
 .shell .workspace .reward-content p{font-size:11px;line-height:1.4;margin:6px 0}
 .shell .workspace .reward-content .progress{height:5px;margin:8px 0}
 .shell .workspace .reward-content>.button{min-height:44px;padding:8px;font-size:12px;border-radius:10px;white-space:normal}
 .shell .workspace .reward-manage .reward-content>.between{flex-wrap:wrap;gap:8px}
 .shell .workspace .reward-manage .icon-button{width:44px;height:44px}
 .shell .workspace .reward-manage .status-badge{font-size:11px}
}
.merchant-workspace{--merchant-control-height:44px;--merchant-space:16px}
.merchant-workspace :is(button,a,input,select,textarea):focus-visible{outline:3px solid #F4511E;outline-offset:3px}
.merchant-workspace .counter-layout{gap:24px}
.merchant-workspace .counter-layout .content-card{min-height:0;padding:24px;border:1px solid #DDD6CB;border-radius:16px;background:#FFFCF7;box-shadow:none}
.merchant-workspace .counter-layout h2{font-size:24px;line-height:1.2;margin:12px 0}
.merchant-workspace .counter-layout .content-card>p{font-size:13px;line-height:1.55;margin-bottom:16px}
.merchant-workspace .counter-identify-actions{margin:20px 0 16px}
.merchant-workspace .counter-identify-actions .button{min-height:48px;font-size:14px;width:100%;justify-content:center;border-radius:12px}
.merchant-workspace #counter-search-form .button{min-height:44px;font-size:13px;background:transparent;color:#171717;border:1px solid #BDB7AD;box-shadow:none}
.merchant-workspace .counter-layout .field label{font-size:12px;line-height:1.5}
.merchant-workspace .counter-layout .field input{min-height:48px;font-size:16px;border-radius:12px}
.merchant-workspace .counter-layout .helper-note{font-size:12px;line-height:1.5}
.merchant-workspace .counter-checkout .check-row{font-size:13px;line-height:1.5;gap:10px}
.merchant-workspace .counter-checkout form>.button{min-height:48px;font-size:13px;border-radius:12px;white-space:normal}
.merchant-workspace .counter-await{padding:24px 12px}
.merchant-workspace .counter-await p{font-size:13px;line-height:1.5}
.merchant-workspace .counter-member{margin-top:16px}
.accrual-mode-options label:has(input[value="visit"]){display:none}
.merchant-workspace .loyalty-settings{grid-template-columns:1fr}
.merchant-workspace .loyalty-settings>.loyalty-rule:nth-child(2){display:none}
.accrual-mode-options{display:none}
.merchant-workspace .counter-search>.eyebrow:first-child,.merchant-workspace .counter-checkout>.eyebrow:first-child{display:none}
.merchant-workspace .merchant-overview{display:grid;gap:20px;margin-top:8px}
.merchant-workspace .overview-next-step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px;border:1px solid #e2d8cc;border-radius:14px;background:#fffaf2}
.merchant-workspace .overview-next-step>span{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f4511e;color:#fff}
.merchant-workspace .overview-next-step p{margin:0 0 2px;font-size:9px;font-weight:800;letter-spacing:.11em;color:#8a7564}
.merchant-workspace .overview-next-step h2{margin:0;font-size:15px;line-height:1.2}
.merchant-workspace .overview-next-step small{display:block;margin-top:2px;font-size:11px;line-height:1.35;color:#655e55}
.merchant-workspace .overview-next-step .text-link{white-space:nowrap;font-size:12px}
.merchant-workspace .overview-status-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;padding:20px 22px;border:1px solid #DDD6CB;border-radius:16px;background:#FFFCF7}
.merchant-workspace .overview-status-card.status-live{border-color:#cbe2d1;background:#f7fcf7}
.merchant-workspace .overview-status-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#171717;color:#fff}
.merchant-workspace .status-live .overview-status-icon{background:#357a47}
.merchant-workspace .status-draft .overview-status-icon{background:#f2cd60;color:#171717}
.merchant-workspace .overview-status-card .eyebrow{display:block;margin-bottom:5px;color:#746b61}
.merchant-workspace .overview-status-card h2{margin:0;font-size:18px;line-height:1.2}
.merchant-workspace .overview-status-card p{margin:5px 0 0;font-size:12px;line-height:1.45;color:#655e55}
.merchant-workspace .overview-actions{display:grid;grid-template-columns:1.18fr 1fr;gap:16px}
.merchant-workspace .overview-actions>button{display:flex;align-items:center;gap:14px;min-height:112px;padding:20px;border:1px solid #DDD6CB;border-radius:16px;text-align:left;box-shadow:none}
.merchant-workspace .overview-actions>button>span:first-child{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border-radius:12px}
.merchant-workspace .overview-primary-action{background:#171717;color:#fff;border-color:#171717!important}
.merchant-workspace .overview-primary-action>span:first-child{background:#f4511e;color:#fff}
.merchant-workspace .overview-secondary-action{background:#FFFCF7;color:#171717}
.merchant-workspace .overview-secondary-action>span:first-child{background:#f5f0e6;color:#f4511e}
.merchant-workspace .overview-actions>button>div{min-width:0;flex:1}
.merchant-workspace .overview-actions small{display:block;margin-bottom:4px;font-size:10px;font-weight:800;letter-spacing:.1em}
.merchant-workspace .overview-actions strong{display:block;font-size:17px;line-height:1.2}
.merchant-workspace .overview-actions em{display:block;margin-top:5px;font-size:12px;font-style:normal;line-height:1.35;opacity:.76}
.merchant-workspace .overview-actions>button>svg:last-child{width:20px;height:20px}
.merchant-workspace .overview-summary{padding:20px 22px;border:1px solid #DDD6CB;border-radius:16px;background:#FFFCF7}
.merchant-workspace .overview-results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.merchant-workspace .overview-results-heading>.flex{gap:10px}
.merchant-workspace .overview-results-heading .inline-badge{display:none}
.merchant-workspace .overview-result-metrics{margin:16px 0 20px}
.merchant-workspace .overview-results-bottom{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-top:16px}
.merchant-workspace .overview-results-bottom>.content-card{min-width:0;padding:16px;border:1px solid #e5ddd3;border-radius:12px;background:#fffdf9;box-shadow:none}
.merchant-workspace .overview-results-bottom h3{font-size:14px}
.merchant-workspace .overview-results-bottom .loyalty-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}
.merchant-workspace .overview-results-bottom .loyalty-numbers>div{display:grid;gap:4px;min-width:0}
.merchant-workspace .overview-results-bottom .loyalty-numbers strong{font-size:20px;line-height:1.1}
.merchant-workspace .overview-results-bottom .loyalty-numbers span{font-size:10px;line-height:1.35;color:#655e55}
.merchant-workspace .overview-results-bottom .helper-note{font-size:9px;line-height:1.5}
.merchant-workspace .overview-actions-results .action-results{display:grid;gap:8px;margin-top:12px}
.merchant-workspace .overview-actions-results .action-results>div{display:flex;justify-content:space-between;gap:10px;padding-bottom:7px;border-bottom:1px solid #eee8df;font-size:10px}
.merchant-workspace .overview-actions-results .action-results strong{font-size:12px}
.merchant-workspace .overview-section-heading>.eyebrow{display:block;margin-bottom:5px;color:#746b61}
.merchant-workspace .overview-section-heading h2{margin:0;font-size:17px;line-height:1.25}
.merchant-workspace .overview-metric-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.merchant-workspace .overview-metric-list>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;column-gap:12px;min-width:0;padding:14px;border:1px solid #e5ddd3;border-radius:12px;background:#fffdf9}
.merchant-workspace .overview-metric-list>div+div{border-left:1px solid #e5ddd3}
.merchant-workspace .overview-metric-list span{display:grid;place-items:center;grid-row:span 2;width:34px;height:34px;border-radius:10px;background:#f5f0e6;color:#f4511e}
.merchant-workspace .overview-metric-list strong{font-size:22px;line-height:1}
.merchant-workspace .overview-metric-list small{margin-top:4px;font-size:11px;line-height:1.35;color:#655e55}
.merchant-workspace .overview-metric-list .has-pending strong{color:#d94a1d}
.merchant-workspace .overview-shortcuts{padding:20px 22px;border:1px solid #DDD6CB;border-radius:16px;background:#FFFCF7}
.merchant-workspace .overview-shortcut-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}
.merchant-workspace .overview-shortcut-list>button{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:9px;align-items:center;min-height:58px;padding:10px;border:1px solid #e5ddd3;border-radius:12px;background:#fffdf9;color:#171717;text-align:left;box-shadow:none}
.merchant-workspace .overview-shortcut-list>button:hover{border-color:#f4511e;background:#fff8f4}
.merchant-workspace .overview-shortcut-list>button>span{display:grid;place-items:center;grid-row:span 2;width:28px;height:28px;border-radius:8px;background:#f5f0e6;color:#f4511e}
.merchant-workspace .overview-shortcut-list strong{font-size:12px;line-height:1.2}
.merchant-workspace .overview-shortcut-list small{font-size:10px;line-height:1.25;color:#746b61}
.merchant-workspace .overview-shortcut-list>button>svg:last-child{position:absolute;right:8px;bottom:8px;width:12px;height:12px;color:#9d9388}
.merchant-workspace .overview-details-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:24px;align-items:stretch}
.merchant-workspace .overview-program-wrap .merchant-program{height:100%;min-height:0;padding:24px;border-radius:16px;box-shadow:none}
.merchant-workspace .overview-program-wrap .merchant-program h2{font-size:24px;line-height:1.15}
.merchant-workspace .overview-program-wrap .merchant-program p{font-size:13px;line-height:1.5}
.merchant-workspace .overview-activity{padding:22px;border:1px solid #DDD6CB;border-radius:16px;background:#FFFCF7;box-shadow:none}
.merchant-workspace .overview-activity .between{align-items:center;gap:12px}
.merchant-workspace .overview-activity .text-link{font-size:12px;white-space:nowrap}
.merchant-workspace .overview-activity .activity-list{margin-top:14px}
@media(max-width:720px){
 .merchant-workspace .merchant-overview{gap:16px;margin-top:0}
 .merchant-workspace .overview-results{display:grid;gap:14px;min-width:0}
 .merchant-workspace .overview-results-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
 .merchant-workspace .overview-results-heading>.flex{width:auto;justify-content:flex-end;min-width:0}
 .merchant-workspace .overview-results-heading .select{width:auto;max-width:140px;min-width:0;flex:0 1 auto}
 .merchant-workspace .overview-results-heading .inline-badge{display:none}
 .merchant-workspace .overview-result-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
 .merchant-workspace .overview-result-metrics .metric-card{min-width:0;padding:12px;border-radius:13px}
 .merchant-workspace .overview-result-metrics .metric-label{min-height:26px;font-size:9px;line-height:1.35;white-space:normal}
 .merchant-workspace .overview-result-metrics .between{gap:6px;align-items:center}
 .merchant-workspace .overview-result-metrics .metric-value{font-size:22px;line-height:1.1;overflow-wrap:anywhere}
 .merchant-workspace .overview-result-metrics .metric-icon{width:29px!important;height:29px!important;flex:0 0 29px}
 .merchant-workspace .overview-result-metrics .metric-detail{margin-top:6px;font-size:8px;line-height:1.4;white-space:normal}
 .merchant-workspace .overview-results .content-performance{min-width:0;padding:14px;border-radius:14px}
 .merchant-workspace .overview-results .content-performance>.between{align-items:flex-start;gap:8px}
 .merchant-workspace .overview-results .content-performance>.between>div{min-width:0}
 .merchant-workspace .overview-results .content-performance .inline-badge{display:none}
 .merchant-workspace .overview-results .content-performance h3{font-size:13px;line-height:1.3}
 .merchant-workspace .overview-results .content-performance p{font-size:9px;line-height:1.45;margin-top:4px}
 .merchant-workspace .overview-results .result-table{max-width:100%;margin-top:10px;border-radius:10px}
 .merchant-workspace .overview-results .result-table table{min-width:500px}
 .merchant-workspace .overview-results .result-table th,.merchant-workspace .overview-results .result-table td{padding:10px 9px;font-size:9px}
 .merchant-workspace .overview-results-bottom{grid-template-columns:minmax(0,1fr);gap:10px;margin:0}
 .merchant-workspace .overview-results-bottom>.content-card{min-width:0;padding:15px;border-radius:14px}
 .merchant-workspace .overview-results-bottom .between{align-items:center;gap:8px}
 .merchant-workspace .overview-results-bottom .between .text-link{flex:0 0 auto;font-size:9px}
 .merchant-workspace .overview-results-bottom h3{font-size:13px;line-height:1.35}
 .merchant-workspace .overview-results-bottom .loyalty-numbers{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}
 .merchant-workspace .overview-results-bottom .loyalty-numbers>div{min-width:0;padding:8px 6px;border-radius:9px;background:#f8f5ef}
 .merchant-workspace .overview-results-bottom .loyalty-numbers strong{font-size:18px}
 .merchant-workspace .overview-results-bottom .loyalty-numbers span{font-size:8px;line-height:1.35;overflow-wrap:anywhere}
 .merchant-workspace .overview-results-bottom .helper-note{font-size:9px;line-height:1.5}
 .merchant-workspace .overview-results-bottom .action-results{gap:0}
 .merchant-workspace .overview-results-bottom .action-results>div{padding:9px 0;font-size:10px}
 .merchant-workspace .overview-next-step{gap:10px;padding:12px}
 .merchant-workspace .overview-next-step>span{width:30px;height:30px;border-radius:9px}
 .merchant-workspace .overview-next-step h2{font-size:14px}
 .merchant-workspace .overview-next-step small{font-size:10px}
 .merchant-workspace .overview-next-step .text-link{font-size:11px}
 .merchant-workspace .overview-status-card{grid-template-columns:auto minmax(0,1fr);gap:12px;padding:16px}
 .merchant-workspace .overview-status-card .button{grid-column:1/-1;width:100%;margin-top:2px}
 .merchant-workspace .overview-status-icon{width:38px;height:38px;border-radius:10px}
 .merchant-workspace .overview-status-card h2{font-size:16px}
 .merchant-workspace .overview-status-card p{font-size:11px}
 .merchant-workspace .overview-actions{grid-template-columns:1fr;gap:10px}
 .merchant-workspace .overview-actions>button{min-height:82px;padding:15px}
 .merchant-workspace .overview-actions>button>span:first-child{width:38px;height:38px;border-radius:10px}
 .merchant-workspace .overview-actions strong{font-size:15px}
 .merchant-workspace .overview-actions em{font-size:11px}
 .merchant-workspace .overview-summary{padding:16px}
 .merchant-workspace .overview-results-heading{align-items:flex-start}
 .merchant-workspace .overview-results-heading>.flex{width:100%;justify-content:space-between}
 .merchant-workspace .overview-results-heading .select{flex:1;max-width:165px}
 .merchant-workspace .overview-result-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 16px}
 .merchant-workspace .overview-result-metrics .metric-card{min-width:0;padding:12px}
 .merchant-workspace .overview-result-metrics .metric-label{font-size:9px;line-height:1.3}
 .merchant-workspace .overview-result-metrics .metric-value{font-size:21px}
 .merchant-workspace .overview-result-metrics .metric-detail{font-size:8px;line-height:1.35}
 .merchant-workspace .overview-results-bottom{grid-template-columns:1fr;gap:10px;margin-top:12px}
 .merchant-workspace .overview-results-bottom .loyalty-numbers strong{font-size:18px}
 .merchant-workspace .overview-results-bottom .loyalty-numbers span{font-size:9px}
 .merchant-workspace .overview-summary .content-performance{padding:14px}
 .merchant-workspace .overview-summary .content-performance>.between{align-items:flex-start}
 .merchant-workspace .overview-summary .content-performance h3{font-size:12px}
 .merchant-workspace .overview-summary .content-performance p{font-size:9px;line-height:1.4;margin-top:3px}
 .merchant-workspace .overview-section-heading h2{font-size:16px}
 .merchant-workspace .overview-metric-list{gap:8px;margin-top:12px}
 .merchant-workspace .overview-metric-list>div{grid-template-columns:auto minmax(0,1fr);column-gap:8px;padding:10px}
 .merchant-workspace .overview-metric-list span{width:28px;height:28px;border-radius:8px}
 .merchant-workspace .overview-metric-list strong{font-size:20px}
 .merchant-workspace .overview-metric-list small{font-size:9px;overflow-wrap:anywhere}
 .merchant-workspace .overview-shortcuts{padding:16px}
 .merchant-workspace .overview-shortcut-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
 .merchant-workspace .overview-shortcut-list>button{min-height:56px;padding:9px;column-gap:8px}
 .merchant-workspace .overview-shortcut-list strong{font-size:11px}
 .merchant-workspace .overview-shortcut-list small{font-size:9px}
 .merchant-workspace .overview-details-grid{grid-template-columns:1fr;gap:16px}
 .merchant-workspace .overview-program-wrap .merchant-program{padding:18px}
 .merchant-workspace .overview-program-wrap .merchant-program h2{font-size:21px}
 .merchant-workspace .overview-activity{padding:18px}
}
@media(max-width:720px){
 .merchant-workspace .counter-layout{grid-template-columns:minmax(0,1fr);gap:16px}
 .merchant-workspace .counter-layout .content-card{padding:20px}
 .merchant-workspace .counter-layout h2{font-size:22px}
 .merchant-workspace:has(.counter-layout) .page-top{flex-wrap:wrap;gap:12px}
 .merchant-workspace:has(.counter-layout) .page-top>.button{min-height:44px;font-size:12px;background:#FFFCF7;color:#171717;border:1px solid #DDD6CB}
 .merchant-workspace .counter-recent-list>div{flex-wrap:wrap;gap:12px}
}
