/* Shared fit and control rhythm across merchant, member and public screens. */
:root{--app-control:48px;--app-gutter:clamp(16px,3vw,32px);--app-body:16px;--app-copy:#202b27;--app-muted:#526158;--app-action:#315e4a;--app-border:#dce4da}
body{color:var(--app-copy);text-rendering:optimizeLegibility}body *,body *::before,body *::after{box-sizing:border-box}body :is(main,section,article,form,.panel,.content,.commerce-grid>*,.discover-controls>*){min-width:0}body :is(img,video,canvas){max-width:100%}
.app>main{min-width:0}.app main .content{width:100%;max-width:1320px;margin-inline:auto}.commerce-page,.discover-page{width:100%;max-width:1180px;margin-inline:auto}.commerce-page h1,.discover-page h1{font-size:clamp(30px,4vw,42px);letter-spacing:-.025em}.commerce-page :is(p,dd),.discover-page p{line-height:1.6}
body :is(.primary,.primary-action,.commerce-button):not(.commerce-secondary){background-color:var(--app-action);color:#fff;border-color:var(--app-action)}body :is(.secondary,.commerce-secondary){background-color:#fff;color:#274f3b;border-color:#cbd7ca}body :is(.primary,.secondary,.commerce-button,.primary-action,.reward-action,.event-action){min-height:var(--app-control);padding:12px 20px;font-size:15px;font-weight:700;line-height:1.35;white-space:normal;text-align:center;border-radius:999px}body button:disabled{cursor:not-allowed}body :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){max-width:100%;font-size:16px;line-height:1.5;min-height:48px}body textarea{resize:vertical}body :is(input[type=checkbox],input[type=radio]){accent-color:var(--app-action)}body :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #8a6a25;outline-offset:3px}
.commerce-page label{line-height:1.5}.commerce-page fieldset{min-width:0;border:1px solid var(--app-border);border-radius:14px;padding:16px}.commerce-page legend{padding:0 6px;font-weight:700;color:#274f3b}.commerce-page :is(.commerce-help,small){color:var(--app-muted);font-size:14px}.commerce-fulfilment{display:inline-flex;width:fit-content;padding:5px 10px;border-radius:999px;background:#edf3e7;color:#274f3b;font-size:13px;font-weight:700}.commerce-page .commerce-tabs button{padding:10px 16px}.commerce-page .commerce-actions{gap:12px}.commerce-page :is(.commerce-top a,.commerce-inline>a){min-height:44px;display:inline-flex;align-items:center;line-height:1.4}
@media(max-width:700px){.commerce-page,.discover-page{padding-inline:16px}.commerce-panel{padding:20px;border-radius:16px}.commerce-page :is(.commerce-facts,.commerce-grid){grid-template-columns:minmax(0,1fr)}.commerce-page .commerce-actions>button{min-width:0;flex:1 1 130px}.commerce-page .commerce-top{gap:12px;align-items:center}.commerce-page h2{font-size:24px}.commerce-page .commerce-settings>p{font-size:15px}.commerce-page .commerce-menu-info{flex-basis:calc(100% - 110px)}.commerce-page .commerce-menu-row>label{width:100%}.commerce-page .commerce-menu-row input[type=number]{width:100%}.commerce-page .commerce-tabs{gap:8px;margin:20px 0}.commerce-page .commerce-tabs>button{flex:1 1 100px}.member-bottom-nav{padding-bottom:max(8px,env(safe-area-inset-bottom))}.member-bottom-nav :is(a,button){min-width:0;min-height:52px}.app .content{padding:24px 16px 48px}.app :is(.pagehead,.headline){gap:16px;align-items:flex-start}.app :is(.pagehead,.headline)>:is(button,a){max-width:100%}.app :is(.pagehead h1,.headline h1){font-size:30px}.app .panel{padding:20px}.app .modal{width:calc(100vw - 24px);max-width:560px;padding:24px 20px}.app .modalactions>button{flex:1 1 140px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}
/* Dialogs live outside the workspace main element; style them explicitly. */
body .modal{width:min(560px,calc(100vw - 32px));max-width:560px;max-height:calc(100dvh - 32px);padding:28px;overflow:auto}body .modal label{font-size:14px;line-height:1.5}body .modal label:has(>input[type=checkbox]){display:flex;align-items:flex-start;gap:10px;min-height:44px;padding-block:8px}body .modal input[type=checkbox]{display:inline-block;width:20px!important;min-width:20px!important;max-width:20px;height:20px!important;min-height:20px!important;margin:2px 0 0!important;padding:0!important;flex:none}body .modal textarea{width:100%;min-height:88px}body:has(.member-bottom-nav) #choplah-cookie-preferences{position:static!important;display:flex!important;width:fit-content;margin:12px 16px calc(92px + env(safe-area-inset-bottom))!important}
.points-expiry{font-size:14px;line-height:1.55;margin:12px 0;color:inherit}
@media(max-width:700px){body .modal{width:calc(100vw - 24px);padding:22px 18px;max-height:calc(100dvh - 24px)}body .modalactions>button{flex:1 1 130px}}
/* Keep action bars and member-code shortcuts from covering form fields or reward QRs. */
body .modal .modalactions{position:static!important;margin-top:20px;padding-top:16px;border-top:1px solid var(--app-border)}.member-app .wallet-code-fab{position:static!important;inset:auto!important;display:flex;width:fit-content;margin:0 0 16px auto!important;box-shadow:none}
/* Explicit fulfilment choices: large, readable and keyboard accessible. */
.commerce-page .commerce-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.commerce-page button.commerce-choice{display:flex;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-height:98px;padding:18px;text-align:left;border:1px solid #cbd7ca;border-radius:14px;background:#fff;color:#274f3b;font-weight:400;box-shadow:none}.commerce-page button.commerce-choice[aria-pressed=true]{background:#eaf2e8;border:2px solid #315e4a;padding:17px}.commerce-choice>svg{flex:none}.commerce-choice>span{flex:1;min-width:0}.commerce-choice strong{display:block;font-size:17px;line-height:1.4}.commerce-choice small{display:block;margin-top:5px;font-size:14px;line-height:1.5}.commerce-page fieldset.commerce-fulfilment-options{margin:0;padding:18px}.commerce-fulfilment-options legend{font-size:19px;line-height:1.4}.commerce-fulfilment-options>p{margin:12px 0 0}.commerce-branch-address{display:flex;gap:12px;align-items:flex-start;margin:16px 0;padding:16px;background:#f2f5ee;border-radius:12px;color:#274f3b}.commerce-branch-address>svg{flex:none;margin-top:3px}.commerce-branch-address strong{font-size:13px}.commerce-branch-address p{margin:3px 0 0;font-size:15px;white-space:pre-line;overflow-wrap:anywhere}
.commerce-page .commerce-menu-row .commerce-quantity{flex:none}.commerce-quantity>label{display:block;font-size:13px;margin-bottom:6px}.commerce-quantity>div{display:flex;align-items:center;gap:6px}.commerce-page .commerce-menu-row .commerce-quantity input[type=number]{width:54px;min-width:48px;max-width:54px;text-align:center;padding:8px 3px;appearance:textfield;-moz-appearance:textfield}.commerce-quantity input::-webkit-inner-spin-button{appearance:none}.commerce-page .commerce-quantity button{min-width:44px;width:44px;height:48px;padding:0;flex:none}.commerce-quantity button:disabled{opacity:.4}
.commerce-page .commerce-review{background:#f2f5ee;border:1px solid #dce4da;border-radius:14px;padding:20px}.commerce-review h3{margin:0 0 14px}.commerce-review dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:0}.commerce-review dt{font-size:13px;color:#526158}.commerce-review dd{font-size:16px;font-weight:600;margin:4px 0 0;overflow-wrap:anywhere}.commerce-review>p{font-size:14px;color:#526158;margin-bottom:0}
@media(hover:hover){.commerce-page button.commerce-choice:hover{background:#f2f6ee;border-color:#315e4a}body :is(.primary,.primary-action,.commerce-button):not(.commerce-secondary):hover{background-color:#274f3b}body :is(.secondary,.commerce-secondary):hover{background-color:#f1f5ee}}
@media(max-width:700px){.commerce-page .commerce-choice-grid{grid-template-columns:minmax(0,1fr)}.commerce-page button.commerce-choice{min-height:92px;padding:16px}.commerce-page button.commerce-choice[aria-pressed=true]{padding:15px}.commerce-page fieldset.commerce-fulfilment-options{padding:14px}.commerce-page .commerce-menu-row .commerce-quantity{margin-left:auto}.commerce-review dl{grid-template-columns:minmax(0,1fr)}.commerce-page .commerce-review{padding:16px}.commerce-branch-address{padding:14px}}
/* Keep shared screens legible at narrow phones, tablet widths and browser zoom. */
body :is(.growth-page,.discover-page,.commerce-page){overflow-wrap:break-word}body :is(.growth-page,.discover-page) :is(button,input,select,textarea){max-width:100%}.commerce-page .commerce-top{column-gap:24px}.commerce-page .commerce-top>a:last-child{max-width:100%;text-align:right}.commerce-page .commerce-top>a:first-child{flex:none}.commerce-selected-address{white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:360px){.commerce-page .commerce-top{align-items:flex-start}.commerce-page .commerce-top>a:last-child{font-size:14px;text-align:left}.commerce-page .commerce-top{row-gap:4px}.commerce-page .commerce-panel{padding:16px}.commerce-page .commerce-choice strong{font-size:16px}.commerce-page .commerce-choice small{font-size:13px}}
.commerce-page button.commerce-choice{border-radius:14px!important}
@media(max-width:360px){#nav .nav-primary>:is(button,a.workspace-tab){font-size:10px;line-height:1.25}}
body:has(.app) #choplah-cookie-preferences{position:static!important;display:flex!important;width:fit-content;margin:12px 16px 24px!important}
body:has(.commerce-page) #choplah-cookie-preferences{position:static!important;display:flex!important;width:fit-content;margin:12px 16px calc(32px + env(safe-area-inset-bottom))!important}
body:has(.commerce-page.member-app) #choplah-cookie-preferences{margin-bottom:calc(92px + env(safe-area-inset-bottom))!important}
