/* Campaign — JCB tone (#772). JCB Taiwan's visual language: tw.jcb blue gradient band, airy centered
   headings with a short rule, quiet bands, arrow text links; specialoffers.jcb square buttons, labels and
   red discount text. Loaded only for templates/campaign-jcb.php. Same VM as the default layout. */
:where([data-campaign-root]){--j-blue:#0054af;--j-sky:#008eed;--j-ink:#303038;--j-muted:#6e6e78;--j-quiet:#f6f7fb;--j-line:#e1e5ee;--j-red:#e60012;--j-green:#009944;--j-pale:#eaf4fd;
  font-family:"Noto Sans TC","Noto Sans",Arial,sans-serif;color:var(--j-ink);line-height:1.7;-webkit-font-smoothing:antialiased}
:where([data-campaign-root]) *{box-sizing:border-box}
/* The site's heading face (serif) must not override the JCB tone's sans text. */
[data-campaign-root][data-variant="jcb"] :is(h1,h2,h3,h4,b,strong,p,li,a,small,dt,dd,summary,button,em){font-family:"Noto Sans TC","Noto Sans",Arial,sans-serif}
:where([data-campaign-root]) img{max-width:100%;height:auto}
:where([data-campaign-root]) a{color:var(--j-sky);text-decoration:none}
:where([data-campaign-root]) .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}
:where([data-campaign-root]) .j-wrap{width:min(100% - 40px,1080px);margin:0 auto}

/* hero (shared hero part) */
:where([data-campaign-root]) .j-hero{background:linear-gradient(180deg,#e9f3fc 0,var(--j-quiet) 100%)}
:where([data-campaign-root]) .j-hero .lead{margin:0 auto;max-width:1280px}
:where([data-campaign-root]) .j-hero picture,:where([data-campaign-root]) .j-hero img{display:block;width:100%;height:auto}

/* offer card */
:where([data-campaign-root]) .j-offer{padding:40px 0 8px}
:where([data-campaign-root]) .j-offer-card{position:relative;margin:0 auto 24px;width:min(100% - 40px,720px);background:#fff;box-shadow:0 10px 30px rgba(0,40,100,.12);text-align:center;padding:36px 32px 26px}
:where([data-campaign-root]) .j-offer-card:before{content:"";position:absolute;inset:0 0 auto 0;height:6px;background:linear-gradient(90deg,var(--j-blue) 0 33.3%,var(--j-red) 33.3% 66.6%,var(--j-green) 66.6% 100%)}
:where([data-campaign-root]) .j-lbl{display:inline-block;font-size:13px;color:#fff;background:var(--j-blue);padding:3px 12px;letter-spacing:.08em}
:where([data-campaign-root]) .j-offer-title{font-weight:500;font-size:clamp(20px,3vw,26px);margin:16px 0 4px;letter-spacing:.04em}
:where([data-campaign-root]) .j-amt{font-size:clamp(44px,7vw,64px);font-weight:700;color:var(--j-red);line-height:1.1;margin:6px 0}
:where([data-campaign-root]) .j-amt small{font-size:.4em;font-weight:500;color:var(--j-ink);margin-left:6px}
:where([data-campaign-root]) .j-amt small.j-amt-ref{font-size:.26em;font-weight:400;color:var(--j-muted);margin-left:4px;white-space:nowrap}
:where([data-campaign-root]) .j-sub{color:var(--j-muted);font-size:14px;margin:0 0 6px}
:where([data-campaign-root]) .j-mail,:where([data-campaign-root]) .j-code{background:var(--j-pale);color:var(--j-blue);padding:12px 16px;font-size:15px;font-weight:500;margin:14px 0 0}
/* envelope icon as an SVG mask in the text color: the "✉" glyph depended on the device font and looked like a crossed box on Android.
   Only where masks work; elsewhere no icon (never a bare colored square). */
@supports ((-webkit-mask-image:none) or (mask-image:none)){
  :where([data-campaign-root]) .j-mail:before{content:"";display:inline-block;width:1.2em;height:1.2em;margin-right:8px;vertical-align:-.25em;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/contain no-repeat}
}
:where([data-campaign-root]) .j-offer-card dl{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 26px;margin:16px 0 0;font-size:14px;color:var(--j-muted)}
:where([data-campaign-root]) .j-offer-card dl div{display:flex;gap:8px}
:where([data-campaign-root]) .j-offer-card dt{font-weight:500;color:var(--j-ink);white-space:nowrap}
:where([data-campaign-root]) .j-offer-card dd{margin:0}
:where([data-campaign-root]) .j-nw{white-space:nowrap}
:where([data-campaign-root]) .j-mail{text-wrap:balance}

/* section + heading with a short rule above (tw.jcb) */
:where([data-campaign-root]) .j-section,:where([data-campaign-root]) .collection{padding:72px 0}
:where([data-campaign-root]) .j-quiet,:where([data-campaign-root]) .collection{background:var(--j-quiet)}
:where([data-campaign-root]) .j-h,:where([data-campaign-root]) .collection .wrap>h2{text-align:center;margin:0 0 36px}
:where([data-campaign-root]) .j-h:before,:where([data-campaign-root]) .collection .wrap>h2:before{content:"";display:block;width:40px;height:2px;background:var(--j-sky);margin:0 auto 18px}
:where([data-campaign-root]) .j-h h2,:where([data-campaign-root]) .collection .wrap>h2{font-size:clamp(24px,3.2vw,32px);font-weight:400;letter-spacing:.06em;margin:0;color:var(--j-ink);line-height:1.4}
:where([data-campaign-root]) .j-h p,:where([data-campaign-root]) .collection .h2-note{margin:10px auto 0;color:var(--j-muted);font-size:15px;max-width:720px;text-align:center}
:where([data-campaign-root]) .collection .wrap{width:min(100% - 40px,1080px);margin:0 auto}
:where([data-campaign-root]) .collection .wrap>h2{margin-bottom:10px}
:where([data-campaign-root]) .collection .h2-note{margin:0 auto 36px}
:where([data-campaign-root]) .collection .collection__item:not([hidden]){display:contents}
:where([data-campaign-root]) .collection .more{display:block;margin:34px auto 0;border:1px solid var(--j-sky);color:var(--j-sky);background:#fff;padding:12px 44px;font:inherit;font-size:15px;cursor:pointer;border-radius:0}
:where([data-campaign-root]) .collection .collection__all{text-align:center;margin-top:14px}
:where([data-campaign-root]) .collection .collection__all a:after,:where([data-campaign-root]) .j-arrow:after{content:" ›";font-size:1.1em}
.collection .collection__screen.directory-screen{background:none}
/* Shop Feed card CTA in the JCB button colors (.j-btn); the shared card and the Shop Feed page keep their own. */
[data-campaign-root][data-variant="jcb"] .collection .directory-card__button{background:var(--j-sky);color:#fff}
[data-campaign-root][data-variant="jcb"] .collection .directory-card__button:hover{background:var(--j-blue);color:#fff}

/* steps */
:where([data-campaign-root]) .j-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;list-style:none;padding:0;margin:0}
:where([data-campaign-root]) .j-steps li{text-align:center;padding:0 10px}
:where([data-campaign-root]) .j-n{font-size:44px;font-weight:300;color:var(--j-sky);line-height:1;letter-spacing:.04em}
:where([data-campaign-root]) .j-n small{display:block;font-size:12px;letter-spacing:.2em;color:var(--j-muted);margin-bottom:6px}
:where([data-campaign-root]) .j-steps b{display:block;font-size:17px;font-weight:500;margin:14px 0 6px}
:where([data-campaign-root]) .j-steps p{margin:0;color:var(--j-muted);font-size:14px}
:where([data-campaign-root]) .j-notes{margin:30px auto 0;max-width:720px;color:var(--j-muted);font-size:13px;padding-left:18px}

/* shop tiles */
:where([data-campaign-root]) .j-tiles{display:grid;grid-template-columns:repeat(3,1fr);list-style:none;padding:0;margin:0;border-top:1px solid var(--j-line);border-left:1px solid var(--j-line)}
:where([data-campaign-root]) .j-tile{border-right:1px solid var(--j-line);border-bottom:1px solid var(--j-line);background:#fff}
:where([data-campaign-root]) .j-tile a{display:grid;grid-template-columns:56px 1fr;grid-template-areas:"logo name" "logo cat" "desc desc" "go go";gap:2px 14px;padding:22px 22px 20px;color:var(--j-ink);position:relative;height:100%}
:where([data-campaign-root]) .j-tile a:hover{background:var(--j-quiet)}
:where([data-campaign-root]) .j-rank{position:absolute;right:16px;top:14px;font-size:26px;font-weight:300;color:var(--j-sky);opacity:.55}
:where([data-campaign-root]) .j-tile-logo{grid-area:logo;width:56px;height:56px;border:1px solid var(--j-line);background:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--j-blue);overflow:hidden}
:where([data-campaign-root]) .j-tile-logo img{width:100%;height:100%;object-fit:contain}
:where([data-campaign-root]) .j-tile b{grid-area:name;font-size:17px;font-weight:500;align-self:end;padding-right:36px}
:where([data-campaign-root]) .j-tile small{grid-area:cat;color:var(--j-muted);font-size:12px}
:where([data-campaign-root]) .j-tile p{grid-area:desc;margin:12px 0 0;font-size:13px;color:var(--j-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
:where([data-campaign-root]) .j-tile .j-arrow{grid-area:go;margin-top:10px;color:var(--j-sky);font-size:14px}
:where([data-campaign-root]) .j-center{text-align:center;margin-top:26px}

/* how to buy */
:where([data-campaign-root]) .j-how{display:grid;grid-template-columns:repeat(5,1fr);list-style:none;padding:0;margin:0;position:relative}
:where([data-campaign-root]) .j-how:before{content:"";position:absolute;left:10%;right:10%;top:22px;height:1px;background:var(--j-sky);opacity:.5}
:where([data-campaign-root]) .j-how li{text-align:center;padding:0 10px;position:relative}
:where([data-campaign-root]) .j-how i{display:flex;width:44px;height:44px;margin:0 auto 14px;border-radius:50%;background:#fff;border:1px solid var(--j-sky);color:var(--j-sky);font-style:normal;font-weight:500;align-items:center;justify-content:center}
:where([data-campaign-root]) .j-how .on i{background:var(--j-sky);color:#fff}
:where([data-campaign-root]) .j-how b{display:block;font-size:15px;font-weight:500}
:where([data-campaign-root]) .j-how p{margin:6px 0 0;font-size:13px;color:var(--j-muted)}
:where([data-campaign-root]) .j-how .j-how-note{display:block;margin-top:6px;font-size:12px;color:var(--j-muted)}
:where([data-campaign-root]) .j-how em{display:inline-block;margin-top:8px;font-style:normal;font-size:12px;background:var(--j-pale);color:var(--j-blue);padding:2px 8px}

/* partner offer block: tw.jcb image + overlapping panel */
:where([data-campaign-root]) .j-bn{display:grid;grid-template-columns:1.05fr 1fr;align-items:center}
:where([data-campaign-root]) .j-bn.j-bn-noimg{grid-template-columns:1fr}
:where([data-campaign-root]) .j-bn>picture{display:block}
:where([data-campaign-root]) .j-bn>picture img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
:where([data-campaign-root]) .j-panel{background:#fff;margin-left:-60px;padding:34px 36px;box-shadow:0 8px 24px rgba(0,40,100,.1);position:relative}
:where([data-campaign-root]) .j-bn-noimg .j-panel{margin:0}
:where([data-campaign-root]) .j-items{list-style:none;padding:0;margin:0;display:grid;gap:22px}
:where([data-campaign-root]) .j-items>li{display:grid;grid-template-columns:34px 1fr;gap:12px}
:where([data-campaign-root]) .j-items>li>i{width:30px;height:30px;border-radius:50%;background:var(--j-blue);color:#fff;font-style:normal;display:flex;align-items:center;justify-content:center;font-size:14px}
:where([data-campaign-root]) .j-items>li b{display:block;font-weight:500;font-size:16px;color:var(--j-blue)}
:where([data-campaign-root]) .j-items>li p{margin:4px 0 0;font-size:13.5px;color:var(--j-muted)}
:where([data-campaign-root]) .j-panel .j-notes{margin:22px 0 0;max-width:none}
:where([data-campaign-root]) .j-panel .j-arrow{font-size:14px}
:where([data-campaign-root]) .j-links{display:flex;flex-wrap:wrap;gap:8px 20px;margin:20px 0 0}
:where([data-campaign-root]) .j-links-center{justify-content:center;margin-top:26px}
:where([data-campaign-root]) .j-val{display:block;margin-top:8px;font-size:20px;font-weight:700;color:var(--j-red);letter-spacing:.02em}
:where([data-campaign-root]) .j-h .j-lbl{margin:0 0 14px}
:where([data-campaign-root]) .j-pb-img{margin:36px auto 0;max-width:720px}
:where([data-campaign-root]) .j-pb-img img{display:block;width:100%;height:auto}
:where([data-campaign-root]) .j-cta{margin:26px 0 0}
:where([data-campaign-root]) .j-btn{display:inline-block;background:var(--j-sky);color:#fff;padding:13px 40px;font-size:15px;border-radius:0}
:where([data-campaign-root]) .j-btn:hover{background:var(--j-blue)}

/* terms */
:where([data-campaign-root]) details{background:#fff;border:1px solid var(--j-line);margin:0 auto 12px;max-width:860px}
:where([data-campaign-root]) summary{cursor:pointer;padding:16px 20px;font-weight:500;list-style:none;display:flex;justify-content:space-between}
:where([data-campaign-root]) summary::-webkit-details-marker{display:none}
:where([data-campaign-root]) summary:after{content:"＋";color:var(--j-sky)}
:where([data-campaign-root]) details[open] summary:after{content:"－"}
:where([data-campaign-root]) details .body{padding:0 22px 18px;font-size:14px;color:var(--j-muted)}
:where([data-campaign-root]) details ol,:where([data-campaign-root]) details ul{margin:0;padding-left:20px}
:where([data-campaign-root]) details li{margin:6px 0}
:where([data-campaign-root]) details p{margin:0}

/* about */
:where([data-campaign-root]) .j-facts{display:grid;grid-template-columns:repeat(3,1fr);margin:0;border-top:1px solid var(--j-line)}
:where([data-campaign-root]) .j-facts div{padding:24px 18px;text-align:center;border-bottom:1px solid var(--j-line)}
:where([data-campaign-root]) .j-facts dt{color:var(--j-blue);font-weight:500;margin-bottom:6px}
:where([data-campaign-root]) .j-facts dd{margin:0;font-size:14px;color:var(--j-muted)}
:where([data-campaign-root]) .j-partners{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:28px;color:var(--j-muted)}
:where([data-campaign-root]) .j-partners img{max-height:40px;width:auto}

@media (max-width:760px){
  :where([data-campaign-root]) .j-section,:where([data-campaign-root]) .collection{padding:52px 0}
  :where([data-campaign-root]) .j-offer{padding-top:24px}
  :where([data-campaign-root]) .j-offer-card{padding:30px 18px 22px}
  :where([data-campaign-root]) .j-offer-card dl{flex-direction:column;align-items:center}
  :where([data-campaign-root]) .j-steps,:where([data-campaign-root]) .j-tiles,:where([data-campaign-root]) .j-facts{grid-template-columns:1fr}
  :where([data-campaign-root]) .j-steps{gap:30px}
  :where([data-campaign-root]) .j-how{grid-template-columns:1fr;gap:18px}
  :where([data-campaign-root]) .j-how:before{left:21px;right:auto;top:0;bottom:0;width:1px;height:auto}
  :where([data-campaign-root]) .j-how li{display:grid;grid-template-columns:44px 1fr;gap:14px;text-align:left;padding:0}
  :where([data-campaign-root]) .j-how i{margin:0}
  :where([data-campaign-root]) .j-bn{grid-template-columns:1fr}
  :where([data-campaign-root]) .j-panel{margin:-40px 16px 0;padding:26px 20px}
}
