/* Les positions suivent le canevas 1536 × 1024 de la Gestion et de giftPdf.ts. */
.summary { min-width: 0; }
.gift-preview-frame {
  position: relative;
  contain: inline-size;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 16px 0;
}
.gift-certificate {
  position: relative;
  isolation: isolate;
  width: 1536px;
  height: 1024px;
  overflow: hidden;
  transform-origin: top left;
  background: #fff8e9;
  color: #063c24;
  font: 16px/1.2 Georgia, 'Times New Roman', serif;
}
.gift-certificate [data-fit] { overflow: hidden; }
.gift-artwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gift-brand {
  position: absolute;
  z-index: 1;
  left: 45px;
  top: 82px;
  width: 465px;
  height: 390px;
  object-fit: contain;
}
.gift-small-title, .gift-occasion, .gift-recipient, .gift-dedication, .gift-service {
  position: absolute;
  z-index: 1;
  margin: 0;
  text-align: center;
}
.gift-small-title {
  left: 625px;
  top: 72px;
  width: 770px;
  font-size: 27px;
  letter-spacing: 2px;
  color: #10130c;
  white-space: nowrap;
}
.gift-certificate .gift-occasion {
  left: 575px;
  top: 123px;
  width: 860px;
  height: 126px;
  font: 400 104px/1.08 'Great Vibes', cursive;
  color: #b07c18;
  text-shadow: 1px 1px #fff4c9, 2px 3px 1px #5a350c;
  overflow-wrap: anywhere;
}
.gift-certificate .gift-recipient {
  left: 735px;
  top: 252px;
  width: 545px;
  height: 82px;
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.gift-dedication {
  left: 585px;
  top: 382px;
  width: 830px;
  height: 98px;
  align-content: center;
  padding-inline: 12px;
  font-style: italic;
  line-height: 1.15;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #11150e;
}
.gift-service {
  left: 575px;
  top: 687px;
  width: 840px;
  height: 72px;
  align-content: center;
  line-height: 1.1;
  overflow-wrap: anywhere;
  color: #11150e;
}
.gift-design-fete-meres .gift-occasion,
.gift-design-fete-meres .gift-dedication { left: 585px; width: 720px; }
.gift-design-fete-peres .gift-occasion,
.gift-design-fete-peres .gift-recipient,
.gift-design-fete-peres .gift-dedication { left: 570px; width: 590px; }
.gift-design-fete-peres .gift-service { left: 520px; width: 780px; }
.gift-design-saint-valentin .gift-dedication { top: 410px; height: 100px; }
.gift-design-mariage .gift-dedication { top: 350px; height: 115px; }

.gift-meta {
  position: absolute;
  z-index: 1;
  left: 58px;
  top: 676px;
  width: 190px;
  display: grid;
  gap: 7px;
  text-align: center;
}
.gift-meta > div { display: grid; gap: 1px; }
.gift-meta-label {
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.1;
  color: #ffedbd;
  text-shadow: 0 1px 3px #100c0a;
}
.gift-meta-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff6d8;
  white-space: nowrap;
  text-shadow: 0 1px 3px #100c0a;
}
.gift-contact {
  position: absolute;
  z-index: 1;
  left: 430px;
  top: 872px;
  width: 1060px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  text-align: center;
  font-size: 17px;
  line-height: 1.22;
  color: #233328;
}
.gift-socials { display: contents; }
.gift-contact :is(.gift-address, .gift-phone, .gift-website, .gift-instagram) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.gift-contact svg { width: 26px; height: 26px; flex: none; color: #a97820; }

:is(.gift-design-black-friday, .gift-design-noel) {
  color: #f7e7c1;
  --gift-duration-color: #e5b85f;
  font-family: 'Times New Roman', Georgia, serif;
}
:is(.gift-design-black-friday, .gift-design-noel) .gift-brand { left: 60px; width: 480px; }
.gift-special-message, .gift-special-service, .gift-special-duration, .gift-special-name {
  position: absolute;
  z-index: 1;
  left: 630px;
  width: 678px;
  display: grid;
  align-content: center;
  margin: 0;
  text-align: center;
  line-height: 1.05;
}
.gift-special-message {
  left: 590px;
  width: 760px;
  font-style: italic;
  line-height: 1.1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.gift-special-message > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-inline: 4px;
}
.gift-certificate .gift-special-service { font-family: inherit; font-weight: 400; overflow-wrap: anywhere; }
.gift-special-duration { color: var(--gift-duration-color); line-height: 1; }
.gift-special-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gift-special-name--wide { width: calc(100% - 630px); text-align: left; }
.gift-recipient-label { font-size: .6em; margin-right: .35em; }
.gift-sender-label { font-size: .75em; }
.gift-meta--inline {
  display: block;
  left: 590px;
  top: 742px;
  width: 760px;
  font-size: 22px;
  line-height: 40px;
}
.gift-meta--inline p { margin: 0; white-space: nowrap; }
.gift-meta-gap { display: inline-block; width: 70px; }
:is(.gift-design-black-friday, .gift-design-noel) .gift-contact {
  left: 80px;
  width: 1376px;
  gap: 20px;
  color: #c3cdb9;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}
:is(.gift-design-black-friday, .gift-design-noel) .gift-contact :is(.gift-address, .gift-phone, .gift-website, .gift-instagram) {
  gap: 8px;
}
:is(.gift-design-black-friday, .gift-design-noel) .gift-contact svg { width: 30px; height: 30px; color: #e5b85f; }

.gift-design-black-friday { background: #18100b; --gift-sender-offset: -20px; }
.gift-design-black-friday.gift-certificate--has-sender { --gift-sender-offset: 0px; }
.gift-design-black-friday .gift-brand { top: 65px; height: 360px; }
.gift-design-black-friday .gift-small-title {
  top: 172px;
  left: 630px;
  width: 678px;
  height: 68px;
  align-content: center;
  color: #e5b85f;
  font-size: 42px;
  letter-spacing: 3px;
  line-height: 1;
}
/* Comme dans le PDF, le bloc central remonte de 20 px sans expéditeur. */
.gift-design-black-friday .gift-special-sender { top: 252px; height: 74px; }
.gift-design-black-friday .gift-special-message { top: calc(334px + var(--gift-sender-offset)); height: 98px; }
.gift-design-black-friday .gift-special-service { top: calc(452px + var(--gift-sender-offset)); height: 76px; }
.gift-design-black-friday .gift-special-duration { top: calc(524px + var(--gift-sender-offset)); height: 62px; }
.gift-design-black-friday .gift-special-recipient { top: calc(596px + var(--gift-sender-offset)); height: 74px; }
.gift-design-black-friday .gift-contact { top: 838px; border-top: 1px solid #8a6d3b; padding-top: 10px; }
.gift-bf-rule { position: absolute; z-index: 1; left: 760px; width: 420px; height: 1px; background: #8a6d3b; }
.gift-bf-rule--message { top: calc(442px + var(--gift-sender-offset)); }
.gift-bf-rule--meta { top: 712px; }

/* Même fond et mêmes retouches de texture que l'aperçu de la Gestion. */
.gift-black-friday-art-cleanup{position:absolute;inset:0;z-index:0;pointer-events:none}
.gift-black-friday-art-cleanup span{position:absolute;background-image:url('artwork/black-friday.webp?v=2');background-size:1536px 1024px;background-repeat:no-repeat;mask-image:linear-gradient(to right,transparent,#000 8px,#000 calc(100% - 8px),transparent),linear-gradient(to bottom,transparent,#000 5px,#000 calc(100% - 5px),transparent);mask-composite:intersect}
.gift-art-cleanup-title-left{left:505px;top:237px;width:120px;height:19px;background-position:-505px -259px}
.gift-art-cleanup-title-right{left:1310px;top:237px;width:125px;height:19px;background-position:-1310px -259px}
.gift-art-cleanup-duration-left{left:635px;top:438px;width:155px;height:20px;background-position:-635px -462px}
.gift-art-cleanup-duration-right{left:1120px;top:438px;width:155px;height:20px;background-position:-1120px -462px}
.gift-art-cleanup-rule-one{left:625px;top:526px;width:830px;height:20px;background-position:-625px -550px}
.gift-art-cleanup-rule-two{left:625px;top:587px;width:830px;height:20px;background-position:-625px -611px}
.gift-art-cleanup-rule-three{left:625px;top:647px;width:830px;height:20px;background-position:-625px -671px}
.gift-art-cleanup-rule-four{left:625px;top:707px;width:830px;height:20px;background-position:-625px -731px}
.gift-art-cleanup-flower{left:535px;top:785px;width:475px;height:67px;background-position:-535px -857px}
.gift-art-cleanup-pill-old{left:598px;top:204px;width:740px;height:86px;background-position:-598px -300px}
.gift-art-cleanup-pill-new{left:618px;top:164px;width:700px;height:86px;background-position:-618px -204px}

.gift-design-noel { color: #fff3da; background: #0e2a1d; --gift-duration-color: #e8c36a; }
.gift-design-noel .gift-brand { top: 30px; height: 340px; }
.gift-noel-title {
  position: absolute;
  z-index: 1;
  left: 572px;
  top: 132px;
  width: 794px;
  height: 108px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  white-space: nowrap;
  color: #f2cf73;
}
.gift-noel-title-main { font-size: 52px; line-height: 1; }
.gift-noel-title-preposition { font-size: 42px; font-style: italic; line-height: 1; }
.gift-noel-title-script {
  font: 400 122px/1 'Great Vibes', cursive;
  color: #e8b84a;
  text-shadow: 1px 1px #fff4c9, 2px 3px 1px #5a350c;
}
.gift-design-noel .gift-special-message { top: 282px; height: 90px; }
.gift-design-noel .gift-special-service { top: 404px; height: 72px; }
.gift-design-noel .gift-special-duration { top: 470px; height: 60px; }
.gift-design-noel .gift-special-recipient { top: 538px; height: 60px; }
.gift-design-noel.gift-certificate--has-sender .gift-special-recipient { top: 526px; }
.gift-design-noel .gift-special-sender { top: 578px; height: 40px; }
.gift-design-noel .gift-meta--inline { top: 648px; }
.gift-design-noel .gift-contact { top: 850px; color: #fff6e6; }
