/* Logo-backed benefit choices, scoped to issuer/hotel selection only.
   The grid, card heights and footer positions are invariant across brands. */
#companyChips{
  grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:112px;
  align-items:stretch;
  gap:8px;
}
#companyChips .selected-issuer-group{width:100%;min-width:0;height:112px}
#companyChips .benefit-choice{
  position:relative;
  display:block;
  box-sizing:border-box;
  width:100%;
  height:112px;
  min-height:112px;
  max-height:112px;
  padding:10px 8px 8px;
  text-align:left;
  overflow:hidden;
  border-radius:12px;
  isolation:isolate;
}
#companyChips .benefit-choice:has(.t-badge){
  height:112px;
  min-height:112px;
  max-height:112px;
  padding:10px 8px 8px;
}
#companyChips .benefit-choice-copy{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:100%;
  pointer-events:none;
}
#companyChips .benefit-choice-name{
  display:block;
  width:100%;
  max-width:100%;
  padding-right:19px;
  box-sizing:border-box;
  font-size:13px;
  line-height:1.4;
  text-align:left;
  font-weight:700;
  overflow-wrap:anywhere;
}
#companyChips .issuer-check,#hotelFeatures .issuer-check{
  z-index:4;
  width:16px;
  height:16px;
  top:9px;
  right:8px;
}
#companyChips .benefit-choice-status,
#hotelFeatures .benefit-choice-status{
  position:absolute;
  left:8px;
  bottom:8px;
  z-index:4;
  display:inline-flex;
  align-items:center;
  min-height:17px;
  padding:2px 5px;
  border-radius:6px;
  background:#fff8edeb;
  color:var(--issuer,var(--accent-text));
  font-size:11px;
  font-weight:700;
  line-height:1.3;
  white-space:nowrap;
}
#companyChips .benefit-choice[aria-pressed=true] .benefit-choice-status{
  background:color-mix(in srgb,var(--issuer-soft,#fff0db) 80%,#fff);
}
#companyChips .t-badge.voucher-deadline-bubble{
  position:absolute;
  bottom:8px;
  right:7px;
  z-index:4;
  max-width:52%;
  margin:0;
}
#companyChips .t-badge-dot{
  width:20px;
  height:20px;
  min-height:20px;
}
.representative-mark{
  --mark-color:#896f59;
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  pointer-events:none;
  overflow:hidden;
  user-select:none;
  opacity:.24;
  transition:opacity .2s ease;
  z-index:1;
}
.benefit-choice[aria-pressed=true]>.representative-mark{opacity:.82}
.representative-mark-fallback{
  width:100%;
  min-width:0;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  color:var(--mark-color);
  text-align:center;
}
.representative-mark-symbol{
  flex:none;
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  max-width:32%;
  box-sizing:border-box;
  padding:2px;
  border:2px solid currentColor;
  border-radius:50%;
  font-size:15px;
  font-weight:900;
  line-height:1;
  letter-spacing:-.08em;
}
.representative-mark-wording{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  max-width:100%;
}
.representative-mark-name{
  color:inherit;
  font-size:16px;
  line-height:1.16;
  font-weight:900;
  letter-spacing:-.05em;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.representative-mark-sub{
  margin-top:2px;
  font-family:Arial,sans-serif;
  font-size:8px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.02em;
}
.representative-mark--compact .representative-mark-name{font-size:12px}
.representative-mark--large .representative-mark-symbol{font-size:22px}
.representative-mark-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}
.representative-mark.has-real-logo .representative-mark-fallback{visibility:hidden}
#companyChips .representative-mark{
  top:30px;
  bottom:26px;
  left:8px;
  right:8px;
}
#companyChips .representative-mark-name{font-size:14px}
#companyChips .representative-mark-symbol{
  width:28px;
  height:28px;
  font-size:13px;
}
#companyChips .representative-mark--compact .representative-mark-name{font-size:11px}
#companyChips .representative-mark--large .representative-mark-symbol{font-size:20px}

/* Hotel cards: fixed two-column rows with right-side identity watermark. */
#hotelFeatures .feature-buttons{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-auto-rows:146px;
  align-items:stretch;
  gap:8px;
}
#hotelFeatures .feature-item{
  height:146px;
  min-height:146px;
  max-height:146px;
  min-width:0;
}
#hotelFeatures .feature-button{
  position:relative;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  box-sizing:border-box;
  width:100%;
  height:146px;
  min-height:146px;
  max-height:146px;
  padding:12px 9px 27px;
  overflow:hidden;
  border-radius:12px;
  isolation:isolate;
}
#hotelFeatures .benefit-choice-copy{
  position:relative;
  z-index:2;
  width:100%;
  min-width:0;
  height:auto;
  align-items:flex-start;
  justify-content:flex-start;
  padding-right:0;
  pointer-events:none;
}
#hotelFeatures .benefit-choice-heading{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  width:100%;
  max-width:100%;
}
#hotelFeatures .benefit-choice-name{
  box-sizing:border-box;
  max-width:100%;
  padding-right:18px;
  font-size:12px;
  line-height:1.38;
  font-weight:700;
  overflow-wrap:anywhere;
}
#hotelFeatures .benefit-choice-count .motion-number{font-size:22px}
#hotelFeatures .benefit-choice-count{line-height:1.15}
#hotelFeatures .benefit-choice-detail{
  width:100%;
  max-width:100%;
  font-size:11px;
  line-height:1.35;
  align-items:flex-start;
}
#hotelFeatures .feature-caption{
  position:relative;
  z-index:2;
  max-width:70%;
  font-size:11px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
#hotelFeatures .representative-mark{
  right:8px;
  top:45px;
  bottom:15px;
  width:48%;
  max-width:48%;
  opacity:.27;
}
#hotelFeatures .benefit-choice[aria-pressed=true]>.representative-mark{opacity:.75}
#hotelFeatures .representative-mark-fallback{
  flex-direction:column;
  gap:3px;
}
#hotelFeatures .representative-mark-symbol{
  width:26px;
  height:26px;
  font-size:12px;
}
#hotelFeatures .representative-mark-name{font-size:12px}
#hotelFeatures .representative-mark-sub{font-size:8px}
#hotelFeatures .representative-mark--compact .representative-mark-name{font-size:10px}
#hotelFeatures .feature-deadline{z-index:2;position:relative;max-width:65%}
#hotelFeatures .benefit-choice-status{color:var(--choice-ink,var(--accent-text))}
@media(max-width:520px){
  #companyChips{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;grid-auto-rows:108px}
  #companyChips .selected-issuer-group,
  #companyChips .benefit-choice,
  #companyChips .benefit-choice:has(.t-badge){
    height:108px;
    min-height:108px;
    max-height:108px;
  }
  #companyChips .benefit-choice-name{font-size:11px;padding-right:16px}
  #companyChips .representative-mark{left:4px;right:4px;top:27px;bottom:26px}
  #companyChips .representative-mark-fallback{gap:3px}
  #companyChips .representative-mark-symbol{width:22px;height:22px;font-size:10px}
  #companyChips .representative-mark-name{font-size:12px}
  #companyChips .representative-mark-sub{font-size:7px}
  #companyChips .representative-mark--compact .representative-mark-name{font-size:10px}
  #companyChips .benefit-choice-status{font-size:10px;padding:2px 4px;bottom:7px;left:6px}
  #companyChips .t-badge.voucher-deadline-bubble{bottom:7px;right:5px}
  #hotelFeatures .feature-buttons{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:148px}
  #hotelFeatures .feature-item,#hotelFeatures .feature-button{
    height:148px;min-height:148px;max-height:148px;
  }
  #hotelFeatures .feature-button{padding:10px 7px 26px}
  #hotelFeatures .benefit-choice-name{font-size:11px;padding-right:14px}
  #hotelFeatures .benefit-choice-count .motion-number{font-size:21px}
  #hotelFeatures .feature-caption{font-size:10px}
  #hotelFeatures .representative-mark{right:4px;width:51%;max-width:51%;top:50px;bottom:17px}
  #hotelFeatures .representative-mark-name{font-size:11px}
  #hotelFeatures .representative-mark-sub{font-size:7px}
}
@media(max-width:350px){
  #companyChips{gap:5px}
  #companyChips .benefit-choice{padding-left:5px;padding-right:5px}
  #companyChips .representative-mark-name{font-size:10px}
  #hotelFeatures .benefit-choice-name{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.representative-mark{transition:none}}


/* 2026-10-13 optical-size pass. Label-less cards need one central logo area,
   not a grid of different native image dimensions. All cards keep fixed height. */
#companyChips .representative-mark{
  top:29px;
  bottom:21px;
  left:6px;
  right:6px;
}
#companyChips .representative-mark-fallback{
  gap:0;
  padding-inline:5px;
  box-sizing:border-box;
}
#companyChips .representative-mark-fallback .representative-mark-symbol{
  display:none; /* Never synthesize what looks like an official company logo. */
}
#companyChips .representative-mark-fallback .representative-mark-wording{
  width:100%;
  max-width:100%;
}
#companyChips .representative-mark-name{
  font-size:19px;
  line-height:1.18;
  letter-spacing:-.055em;
}
#companyChips .representative-mark--compact .representative-mark-name{
  font-size:16px;
}
#companyChips .representative-mark-sub{font-size:9px;letter-spacing:.015em}
#companyChips .representative-mark-image{
  inset:auto;
  top:50%;
  left:50%;
  width:var(--logo-width,90%);
  height:var(--logo-height,100%);
  max-width:var(--logo-width,90%);
  max-height:var(--logo-height,100%);
  object-fit:contain;
  object-position:center;
  mix-blend-mode:multiply;
  transform:translate(-50%,-50%) scale(var(--logo-scale,1));
  transform-origin:center;
}
/* Real store logos are sized by occupied visual area, not the source canvas. */
#companyChips [data-issuer="yoshinoya"]{--logo-width:94%;--logo-height:100%}
#companyChips [data-issuer="zensho"]{--logo-width:86%;--logo-height:100%}
#companyChips [data-issuer="ohsho"]{--logo-width:86%;--logo-height:100%}
#companyChips [data-issuer="mcd"]{--logo-width:72%;--logo-height:94%}
#companyChips [data-issuer="mos"]{--logo-width:86%;--logo-height:100%}
#companyChips [data-issuer="komeda"]{--logo-width:72%;--logo-height:72%}
#companyChips [data-issuer="toridoll"]{--logo-width:75%;--logo-height:78%}
#companyChips [data-issuer="dnh"]{--logo-width:71%;--logo-height:81%}
#companyChips [data-issuer="ichibanya"]{--logo-width:90%;--logo-height:90%}
#companyChips [data-issuer="royal"]{--logo-width:83%;--logo-height:78%}
#companyChips [data-issuer="chikaranomoto"]{--logo-width:91%;--logo-height:100%}
#companyChips [data-issuer="skylark"]{--logo-width:76%;--logo-height:88%}
#companyChips [data-issuer="joyfull"]{--logo-width:82%;--logo-height:86%}
/* The source photo is square with a horizontally centred real CoCoICHIBANYA
   wordmark: cropping only its white vertical canvas keeps the mark legible. */
#companyChips [data-issuer="ichibanya"] .representative-mark-image{
  object-fit:cover;
}
/* Wide/short fallback store names: make them recognizable at the same glance. */
#companyChips [data-issuer="matsuya"] .representative-mark-name,
#companyChips [data-issuer="kineya"] .representative-mark-name{font-size:28px}
#companyChips [data-issuer="yossix"] .representative-mark-name,
#companyChips [data-issuer="arclands"] .representative-mark-name,
#companyChips [data-issuer="create"] .representative-mark-name{font-size:22px}
#companyChips [data-issuer="colowide"] .representative-mark-name{font-size:25px}
#companyChips [data-issuer="fujio"] .representative-mark-name{font-size:16px}
/* Selected is conveyed by color,  check control, and logo contrast. */
#companyChips .benefit-choice-status,
#hotelFeatures .benefit-choice-status{display:none!important}
#companyChips .representative-mark{opacity:.23}
#companyChips .benefit-choice[aria-pressed=true]>.representative-mark{opacity:.82}
@media(max-width:520px){
  #companyChips .representative-mark{
    top:26px;
    bottom:21px;
    left:3px;
    right:3px;
  }
  #companyChips .representative-mark-name{font-size:14px}
  #companyChips .representative-mark--compact .representative-mark-name{font-size:12px}
  #companyChips .representative-mark-sub{font-size:7px}
  #companyChips [data-issuer="matsuya"] .representative-mark-name,
  #companyChips [data-issuer="kineya"] .representative-mark-name{font-size:21px}
  #companyChips [data-issuer="yossix"] .representative-mark-name,
  #companyChips [data-issuer="arclands"] .representative-mark-name,
  #companyChips [data-issuer="create"] .representative-mark-name{font-size:16px}
  #companyChips [data-issuer="colowide"] .representative-mark-name{font-size:19px}
  #companyChips [data-issuer="fujio"] .representative-mark-name{font-size:12px}
}


/* Source-verified user-provided store marks. Preserve their proportions and
   normalize visual area within the existing fixed-height card logo zone. */
#companyChips [data-issuer="yamaokaya"]{--logo-width:91%;--logo-height:101%}
#companyChips [data-issuer="yossix"]{--logo-width:97%;--logo-height:104%}
#companyChips [data-issuer="srs"]{--logo-width:90%;--logo-height:100%}
#companyChips [data-issuer="arclands"]{--logo-width:94%;--logo-height:103%}
#companyChips [data-issuer="create"]{--logo-width:96%;--logo-height:104%}
#companyChips [data-issuer="chimney"]{--logo-width:96%;--logo-height:100%}
/* The six square-style files contain their complete marks. Avoid clipping
   the source canvas or skewing text to imitate another brand's proportions. */
#companyChips :is(
  [data-issuer="yamaokaya"],
  [data-issuer="yossix"],
  [data-issuer="srs"],
  [data-issuer="arclands"],
  [data-issuer="create"],
  [data-issuer="chimney"]
) .representative-mark-image{object-fit:contain}


/* Nine user-provided authentic store marks: single lightweight local sprite. */
#companyChips .representative-mark-sprite{
  display:block;
  inset:auto;
  left:50%;
  top:50%;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  transform:translate(-50%,-50%);
  background-image:url("./assets/dining-extra-logo-sprite.webp");
  background-repeat:no-repeat;
  background-size:300% 300%;
  mix-blend-mode:multiply;
}
#companyChips [data-issuer="fujio"]{--logo-width:94%;--logo-height:98%}
#companyChips [data-issuer="balnibarbi"]{--logo-width:95%;--logo-height:88%}
#companyChips [data-issuer="saintmarc"]{--logo-width:96%;--logo-height:98%}
#companyChips [data-issuer="matsuya"]{--logo-width:96%;--logo-height:94%}
#companyChips [data-issuer="hiday"]{--logo-width:98%;--logo-height:100%}
#companyChips [data-issuer="kineya"]{--logo-width:95%;--logo-height:93%}
#companyChips [data-issuer="ringerhut"]{--logo-width:96%;--logo-height:95%}
#companyChips [data-issuer="daiichikosho"]{--logo-width:98%;--logo-height:90%}
#companyChips [data-issuer="monogatari"]{--logo-width:99%;--logo-height:94%}
#hotelFeatures .representative-mark-image{
  object-fit:contain;
  object-position:center;
  max-width:100%;
  max-height:100%;
}
/* Keep readable hotel image identities below headers and counts. */
#hotelFeatures .representative-mark{top:50px;bottom:11px;}

/* Intrinsic proportions and optical spacing: never stretch logo artwork. */
#companyChips .representative-mark-image,
#hotelFeatures .representative-mark-image {
  position:static;
  inset:auto;
  width:auto;
  height:auto;
  max-width:var(--logo-width,86%);
  max-height:var(--logo-height,88%);
  object-fit:contain;
  transform:none;
  mix-blend-mode:normal;
}
#companyChips .representative-mark{opacity:.65}
#companyChips .benefit-choice[aria-pressed=true]>.representative-mark{opacity:1}
#companyChips [data-issuer="create"]{--logo-width:76%;--logo-height:88%}
#companyChips [data-issuer="fujio"]{--logo-width:76%;--logo-height:88%}
#companyChips [data-issuer="saintmarc"]{--logo-width:82%;--logo-height:90%}
#companyChips [data-issuer="kineya"]{--logo-width:86%;--logo-height:90%}
#companyChips [data-issuer="ringerhut"]{--logo-width:86%;--logo-height:90%}
#companyChips [data-issuer="daiichikosho"]{--logo-width:86%;--logo-height:88%}
#companyChips [data-issuer="balnibarbi"]{--logo-width:84%;--logo-height:88%}
#companyChips [data-issuer="monogatari"]{--logo-width:86%;--logo-height:88%}
#companyChips [data-issuer="matsuya"],
#companyChips [data-issuer="hiday"]{--logo-width:80%;--logo-height:82%}

/* Center logos in the entire cell; hidden fallback must not occupy flex space. */
.representative-mark.has-real-logo .representative-mark-fallback{display:none}
#companyChips .representative-mark,
#hotelFeatures .representative-mark{
  inset:0;
  width:100%;
  max-width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
}
#companyChips .representative-mark-image{max-height:48%;max-width:var(--logo-width,80%)}
#hotelFeatures .representative-mark{opacity:.7}
#hotelFeatures .benefit-choice[aria-pressed=true]>.representative-mark{opacity:1}
#hotelFeatures .representative-mark-image{max-width:72%;max-height:40%}
#hotelFeatures [data-feature="greens-hotels"] .representative-mark-image,
#hotelFeatures [data-feature="wakita-hotels"] .representative-mark-image{max-height:42%;max-width:54%}
#hotelFeatures [data-feature="tkp-hotels"] .representative-mark-image{max-width:56%;max-height:36%}
#hotelFeatures .benefit-choice-copy{height:100%;position:relative}
#hotelFeatures .benefit-choice-count{position:absolute;left:0;bottom:1px}
#hotelFeatures .benefit-choice-detail{position:absolute;left:0;top:calc(100% + 7px);width:100%;display:block}
#hotelFeatures .feature-caption{max-width:100%;display:block;white-space:nowrap;font-size:10px}
#hotelFeatures .feature-deadline{position:absolute;right:0;bottom:24px;max-width:65%;font-size:10px}
#hotelFeatures .representative-mark-fallback{height:auto;width:72%}
@media(max-width:520px){
 #hotelFeatures .feature-caption{font-size:9px}
}

/* Hotel identities sit beside the left text, vertically centered in the cell. */
#hotelFeatures .representative-mark{
 inset:0 7px 0 auto;
 width:48%;max-width:48%;height:100%;
}
#hotelFeatures .representative-mark-image{max-width:94%;max-height:45%}
#hotelFeatures [data-feature="greens-hotels"] .representative-mark-image,
#hotelFeatures [data-feature="wakita-hotels"] .representative-mark-image{max-width:78%;max-height:49%}
#hotelFeatures [data-feature="tkp-hotels"] .representative-mark-image{max-width:85%;max-height:38%}
#hotelFeatures .benefit-choice-copy{height:auto}
#hotelFeatures .benefit-choice-count{position:static}
#hotelFeatures .benefit-choice-detail{position:static;display:flex;width:48%}
#hotelFeatures .feature-caption{max-width:100%;white-space:normal;font-size:11px}
#hotelFeatures .feature-deadline{position:relative;inset:auto;max-width:100%;font-size:11px}
@media(max-width:520px){#hotelFeatures .feature-caption,#hotelFeatures .feature-deadline{font-size:10px}}

/* Official Sushiro round mark: preserve its square proportions and center. */
#companyChips [data-issuer="foodlife"]{--logo-width:78%;--logo-height:88%}

/* Supplied-logo pass: visually center the artwork, 2px below the previous position.
   This is a positioning-only adjustment; optical logo scaling is reserved for review. */
#companyChips .representative-mark-image,
#hotelFeatures .representative-mark-image{transform:translateY(2px)}

/* The official Tsukada header wordmark is white on transparency. */
[data-representative-brand="塚田農場"] .representative-mark-image{filter:brightness(0)}

/* Official Dandadan header artwork is white on transparency. */
[data-representative-brand="肉汁餃子のダンダダン"] .representative-mark-image{filter:brightness(0)}

/* Compensate for white canvas inside these assets. Keep the visible artwork
   comparable with adjacent marks, centered, and at its intrinsic proportions. */
#companyChips :is([data-issuer="saintmarc"],[data-issuer="sakai"]) .representative-mark-image{
  transform:translateY(2px) scale(1.5);
}
#companyChips [data-issuer="choushimaru"] .representative-mark-image{
  transform:translateY(2px) scale(2);
}
