/* Approved Touchy Coffee case study 36: photo with the order ticket tucked over its window edge. */
#touchy-coffee-case-study.touchy-case-layered{
 --case-photo-line:color-mix(in srgb,var(--hags-paper) 31%,transparent);
 --case-outer-space:clamp(24px,4.5vh,54px);
 background:var(--hags-indigo);color:var(--hags-paper);
 padding-block:calc(var(--case-outer-space) + 10px);
}
.touchy-case-layered .case-rail{width:var(--hags-wide-rail);margin-inline:auto;}
.touchy-case-layered .case-layer{
 display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);
 gap:clamp(35px,5.5vw,100px);align-items:center;
}
.touchy-case-layered .case-layer-copy{display:grid;gap:var(--hags-content-gap);}
.touchy-case-layered .case-mast :is(h1,h2,p){margin:0;}
.touchy-case-layered .case-mast :is(h1,h2){text-wrap:balance;max-inline-size:20ch;}
.touchy-case-layered .case-copy{
 font-size:clamp(14px,1.08vw,16px);display:grid;align-content:start;gap:var(--hags-copy-gap);
}
.touchy-case-layered .case-copy p{margin:0;max-inline-size:45ch;}
.touchy-case-layered a{
 display:inline-flex;min-block-size:44px;align-items:center;gap:.38em;justify-self:start;
 text-underline-offset:4px;text-decoration-thickness:1px;font-size:13px;
}
.touchy-case-layered a span{padding-inline-start:.25em;}
.touchy-case-layered .case-layer-media{
 position:relative;min-inline-size:0;align-self:center;
 max-inline-size:min(100%,calc((100svh - 260px) * 1.25));inline-size:100%;justify-self:end;
}
#touchy-coffee-case-study.touchy-case-layered .touchy-case-photo{
 align-self:center;border:1px solid var(--case-photo-line);
}
#touchy-coffee-case-study.touchy-case-layered .touchy-quote-ticket{
 box-sizing:border-box;position:absolute;inset:auto auto 8% -6%;margin:0;
 gap:10px;padding:clamp(12px,1.25vw,19px);align-self:center;font-size:13px;
 inline-size:37%;min-inline-size:180px;max-inline-size:228px;rotate:-6deg;
}
.touchy-case-layered .touchy-ticket-order{font-size:clamp(22px,2.05vw,31px);}
.touchy-case-layered .touchy-ticket-service{font-size:14px;}
.touchy-case-layered .touchy-ticket-label{margin-top:7px;font-size:11px;}
.touchy-case-layered .touchy-ticket-item{padding-block:7px;margin-top:6px;font-size:14px;}
.touchy-case-layered .touchy-ticket-credit span{flex:none;}
#touchy-coffee-case-study.touchy-case-layered .touchy-ticket-credit{font-size:10px;padding-top:7px;}
@media(min-width:761px) and (max-width:1000px){
 .touchy-case-layered .case-layer{gap:46px;}
 .touchy-case-layered .case-layer-media{max-inline-size:none;}
}
@media(min-width:761px) and (max-height:790px){
 #touchy-coffee-case-study.touchy-case-layered{--case-outer-space:24px;}
}
@media(max-width:760px){
 #touchy-coffee-case-study.touchy-case-layered{padding-block:var(--case-outer-space);}
 .touchy-case-layered .case-layer{grid-template-columns:minmax(0,1fr);gap:var(--hags-content-gap);}
 .touchy-case-layered .case-layer-media{max-inline-size:none;}
 #touchy-coffee-case-study.touchy-case-layered .touchy-quote-ticket{
  position:relative;inset:auto;margin:var(--hags-content-gap) auto 0;
  inline-size:min(86%,270px);max-inline-size:none;min-inline-size:0;rotate:-2deg;
 }
}

/* Temporary mouth of the receipt feeder; never part of the resting layout. */
.touchy-case-layered .case-printer-mouth{
 position:absolute;z-index:2;height:10px;pointer-events:none;border-radius:2px;
 background:linear-gradient(#6b5f87 0 18%,#252032 21% 56%,#151122 56% 69%,#817493 72%);
 box-shadow:0 2px 6px #1e172a60;opacity:0;
}
.touchy-case-layered[data-print-pending] .touchy-quote-ticket{visibility:hidden;}
@media(prefers-reduced-motion:reduce){
 .touchy-case-layered[data-print-pending] .touchy-quote-ticket{visibility:visible;}
 .touchy-case-layered .case-printer-mouth{display:none;}
}

@media(max-width:760px){
 #main > #touchy-coffee-case-study.touchy-case-layered .touchy-quote-ticket{
  margin-block-start:calc(-1 * clamp(36px,11vw,54px));
 }
}
