/* One white invitation sheet across review, expanded sending and guest view. */
:is(#publicView,#editorView,.invitation-preview) .studio-invitation.studio-guest-paper{
  border:1px solid #d9d4ce99;background:#fff;box-shadow:inset 0 1px 0 #fff,0 3px 12px #514e4b07;
}
body:has(#publicView.active),#editorView .studio-shell:is([data-step=review],[data-step=gifts]){background:#faf9f6}
body:has(#publicView.active)::before{display:none}
#editorView .studio-shell:is([data-step=review],[data-step=gifts])>.studio-body{padding-inline:0}
.studio-guest-paper .studio-art-crop::after{
  background:linear-gradient(to bottom,#fff0,#fff calc(100% - var(--art-copy-overlap,0px)),#fff);
}
.studio-guest-paper .studio-guest-extras{padding:0 0 14px;background:none}
.studio-guest-paper .wishlist-intro{padding-inline:4px}
:is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-card{
  display:flex;flex-direction:column;align-items:stretch;align-self:stretch;gap:0;min-width:0;
  padding:0;border:1px solid #a5a29f30;border-radius:16px;
  background:#ffffffc9;box-shadow:inset 0 1px 0 #fff;overflow:hidden;
}
.studio-guest-paper .gift-img{
  position:relative;width:100%;height:auto;min-height:0;aspect-ratio:1;
  margin:0;border-radius:0;align-self:stretch;flex-shrink:0;padding:0;
}
.studio-guest-paper .gift-img img{
  position:absolute;inset:0;width:100%;height:100%;display:block;
  object-fit:cover;object-position:center;padding:0;
}
.studio-guest-paper .gift-img:has(.gift-placeholder-icon){display:grid;place-items:center}
.studio-guest-paper .gift-img .gift-placeholder-icon{position:static;object-fit:contain}
.studio-guest-paper .gift-body{
  display:flex;flex:1;flex-direction:column;min-width:0;padding:8px 8px 5px;
}
.studio-guest-paper .gift-body h3{
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;
  overflow:hidden;overflow-wrap:anywhere;min-height:2.7em;max-height:2.7em;
  font:400 13px/1.35 var(--studio-font);margin:0 0 3px;color:#575451;
}
.studio-guest-paper .gift-meta{margin:0 0 3px;min-height:17px}
.studio-guest-paper .gift-body>p{margin:3px 0 6px}
.studio-guest-paper .gift-actions{
  display:grid;grid-template-columns:minmax(max-content,.8fr) minmax(0,1.2fr);
  gap:0 4px;margin-top:auto;align-content:start;
}
/* The visible capsule is 28px high; its full 44px row remains easy to tap. */
:is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .btn,
#editorView .studio-wishlist-copy .gift-shop-link{
  position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;
  width:100%;min-width:0;min-height:44px;height:44px;gap:3px;
  padding:0 3px;border:0;border-radius:999px;background:none;box-shadow:none;
  font:400 11px/1.3 var(--studio-font);white-space:nowrap;color:#585552;
  opacity:1;filter:none;backdrop-filter:none;text-decoration:none;touch-action:manipulation;
}
:is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .btn::before,
#editorView .studio-wishlist-copy .gift-shop-link::before{
  content:'';position:absolute;inset:8px 0;z-index:-1;border:1px solid var(--glass-edge);
  border-radius:inherit;background:var(--glass-paper);box-shadow:var(--glass-shadow);
}
:is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .gift-reserve-action{
  color:#fff;
}
:is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .gift-reserve-action::before{
  background:var(--action,#30302e);border-color:transparent;
  box-shadow:inset 0 1px 0 #ffffff30,0 2px 4px #30302e10;
}
:is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .btn:disabled{
  color:#7b7875;cursor:default;
}
:is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .btn:disabled::before,
#editorView .studio-wishlist-copy .gift-shop-link:disabled::before{
  background:#eeeeeb;border-color:#d2d2cc80;box-shadow:inset 0 1px 0 #ffffffb8;
}
.studio-guest-paper .gift-actions .gift-shop-link svg{display:none}
.studio-guest-paper .gift-actions .gift-receipt-action{grid-column:1/-1}
/* A receipt adds its own row without shifting the primary pair on other gifts. */
.studio-guest-paper .guest-gifts:has(.gift-receipt-action) .gift-actions{min-height:88px}
#editorView .studio-wishlist-thumb{aspect-ratio:1}
#editorView .studio-wishlist-thumb img{position:absolute;inset:0;object-fit:cover}
#editorView .studio-wishlist-copy{display:flex;flex-direction:column}
#editorView .studio-wishlist-copy h3{min-height:2.7em;max-height:2.7em}
#editorView .studio-wishlist-copy .gift-shop-link{margin-top:3px}
@media(max-width:700px){
  .shell:has(#publicView.active){padding-left:max(12px,var(--app-safe-left,env(safe-area-inset-left)));padding-right:max(12px,var(--app-safe-right,env(safe-area-inset-right)))}
  .invitation-preview .preview-content{padding-inline:12px}
}
@media(max-width:350px){
  .studio-guest-paper .guest-gifts{gap:8px}
  .studio-guest-paper .gift-body{padding:7px 6px 4px}
  :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .btn{font-size:10px;padding-inline:2px}
}
@media(hover:hover){
  :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .btn:not(:disabled):hover::before,
  #editorView .studio-wishlist-copy .gift-shop-link:not(:disabled):hover::before{border-color:#9c999680}
  :is(#publicView,#editorView,.invitation-preview) .studio-guest-paper .gift-actions .gift-reserve-action:not(:disabled):hover::before{background:var(--action-hover,#1e1e1d)}
}
@media(prefers-reduced-motion:no-preference){
  .studio-guest-paper .gift-actions .btn::before,.studio-wishlist-copy .gift-shop-link::before{
    transition:background-color 180ms ease,border-color 180ms ease,box-shadow 180ms ease;
  }
}
