/* Aso-ebi and the gift card, shared by the invitation and the prayer page.
   Uses each page's own --serif and --sans, in burgundy and gold. */
.x-sheet, .x-chip, .x-teaser, .x-back { --x-deep: #2e0a15; --x-wine: #4a0f1f; --x-gold: #e2c98f; --x-cream: #fbf3e6; }

/* Tag, top left */
.x-chip {
  position: fixed; z-index: 45; top: calc(12px + env(safe-area-inset-top)); left: 12px;
  display: flex; align-items: center; gap: 8px; padding: 9px 15px 9px 12px; border-radius: 999px;
  background: rgba(46, 10, 21, .84); color: var(--x-cream); border: 1px solid rgba(226, 201, 143, .5);
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 8px 22px -10px rgba(30, 5, 12, .7);
  opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .5s, transform .5s;
}
.x-chip.on { opacity: 1; transform: none; pointer-events: auto; }
.x-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--x-gold); animation: x-pulse 2.4s ease-out infinite; }
@keyframes x-pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 201, 143, .7); } 70%, 100% { box-shadow: 0 0 0 9px rgba(226, 201, 143, 0); } }

/* Inline card */
.x-teaser {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 520px; margin: 0 auto; padding: 16px 16px 16px 14px;
  border-radius: 22px; text-align: left; cursor: pointer; color: var(--x-cream);
  background: radial-gradient(120% 140% at 0% 0%, #7d2a3c 0%, var(--x-wine) 55%, var(--x-deep) 100%);
  border: 1px solid rgba(226, 201, 143, .45); box-shadow: 0 22px 40px -22px rgba(42, 8, 18, .75);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.x-teaser:hover { transform: translateY(-2px); }
.x-teaser-icon { flex: none; width: 46px; height: 46px; color: var(--x-gold); }
.x-teaser-icon svg { width: 100%; height: 100%; display: block; }
.x-teaser-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.x-teaser-title { font-family: var(--serif); font-size: 23px; line-height: 1.15; }
.x-teaser-sub { font-family: var(--sans); font-size: 12px; line-height: 1.4; color: rgba(251, 243, 230, .72); }
.x-teaser-go { flex: none; padding: 9px 15px; border-radius: 999px; background: var(--x-cream); color: var(--x-wine); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .06em; }

/* Sheets */
.x-back { position: fixed; inset: 0; z-index: 70; background: rgba(20, 4, 10, .5); opacity: 0; pointer-events: none; transition: opacity .4s; }
.x-back.on { opacity: 1; pointer-events: auto; }
.x-sheet {
  position: fixed; z-index: 71; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 440px; max-height: calc(100vh - 30px); max-height: calc(100dvh - 30px); margin: 0 auto; overflow: auto; overscroll-behavior: contain;
  padding: 20px 18px 18px; border-radius: 24px; color: var(--x-cream); text-align: left;
  background: rgba(46, 10, 21, .97); border: 1px solid rgba(226, 201, 143, .22); box-shadow: 0 24px 60px -16px rgba(20, 4, 10, .7);
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  transform: translateY(calc(100% + 40px)); transition: transform .6s cubic-bezier(.2, .9, .25, 1.04);
}
.x-sheet.on { transform: none; }
.x-close { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; color: rgba(251, 243, 230, .65); background: none; border: 0; cursor: pointer; }
.x-kicker { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--x-gold); }
.x-title { margin-top: 4px; padding-right: 30px; font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.x-lead { margin-top: 8px; padding-right: 22px; font-family: var(--serif); font-size: 19px; line-height: 1.35; }

.x-tabs { display: flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.x-tabs button { flex: 1; padding: 9px; border: 0; border-radius: 999px; background: none; color: rgba(251, 243, 230, .7); font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .3s, color .3s; }
.x-tabs button[aria-selected="true"] { background: var(--x-cream); color: var(--x-wine); }
.x-fabric { margin-top: 12px; }
.x-fabric-name { font-family: var(--serif); font-size: 20px; line-height: 1.2; color: var(--x-gold); }
.x-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(226, 201, 143, .22); font-size: 14px; }
.x-row b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.x-due { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(226, 201, 143, .55); color: var(--x-gold); font-size: 11.5px; font-weight: 600; letter-spacing: .08em; }
.x-acct {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 10px; padding: 12px 12px 12px 16px; text-align: left;
  border-radius: 16px; color: inherit; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); cursor: pointer; transition: background .3s;
}
.x-acct:hover, .x-acct:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.x-acct-main { display: grid; flex: 1; min-width: 0; }
.x-acct-bank { font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgba(251, 243, 230, .6); }
.x-acct-num { font-family: var(--sans); font-size: 22px; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.x-acct-name { font-size: 12.5px; color: rgba(251, 243, 230, .72); }
.x-acct-hint { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--x-cream); color: var(--x-wine); font-size: 12px; font-weight: 600; }
.x-small { margin-top: 12px; font-size: 13px; color: rgba(251, 243, 230, .8); }
.x-wa { display: flex; gap: 8px; margin-top: 8px; }
.x-wa a {
  flex: 1; padding: 10px 8px; border-radius: 12px; text-align: center; text-decoration: none; color: var(--x-cream);
  border: 1px solid rgba(226, 201, 143, .45); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.x-wa a::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #3ecf72; vertical-align: 1px; }
.x-notice {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border-radius: 14px;
  background: rgba(226, 201, 143, .12); border: 1px solid rgba(226, 201, 143, .55);
}
.x-notice-heart { flex: none; font-size: 15px; line-height: 1.5; }
.x-notice p { font-size: 13.5px; line-height: 1.5; color: var(--x-cream); }
.x-notice b { color: var(--x-gold); font-weight: 600; }
.x-note { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 15.5px; line-height: 1.4; color: rgba(251, 243, 230, .78); }
.x-link { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--x-gold); font-family: var(--sans); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Quiet links at the end */
.x-foot { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .x-sheet, .x-chip, .x-back { transition-duration: .01ms; }
  .x-chip i { animation: none; }
}

/* The gift account, revealed in place under the footer links */
.x-gift { display: block; max-width: 340px; margin: 12px auto 0; text-transform: none; letter-spacing: normal; }
.x-gift[hidden] { display: none; }
.x-gift .x-acct { --x-cream: #fbf3e6; color: #fbf3e6; background: #3a0d1a; border-color: rgba(226, 201, 143, .35); }
.x-gift .x-acct-hint { background: #fbf3e6; color: #4a0f1f; }
