/* rent-a-lego — cadeaubon card: live preview on the cadeaubon page and the printable bon in the admin.
   Sizes use container units, so the card scales with the box it sits in. */
.giftcard-wrap { container-type: inline-size; width: 100%; }

.giftcard {
  position: relative;
  aspect-ratio: 1.45;
  padding: 11cqw 6.5cqw 4.5cqw;
  border-radius: 2.2cqw;
  background:
    radial-gradient(90% 70% at 100% 100%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(160deg, #e3f0fe, #c8e2fd 55%, #b2d4fa);
  box-shadow: inset 0 0 0 1px rgba(10, 94, 168, 0.18), 0 40px 60px -36px rgba(28, 27, 23, 0.55);
  color: #1c1b17;
  font-family: "Inter", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Yellow brick along the top, with studs. */
.giftcard::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5cqw;
  background:
    radial-gradient(circle at 2.2cqw 2.5cqw, rgba(255, 255, 255, 0.5) 1.15cqw, transparent 1.25cqw) 0 0 / 4.4cqw 5cqw repeat-x,
    #ffc72c;
  box-shadow: inset 0 -0.5cqw 0 #d9a300;
}

.giftcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 4cqw; }
.giftcard-logo { width: 38cqw; height: auto; display: block; }
.giftcard-title { text-align: right; }
.giftcard-k {
  display: inline-block;
  margin: 0 0 1cqw;
  padding: 0.6cqw 1.8cqw;
  border-radius: 1cqw;
  background: #d0271d;
  color: #fff;
  font: 800 2.3cqw/1.2 "Baloo 2", "Segoe UI", sans-serif;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.giftcard-amount {
  margin: 0;
  font: 800 10cqw/1 "Baloo 2", "Segoe UI", sans-serif;
  color: #d0271d;
  white-space: nowrap;
}

.giftcard-lines { margin: auto 0 0; padding-right: 17cqw; }
.giftcard-line {
  display: flex;
  align-items: baseline;
  gap: 2cqw;
  padding: 1cqw 0 0.6cqw;
  border-bottom: 0.25cqw dashed rgba(10, 94, 168, 0.35);
}
.giftcard-line + .giftcard-line { margin-top: 1.4cqw; }
.giftcard-line dt {
  flex: 0 0 11cqw;
  font-size: 2.1cqw;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a5ea8;
}
.giftcard-line dd {
  margin: 0;
  min-width: 0;
  font: 700 3.9cqw/1.15 "Baloo 2", "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
.giftcard-line dd.is-empty { color: rgba(28, 27, 23, 0.32); font-weight: 600; }

.giftcard-gift { position: absolute; right: 5.5cqw; bottom: 8.5cqw; width: 12cqw; height: auto; transform: rotate(6deg); }
.giftcard-foot { margin: 3cqw 0 0; font-size: 1.8cqw; color: #4a463c; letter-spacing: 0.02em; }
.giftcard-foot b { font-weight: 700; }

/* On the cadeaubon page the card tilts a little and straightens on hover. */
.gift-preview { padding: clamp(1.25rem, 4vw, 2.5rem); background: #fff; border-radius: 1.25rem; }
.gift-preview .giftcard { transform: rotate(-1.5deg); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gift-preview:hover .giftcard { transform: rotate(0); }
@media (min-width: 992px) { .gift-preview { position: sticky; top: 100px; } }

/* Home page: an example bon next to the gift text, linking to the cadeaubon page. */
.home-gift { display: block; max-width: 520px; margin: 0 auto; border-radius: 1rem; color: inherit; text-decoration: none; transform: rotate(2deg); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.home-gift:hover, .home-gift:focus-visible { transform: rotate(0) translateY(-4px); }
.home-gift-more { color: #0a5ea8; font-weight: 600; text-decoration: none; }
.home-gift-more:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .home-gift, .home-gift:hover { transform: none; transition: none; } }
/* Home page: the bon lies straight on the light-blue baseplate, without a white frame; a white edge and a
   deeper shadow keep it apart from the (also light-blue) plate. */
.home-gift .giftcard {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 3px 0 3px rgba(9, 76, 136, 0.18), 0 26px 44px -18px rgba(9, 50, 100, 0.55);
}
