/* Practical catalogue layout: merchant identity, offer selection, then payment. */
:root{
  --green:#087c41;
  --green-dark:#07552f;
  --green-soft:#e8f6ee;
  --red:#d92f35;
  --blue:#1d5fd6;
  --blue-soft:#ebf2ff;
  --amber:#c25909;
  --amber-soft:#fff2e4;
  --violet:#7b2cbf;
  --violet-soft:#f4ebff;
  --ink:#17271f;
  --muted:#5d6c64;
  --line:#d8e2da;
  --paper:#ffffff;
  --wash:#f5f8f5;
  font-family:"Segoe UI Variable","Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none;
  font-size:16px;
  line-height:1.5;
  scroll-behavior:smooth;
}
*{box-sizing:border-box}
body{margin:0}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.55}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #64b983;outline-offset:3px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Shared inline SVG icon primitives */
.inline-icon,.field-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.icon-blue{color:var(--blue)}
.icon-green{color:var(--green)}
.tone-data{--tone:var(--green);--tone-soft:var(--green-soft);--tone-border:#b7dfc7}
.tone-minutes{--tone:var(--blue);--tone-soft:var(--blue-soft);--tone-border:#bfd5ff}
.tone-sms{--tone:var(--amber);--tone-soft:var(--amber-soft);--tone-border:#f7d4b2}
.tone-other{--tone:var(--violet);--tone-soft:var(--violet-soft);--tone-border:#dec5fb}

.wrap{max-width:1040px;margin-inline:auto;padding-inline:28px}
.site-header{background:linear-gradient(180deg,#ffffff 0%,#f9fcf9 100%);border-bottom:1px solid var(--line)}
.header-inner{min-height:92px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{text-decoration:none;display:flex;align-items:center;gap:13px;font-weight:750;font-size:23px;letter-spacing:-.6px;min-width:0}
.brand-mark{width:48px;height:48px;background:linear-gradient(135deg,var(--green) 0%,#0b9850 100%);border-radius:13px;display:grid;place-items:center;color:white;overflow:hidden;position:relative;flex-shrink:0;box-shadow:0 6px 16px #087c4124}
.brand-mark img{width:100%;height:100%;object-fit:contain;background:#fff}
.brand-copy{display:flex;flex-direction:column;min-width:0}
.brand-sub{display:block;font-size:10px;font-weight:650;letter-spacing:1.1px;text-transform:uppercase;line-height:1.4;color:var(--muted)}
#brand-initial>span,#editor-brand-initial>span{width:10px;height:10px;border-radius:50%;background:var(--red);position:absolute;right:5px;top:5px;border:2px solid var(--green)}
#brand-name,#editor-brand-name{overflow-wrap:anywhere;line-height:1.15}
.live-dot{width:7px;height:7px;border-radius:50%;background:var(--green);flex-shrink:0;box-shadow:0 0 0 3px #087c4126}

.storefront-main{min-height:calc(100dvh - 190px);background:radial-gradient(900px 260px at 50% 0%,#eff8f2 0%,transparent 70%)}
.store-details{padding-top:24px;padding-bottom:16px}
.store-banner{display:flex;align-items:flex-start;gap:15px;padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:0 8px 24px #102a1d0a}
.store-banner-icon{width:42px;height:42px;border-radius:11px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;flex-shrink:0}
.store-banner-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.store-banner-copy{min-width:0}
.store-tagline{margin:0 0 4px;font-size:16px;font-weight:700;overflow-wrap:anywhere}
.store-description{margin:0;color:var(--muted);font-size:13px;max-width:740px;overflow-wrap:anywhere}

.shop-section{padding-top:8px;padding-bottom:34px;scroll-margin-top:20px}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.heading-with-icon{display:flex;align-items:center;gap:13px}
.heading-badge{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,#fff3e5 0%,#ffe4c8 100%);color:var(--amber);border:1px solid #f7d4b2;display:grid;place-items:center;flex-shrink:0}
.heading-badge svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
h1{font-size:26px;line-height:1.2;letter-spacing:-.6px;margin:0;font-weight:750}
h2{font-size:26px;line-height:1.25;letter-spacing:-.7px;margin:0}
.heading-with-icon p{font-size:12px;color:var(--muted);margin:3px 0 0}
.offer-count{font-size:12px;font-weight:650;color:var(--muted);background:var(--wash);border:1px solid var(--line);border-radius:999px;padding:6px 12px;white-space:nowrap}

/* Keep All, Data, Minutes, SMS and Other on a single scrollable row across all screen widths. */
.category-tabs{display:flex;gap:7px;flex-wrap:nowrap;overflow-x:auto;padding:2px 1px 6px;margin-bottom:16px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.category-tabs::-webkit-scrollbar{display:none}
.category-tabs button{flex:0 0 auto;white-space:nowrap;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:11px;padding:7px 12px 7px 8px;min-height:42px;font-size:12px;font-weight:650;display:inline-flex;align-items:center;gap:7px;transition:background .18s,color .18s,border-color .18s,transform .15s}
.cat-icon{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;flex-shrink:0}
.cat-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cat-all{background:#eef3ef;color:#355242}
.cat-data{background:var(--green-soft);color:var(--green)}
.cat-minutes{background:var(--blue-soft);color:var(--blue)}
.cat-sms{background:var(--amber-soft);color:var(--amber)}
.cat-other{background:var(--violet-soft);color:var(--violet)}
.category-tabs button.active{background:var(--green);border-color:var(--green);color:white;box-shadow:0 6px 16px #087c4129}
.category-tabs button.active .cat-icon{background:#ffffff24;color:white}
.category-tabs button:hover:not(.active){background:var(--wash);border-color:#9fc2aa;transform:translateY(-1px)}

/* Vertical offer list/grid with colored category icons, left accent border and price pill. */
.offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;min-height:110px}
.offer-card{appearance:none;background:white;border:1px solid var(--line);border-left:4px solid var(--tone,var(--green));border-radius:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:16px;row-gap:10px;text-align:left;padding:17px 18px;min-height:104px;box-shadow:0 4px 14px #102a1d08;transition:border-color .2s,box-shadow .2s,transform .18s;animation:reveal .25s both;color:var(--ink)}
.offer-card:hover{border-color:var(--tone,var(--green));box-shadow:0 12px 26px #102a1d12;transform:translateY(-2px)}
.offer-kind{grid-column:1;grid-row:1;display:inline-flex;align-items:center;gap:8px;font-size:11px;color:var(--tone,var(--green));font-weight:700;letter-spacing:.2px}
.offer-icon-badge{width:28px;height:28px;border-radius:8px;background:var(--tone-soft,var(--green-soft));color:var(--tone,var(--green));border:1px solid var(--tone-border,#c2e3cf);display:grid;place-items:center;flex-shrink:0}
.offer-icon-badge svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.offer-card h3{grid-column:1;grid-row:2;font-size:15px;font-weight:680;line-height:1.4;margin:0;overflow-wrap:anywhere;align-self:start}
.offer-bottom{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:8px}
.offer-price{font-size:21px;font-weight:780;letter-spacing:-.5px;line-height:1.1;white-space:nowrap}
.offer-price small{font-size:10px;letter-spacing:0;margin-right:4px;color:var(--muted);font-weight:600}
.offer-go{font-size:11px;font-weight:700;color:var(--tone,var(--green));background:var(--tone-soft,var(--green-soft));padding:5px 10px;border-radius:999px;line-height:1.2;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.offer-card:hover .offer-go{background:var(--tone,var(--green));color:white}

.shop-note{display:flex;align-items:center;justify-content:center;gap:10px;margin:24px 0 0;padding:12px 16px;border-radius:12px;background:var(--wash);border:1px solid var(--line);color:var(--muted);font-size:12px}
.shop-note-icon{width:28px;height:28px;border-radius:8px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;flex-shrink:0}
.shop-note-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.shop-note p{margin:0}

.empty-state{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 20px;min-height:165px;border:1px solid var(--line);border-radius:14px;background:var(--wash)}
.empty-icon{width:46px;height:46px;border-radius:13px;background:white;border:1px solid var(--line);color:var(--green);display:grid;place-items:center;margin-bottom:12px}
.empty-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.empty-state h3{margin:0 0 7px;font-size:17px}
.empty-state p{max-width:420px;color:var(--muted);font-size:13px;margin:0}
.empty-state button{margin-top:18px}
.skeleton{height:104px;background:linear-gradient(110deg,#eff3ed 30%,#f8faf6 50%,#eff3ed 70%);background-size:300% 100%;animation:shimmer 1.6s infinite;border-radius:14px}
.footer{border-top:1px solid var(--line);padding-top:23px;padding-bottom:26px;text-align:center}
.footer-copyright{font-size:12px;line-height:1.8;color:var(--muted);margin:0 auto;max-width:680px}
.footer-copyright a{color:var(--green);font-weight:650;text-underline-offset:3px}

/* Shared form and feedback controls also serve the private editor. */
.button{border:0;background:var(--green);color:white;min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:14px;padding:12px 20px;border-radius:10px;font-weight:650;font-size:14px;text-decoration:none;transition:background .2s,transform .2s,box-shadow .2s;box-shadow:0 4px 12px #087c4120}
.button:hover{background:var(--green-dark);box-shadow:0 6px 16px #087c412b}
.button:active{transform:translateY(1px)}
.button>span{font-size:18px;font-weight:400}
.muted{color:var(--muted);font-size:13px}
.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.4px;color:var(--green);margin:0 0 14px;display:flex;align-items:center;gap:8px}
.eyebrow-icon{width:24px;height:24px;border-radius:7px;background:var(--green-soft);color:var(--green);display:grid;place-items:center}
.eyebrow-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.notice{border:1px solid #b4d1bb;background:var(--green-soft);padding:13px 15px;font-size:13px;border-radius:10px;margin:0 0 20px;overflow-wrap:anywhere}
.notice.error{background:#fff1f0;border-color:#edbab7;color:#a33333}
.notice.warning{background:#fff8e9;border-color:#e8d5ab;color:#745b20}

.checkout-dialog{border:0;padding:27px;width:min(460px,calc(100% - 24px));max-height:calc(100dvh - 28px);border-radius:24px;box-shadow:0 25px 100px #0c2a2b30;color:var(--ink);overflow-y:auto}
.checkout-dialog[open]{animation:dialog-in .25s ease-out}
.checkout-dialog::backdrop{background:#112c2466;backdrop-filter:blur(5px)}
.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.dialog-top .eyebrow{margin:0;font-size:10px}
.icon-button{border:1px solid var(--line);background:var(--wash);color:var(--muted);width:38px;height:38px;border-radius:50%;display:grid;place-items:center;transition:background .15s,color .15s}
.icon-button:hover{background:#e7eee8;color:var(--ink)}
.icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.checkout-dialog h2{font-size:27px}
.selected-offer{padding:14px 16px;margin:20px 0;background:var(--green-soft);border:1px solid #c3e2cf;border-radius:13px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.selected-offer-meta{display:flex;align-items:center;gap:10px;min-width:0}
.selected-offer-meta strong{font-size:15px;overflow-wrap:anywhere}
.selected-offer-price{font-size:17px;font-weight:750;color:var(--green);white-space:nowrap}

label{display:block;font-size:12px;font-weight:650;margin-bottom:17px}
.label-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.char-count{font-size:11px;font-weight:500;color:var(--muted);white-space:nowrap}
.char-count.near-limit{color:var(--amber);font-weight:650}
.label-title{display:inline-flex;align-items:center;gap:7px}
input:not([type=checkbox]),textarea,select{display:block;width:100%;margin-top:7px;border:1px solid var(--line);border-radius:10px;padding:12px 13px;background:white;color:var(--ink);min-height:47px;transition:border-color .2s,box-shadow .2s}
input:hover,textarea:hover,select:hover{border-color:#8ab998}
input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #087c411a}
input::placeholder,textarea::placeholder{color:#94a097;font-weight:400}
textarea{resize:vertical;min-height:100px}
.field-help{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:6px}
.check-label{display:flex;align-items:center;gap:8px;color:var(--muted);font-weight:500;min-height:32px}
.check-label input{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}
.pay-button{width:100%;justify-content:space-between}
.secure-note{font-size:11px;color:var(--muted);text-align:center;line-height:1.7;margin:15px 0 0}

/* Password box with inline eye visibility toggle */
.password-field{position:relative;display:block;margin-top:7px}
.password-field input{margin-top:0;padding-right:48px}
.password-toggle{position:absolute;top:50%;right:7px;transform:translateY(-50%);width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:var(--muted);display:grid;place-items:center;transition:background .15s,color .15s}
.password-toggle:hover{background:var(--wash);color:var(--green)}
.password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.password-toggle .icon-eye-off{display:none}
.password-toggle.is-visible{color:var(--green);background:var(--green-soft)}
.password-toggle.is-visible .icon-eye-open{display:none}
.password-toggle.is-visible .icon-eye-off{display:block}

/* Checkout stages use centered Vendora-style indicators, progress steps, ripples and semantic stage colors. */
.checkout-dialog[data-tone]{box-shadow:inset 0 5px 0 var(--status,var(--green)),0 25px 100px #0c2a2b30}
.checkout-dialog[data-tone="processing"],#payment-view[data-tone="processing"]{--status:#1d4ed8}
.checkout-dialog[data-tone="pending"],#payment-view[data-tone="pending"]{--status:#b45309}
.checkout-dialog[data-tone="failure"],#payment-view[data-tone="failure"]{--status:#c12d39}
.checkout-dialog[data-tone="success"],#payment-view[data-tone="success"]{--status:#047857}
.payment-stage{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:7px 14px;margin:0 auto 18px;border-radius:999px;font-size:12px;font-weight:700;color:var(--status,var(--green));background:color-mix(in srgb,var(--status,var(--green)) 10%,#fff);border:1px solid color-mix(in srgb,var(--status,var(--green)) 24%,transparent)}
.stage-spinner{width:13px;height:13px;border:2.2px solid color-mix(in srgb,var(--status,var(--green)) 25%,transparent);border-top-color:var(--status,var(--green));border-right-color:var(--status,var(--green));border-radius:50%;animation:receipt-spin .75s linear infinite;flex-shrink:0}
.payment-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;padding:0;margin:4px 0 22px;gap:10px}
.payment-steps li{min-width:0;font-size:11px;color:#7f8c84;border-top:3px solid #e3e9e4;padding-top:10px;position:relative;text-align:center}
.payment-steps li.active{color:var(--status,var(--green));border-color:var(--status,var(--green));font-weight:700}
.payment-steps li.active::after{content:"";position:absolute;top:-8px;left:calc(50% - 6px);width:12px;height:12px;border-radius:50%;border:2.2px solid color-mix(in srgb,var(--status,var(--green)) 25%,#fff);border-top-color:var(--status,var(--green));border-right-color:var(--status,var(--green));background:#fff;animation:receipt-spin .75s linear infinite}
.payment-steps li.done{border-color:#10b981;color:#047857;font-weight:700}
.payment-steps li.error{border-color:#ef4444;color:#c12d39;font-weight:700}
#payment-view{text-align:center;padding-bottom:10px}
.payment-art{height:112px;position:relative;display:grid;place-items:center;isolation:isolate;margin:6px auto}
.payment-symbol{background:color-mix(in srgb,var(--status,var(--green)) 11%,#fff);color:var(--status,var(--green));height:68px;width:68px;border-radius:50%;display:grid;place-items:center;font-size:30px;font-weight:800;margin:0 auto}
.payment-symbol.is-spinner{background:transparent;border:4px solid color-mix(in srgb,var(--status,var(--green)) 20%,#fff);border-top-color:var(--status,var(--green));border-right-color:var(--status,var(--green));box-shadow:0 0 18px color-mix(in srgb,var(--status,var(--green)) 22%,transparent);animation:receipt-spin .8s linear infinite}
.payment-symbol.confirmed{background:#e7f7ef;color:#047857;box-shadow:0 0 0 7px #10b98122;animation:dialog-in .32s ease-out both}
.payment-symbol.error{background:#fff0ef;color:#c12d39;box-shadow:0 0 0 6px #ef44441f}
.payment-symbol.idle{background:#fff6e2;color:#b45309;border:3px solid #f5d08a}
.payment-ripple{position:absolute;width:90px;height:90px;border:1.5px solid color-mix(in srgb,var(--status,var(--green)) 34%,transparent);border-radius:50%;z-index:-1;animation:ripple 2s ease-out infinite}
.payment-ripple.second{animation-delay:1s}
.payment-art.paid .payment-ripple,.payment-art.failed .payment-ripple,.payment-art.unknown .payment-ripple{animation:none;opacity:0}
.payment-copy{font-size:14px;line-height:1.7;color:var(--muted);margin:12px auto 18px;max-width:340px;text-align:center}
.payment-details{padding:15px 16px;background:var(--wash);border-radius:11px;font-size:12px;text-align:left;overflow-wrap:anywhere;margin:0 auto 18px;border:1px solid var(--line)}
.payment-details strong{display:block;color:var(--status,var(--green));font-size:15px}
.secondary{background:#fff;border:1px solid var(--line);color:var(--green);box-shadow:none}
.secondary:hover{background:var(--green-soft);box-shadow:none}
#payment-view>.button{width:100%;margin-top:12px}
.resume-payment{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);border:1px solid #b5d1bf;border-radius:30px;box-shadow:0 8px 30px #123f2320;padding:14px 20px;background:white;display:flex;align-items:center;gap:12px;white-space:nowrap;font-size:12px;font-weight:650;color:var(--green);z-index:8}

/* Editor uses the same vocabulary and colorful section accents. */
.editor-body{background:radial-gradient(1000px 300px at 50% 0%,#ebf6ef 0%,var(--wash) 55%)}
.editor-header{background:white;border-bottom:1px solid var(--line)}
.editor-header .wrap{display:flex;align-items:center;justify-content:space-between;min-height:86px;gap:20px}
.editor-tools{display:flex;align-items:center;gap:10px;font-size:12px}
.header-link-pill{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:var(--wash);text-decoration:none;font-weight:650;color:var(--ink);transition:border-color .15s,background .15s}
.header-link-pill:hover{border-color:#94bea4;background:var(--green-soft);color:var(--green-dark)}
.text-button{border:1px solid #f0c9c6;background:#fff5f4;color:#a83333;padding:9px 14px;border-radius:999px;font-weight:650;display:inline-flex;align-items:center;gap:6px;transition:background .15s}
.text-button:hover{background:#ffe8e6}

.editor-shell{max-width:1040px;margin:0 auto;padding:40px 28px 72px}
.editor-shell h1{font-size:34px;letter-spacing:-1.1px}
.login-panel{max-width:440px;margin:38px auto;background:#fff;border:1px solid var(--line);padding:32px;border-radius:22px;box-shadow:0 16px 40px #102a1d0f}
.auth-badge{width:48px;height:48px;border-radius:14px;background:var(--tone-soft,var(--green-soft));color:var(--tone,var(--green));border:1px solid var(--tone-border,#c2e3cf);display:grid;place-items:center;margin-bottom:18px}
.auth-badge svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.login-panel h1{font-size:29px;letter-spacing:-.8px;margin-bottom:10px}
.login-panel form{margin-top:22px}

.editor-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.editor-intro h1{margin-bottom:6px}
.editor-intro p{margin:0}
.account-email{font-size:12px;color:var(--muted);overflow-wrap:anywhere;margin:0 0 18px}
.account-pill{background:#fff;border:1px solid var(--line);padding:8px 14px;border-radius:999px;font-weight:600;color:var(--ink);margin:0}
#first-password-panel h1{font-size:28px;letter-spacing:-.6px;margin-bottom:10px}

.editor-nav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}
.editor-nav a{font-size:12px;font-weight:650;padding:8px 14px 8px 9px;border:1px solid var(--line);border-radius:12px;text-decoration:none;background:white;display:inline-flex;align-items:center;gap:8px;transition:border-color .15s,transform .15s,box-shadow .15s}
.editor-nav a:hover{border-color:#98bfa7;transform:translateY(-1px);box-shadow:0 6px 14px #102a1d0d}
.nav-icon,.section-icon{display:grid;place-items:center;background:var(--tone-soft,var(--green-soft));color:var(--tone,var(--green));border:1px solid var(--tone-border,#c2e3cf);flex-shrink:0}
.nav-icon{width:26px;height:26px;border-radius:8px}
.nav-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.section-icon{width:42px;height:42px;border-radius:12px}
.section-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.editor-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;margin-bottom:24px;scroll-margin-top:20px;box-shadow:0 8px 24px #102a1d08;border-top:4px solid var(--green)}
.tone-card-data{border-top-color:var(--green)}
.tone-card-minutes{border-top-color:var(--blue)}
.tone-card-sms{border-top-color:var(--amber)}
.tone-card-other{border-top-color:var(--violet)}

.editor-card-title{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}
.card-heading-group{display:flex;align-items:flex-start;gap:14px;min-width:0}
.editor-card h2{font-size:21px;letter-spacing:-.5px}
.editor-card-title p{font-size:12px;color:var(--muted);margin:6px 0 0}


.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.form-grid .full{grid-column:1/-1}
.logo-editor{display:flex;align-items:center;gap:18px;margin-bottom:25px;flex-wrap:wrap;padding:16px;background:var(--wash);border:1px solid var(--line);border-radius:14px}
.logo-preview{width:76px;height:76px;border:1px solid var(--line);border-radius:16px;display:grid;place-items:center;background:#fff;color:var(--green);font-size:28px;font-weight:750;overflow:hidden;flex-shrink:0}
.logo-preview img{width:100%;height:100%;object-fit:contain}
.file-label{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);color:var(--green);background:white;border-radius:10px;padding:10px 14px;cursor:pointer;min-height:44px;margin:0;font-weight:650}
.file-label input{max-width:240px;font-size:11px;border:0;min-height:0;padding:0;margin:0 0 0 8px;box-shadow:none}
.logo-editor p{font-size:11px;color:var(--muted);margin:6px 0 0}
.save-row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:8px}
.save-row p{font-size:11px;color:var(--muted);margin:0}

.credential-status{font-size:11px;background:var(--green-soft);border:1px solid #b7dfc7;padding:7px 12px;border-radius:20px;color:var(--green);font-weight:700;white-space:nowrap}
.credential-status.unconfigured{background:#fff6e2;border-color:#efd8a6;color:#7f652b}
.credential-help{padding:14px 16px;background:var(--wash);border:1px solid var(--line);border-radius:11px;margin-bottom:22px;font-size:12px;color:var(--muted)}

.offer-editor-row{display:grid;grid-template-columns:minmax(130px,2fr) minmax(85px,1fr) minmax(110px,1fr) auto auto;gap:12px;align-items:end;padding:16px 0 16px 14px;border-top:1px solid var(--line);border-left:3px solid var(--tone,var(--green));margin-bottom:2px}
.offer-editor-row label{margin:0;font-size:11px}
.offer-editor-row input,.offer-editor-row select{padding:11px;font-size:13px}
.offer-editor-row .check-label{font-size:12px;padding-bottom:5px;min-height:47px}
.remove-offer{color:#b33434;background:#fff0ef;border:1px solid #f4cbc8;border-radius:10px;min-width:44px;min-height:44px;align-self:end;margin-bottom:2px;display:grid;place-items:center;transition:background .15s}
.remove-offer:hover{background:#ffe2df}
.remove-offer svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.offers-empty{padding:23px 0;font-size:13px;color:var(--muted)}

.editor-footer{display:block;text-align:center;padding:0 20px 30px;font-size:12px;line-height:1.75;letter-spacing:0;color:var(--muted)}
.editor-footer a{color:var(--green);font-weight:700}
.status-line{font-size:12px;min-height:18px;color:var(--green);margin-top:15px}
.status-line.error{color:#b53737}
.editor-card .notice{margin-top:15px}
.password-tip{font-size:11px;color:var(--muted);margin-top:16px}

/* Motion decorates loading and verified state transitions only. */
@keyframes receipt-spin{to{transform:rotate(360deg)}}
@keyframes shimmer{from{background-position:150% 0}to{background-position:-150% 0}}
@keyframes reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes dialog-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}

@media(max-width:1000px){
  .offer-editor-row{grid-template-columns:2fr 1fr 1fr auto auto;gap:9px}
}
@media(max-width:720px){
  .wrap{padding-inline:18px}
  .header-inner{min-height:80px}
  .brand{font-size:21px}
  .brand-mark{width:44px;height:44px}
  .store-details{padding-top:18px;padding-bottom:14px}
  .store-banner{padding:15px}
  .section-heading{flex-direction:column;align-items:flex-start;gap:10px;margin-bottom:16px}
  .section-heading h1{font-size:23px}
  .offer-grid{grid-template-columns:1fr;gap:10px}
  .offer-card{min-height:92px;padding:14px 15px}
  .offer-card h3{font-size:15px}
  .offer-price{font-size:20px}
  .category-tabs{gap:6px;margin-bottom:15px}
  .category-tabs button{padding:6px 10px 6px 7px;min-height:38px;font-size:11px;gap:6px}
  .cat-icon{width:22px;height:22px}
  .cat-icon svg{width:13px;height:13px}
  .shop-note{font-size:11px;justify-content:flex-start;align-items:flex-start}
  .footer{padding-top:20px;padding-bottom:25px}
  .footer-copyright{font-size:11px;line-height:1.8}
  .editor-shell{padding:26px 16px 50px}
  .editor-header .wrap{padding-inline:16px;min-height:74px}
  .editor-header .brand-sub{display:none}
  .editor-tools{font-size:11px;gap:8px}
  .header-link-pill,.text-button{padding:8px 11px}
  .editor-card{padding:20px}
  .editor-card-title{margin-bottom:18px}
  .editor-intro{align-items:flex-start;flex-direction:column;gap:10px}
  .editor-shell h1{font-size:29px}
  .form-grid{grid-template-columns:1fr}
  .form-grid .full{grid-column:auto}
  .offer-editor-row{grid-template-columns:minmax(100px,1.5fr) minmax(80px,1fr) 44px;gap:10px;padding-left:10px}
  .offer-editor-row label:first-child{grid-column:1/3}
  .offer-editor-row .remove-offer{grid-column:3;grid-row:1}
  .offer-editor-row .check-label{grid-column:3;grid-row:2;font-size:0;justify-content:center}
  .offer-editor-row .check-label input{width:21px;height:21px}
  .editor-card-title .credential-status{font-size:10px}
  .login-panel{margin-top:20px;padding:24px}
}
@media(max-width:370px){
  .wrap{padding-inline:14px}
  .brand{font-size:19px;gap:10px}
  .brand-sub{font-size:8px;letter-spacing:1px}
  .header-note{font-size:11px;padding:6px 10px}
  .category-tabs{gap:5px}
  .category-tabs button{padding:5px 8px 5px 6px;min-height:36px;font-size:11px;gap:5px}
  .cat-icon{width:20px;height:20px}
  .cat-icon svg{width:12px;height:12px}
  .offer-card{padding:13px 14px;column-gap:11px}
  .offer-card h3{font-size:14px}
  .offer-price{font-size:19px}
  .checkout-dialog{padding:20px}
  .file-label{flex-wrap:wrap;justify-content:flex-start}
  .file-label input{max-width:100%;margin-left:0}
}
@media(prefers-reduced-motion:reduce){
  :root{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}

/* Header width belongs to the merchant, not to a payment badge. Long names wrap
   within a real grid track, with comfortable top/bottom clearance on mobile. */
.header-inner{min-height:106px;padding-top:22px;padding-bottom:22px;display:flex;align-items:center}.site-header .brand{width:100%;max-width:100%;gap:14px}.brand-copy{flex:1;min-width:0}#brand-name,#editor-brand-name{font-size:clamp(20px,4.4vw,28px);line-height:1.3;overflow-wrap:anywhere;white-space:normal}.brand-sub{font-size:10px;margin-top:5px}.brand-mark{width:48px;height:48px;box-shadow:none;background:var(--green)}
/* Checkout modal keeps the centered stage animation, semantic top accent, and clean spacing. */
.checkout-dialog{width:min(480px,calc(100% - 28px));padding:26px;border-radius:20px;box-shadow:0 18px 60px #15332629}
.checkout-dialog::backdrop{background:#172b2666;backdrop-filter:blur(4px)}
.checkout-dialog[data-tone]{box-shadow:inset 0 5px 0 var(--status,var(--green)),0 18px 60px #15332629}
.checkout-dialog h2{font-size:24px;line-height:1.3;margin:0 0 6px}
.dialog-top{gap:12px;align-items:center;margin-bottom:18px}
.dialog-top h2{margin:0;font-size:21px}
.selected-offer{display:flex;justify-content:space-between;gap:14px;padding:15px 16px;background:var(--wash);border:1px solid var(--line);border-radius:11px;line-height:1.5}
.selected-offer strong{min-width:0}
.selected-offer-price{white-space:nowrap}
.history-dialog,.account-dialog,.confirm-dialog{border:1px solid var(--line);border-radius:16px;padding:24px;width:min(520px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;color:var(--ink)}
.history-row{display:grid;grid-template-columns:1fr auto;text-align:left;gap:8px;width:100%;padding:16px 0;border:0;border-bottom:1px solid var(--line);background:white}
.history-row strong{overflow-wrap:anywhere}
.history-row small{grid-column:1/-1;color:var(--muted)}
.resume-payment{border-radius:999px;font-size:13px}
.icon-button{flex-shrink:0}
.confirm-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
/* The editor is a workspace, not stacked oversized hero cards. Account controls
   live behind the top-right menu; field grids wrap without competing captions. */
.editor-header .wrap{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:18px;min-height:100px;padding-top:20px;padding-bottom:20px}.editor-header .brand{min-width:0;gap:12px}.editor-shell{max-width:1040px;padding-top:25px}.editor-intro{display:block;margin-bottom:22px}.editor-intro h1{font-size:28px;line-height:1.35}.editor-intro .eyebrow{display:none}.account-email{display:inline-block;max-width:100%;overflow-wrap:anywhere;padding:0;border:0;background:none;font-size:12px;margin-top:12px}.editor-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.editor-nav a{min-width:0;display:flex;justify-content:center;gap:7px;padding:11px 8px;font-size:12px;border-radius:8px}.nav-icon{width:25px;height:25px;flex-shrink:0;border:0;padding:4px;border-radius:5px}.editor-card{padding:24px;border-radius:12px;border-top:1px solid var(--line);box-shadow:none;margin-bottom:20px}.editor-card-title{display:block;margin-bottom:20px}.card-heading-group{display:flex;align-items:flex-start;gap:12px;min-width:0}.card-heading-group>div{min-width:0;flex:1}.editor-card h2{font-size:21px;line-height:1.35;overflow-wrap:anywhere}.editor-card-title p{font-size:13px;line-height:1.6}.section-icon{width:36px;height:36px;flex:0 0 36px;padding:8px;border-radius:7px}.editor-card-title .credential-status{display:inline-block;margin:12px 0 0 48px}.credential-help{font-size:12px;line-height:1.7}.logo-editor{padding:16px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.logo-editor>div:last-child{min-width:0;flex:1 1 190px}.file-label{flex-wrap:wrap;gap:8px;justify-content:flex-start;max-width:100%;font-size:13px;padding:10px}.file-label input{max-width:100%;min-width:0;margin:0;font-size:12px}.logo-preview{width:64px;height:64px;flex-shrink:0}.offer-editor-row{padding:18px 0;border-left:0;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) 44px 44px;gap:14px}.offer-editor-row label{min-width:0;font-size:12px}.offer-editor-row input,.offer-editor-row select{min-width:0;width:100%;font-size:14px;padding:12px}.label-with-count{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}.char-count{font-size:11px;flex-shrink:0;float:none}.form-grid label{min-width:0}.save-row{align-items:flex-start}.save-row p{line-height:1.6}.account-menu{position:relative;justify-self:end}.account-menu summary{cursor:pointer;list-style:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:8px;font-size:28px;line-height:1;background:white}.account-menu summary::-webkit-details-marker{display:none}.account-menu-items{position:absolute;right:0;top:52px;min-width:190px;padding:8px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 30px #16372920;z-index:20}.account-menu-items a,.account-menu-items button{display:block;width:100%;padding:12px;border:0;background:white;text-align:left;text-decoration:none;color:var(--ink);font:inherit;font-size:14px}.account-menu-items button:hover,.account-menu-items a:hover{background:var(--wash)}.account-dialog .editor-card{border:0;padding:0;margin:0}.account-dialog .section-icon{display:none}.confirm-dialog h2{font-size:23px}.confirm-dialog p{font-size:15px;line-height:1.7}
@media(max-width:720px){.header-inner{padding-top:22px;padding-bottom:22px}.editor-shell{padding:24px 16px 40px}.editor-card{padding:20px}.editor-nav{grid-template-columns:repeat(3,minmax(0,1fr))}.editor-nav a{flex-direction:column;gap:6px;align-items:center;text-align:center}.offer-editor-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 42px;gap:12px}.offer-editor-row label:first-child{grid-column:1/3}.offer-editor-row .remove-offer{grid-column:3;grid-row:1}.offer-editor-row .check-label{grid-column:3;grid-row:2;align-self:center;font-size:0}.editor-intro h1{font-size:26px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:1}.store-banner{padding:18px;gap:12px}.store-banner-icon{width:34px;height:34px;flex:0 0 34px;padding:8px}.store-tagline{font-size:16px}.store-description{font-size:14px;line-height:1.7}.heading-badge{width:36px;height:36px;flex:0 0 36px;padding:8px}.section-heading h1{font-size:24px}.checkout-dialog{padding:22px}.payment-copy{font-size:14px}}
@media(prefers-reduced-motion:reduce){.payment-ripple{display:none}}
