/* A Word for You: the shop, the envelope, the card and the giver's page. Colors and letters follow the approved design. The room for
   the fixed header of the house is made by Navigation itself, on the body; these pages add only a little air above their first line.
   On a phone that header is 16 higher than the room made for it, so there the air is more: see the rule for phones below. */
.dgwg-body { background: #F3ECDD; color: #22302A; margin: 0; }
.dgwg { --pine: #2E4635; --wine: #6B2A35; --gold: #E8B84B; --paper: #FBF6EA; --line: #E0D7C3; --soft: #5F6B63;
  font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; display: block; max-width: 1040px; margin: 0 auto; padding: 34px 20px 56px; }
.dgwg [hidden] { display: none !important; }
/* a page has one h1; the headings of the steps of the shop and of the example card look like one and are an h2 (dgwg-h1) */
.dgwg h1, .dgwg .dgwg-h1 { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.12;
  margin: 0 0 14px; }
.dgwg h2 { font-family: Fraunces, Georgia, serif; font-weight: 500; font-size: 1.35rem; margin: 30px 0 10px; }
/* a short page still reaches the bottom of the window: the footer of the house closes it, with no strip of background under it.
   The page keeps its width: 1040 and the room at its sides */
body.dgwg-body { display: flex; flex-direction: column; box-sizing: border-box; min-height: 100vh; }
body.admin-bar.dgwg-body { min-height: calc(100vh - 32px); }
body.dgwg-body > main.dgwg { flex: 1 0 auto; width: 100%; max-width: 1080px; box-sizing: border-box; }
.dgwg-body .dgc-hsv-standalone { display: none; }
.dgwg-view { max-width: 760px; margin: 0 auto; }
.dgwg-center { text-align: center; padding-top: 40px; }
.dgwg-kicker { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
.dgwg-lead { font-size: 1.1rem; color: #3B4A42; margin: 0 0 20px; }
.dgwg-hint { font-size: .86rem; color: var(--soft); margin: 6px 0 0; }
.dgwg-count { display: block; text-align: end; font-size: .8rem; color: var(--soft); margin: 4px 0 -4px; font-variant-numeric: tabular-nums; }
.dgwg-err { font-size: .92rem; color: #9C2B2B; margin: 10px 0 0; }
.dgwg-half { font-size: .88rem; color: var(--soft); margin: 26px 0 0; }
.dgwg-half a { color: var(--pine); font-weight: 600; }

/* buttons and fields */
.dgwg-btn { display: inline-block; font: 600 1rem Inter, system-ui, sans-serif; padding: 13px 22px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--pine); color: #FBF8F1; text-decoration: none; }
.dgwg-btn-y { background: var(--gold); color: #1B2019; }
.dgwg-btn-line { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 1.5px var(--pine); }
.dgwg-btn:disabled { opacity: .6; cursor: default; }
/* the button to pay with, in the middle of the form, and under it a hand drawn arrow up to it and, in a handwritten italic, the line about where half of the
   money goes; beside the button it would wrap under it on a narrow form and point the wrong way */
.dgwg-pay-row { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#dgwg-pay { font-size: 1.15rem; padding: 15px 26px; }
.dgwg-pay-half { display: flex; align-items: flex-start; gap: 6px; margin: 0; padding-inline-start: 18px; max-width: 300px;
  font: italic 500 .88rem/1.5 Fraunces, Georgia, serif; color: var(--wine); text-wrap: balance; }
.dgwg-pay-half strong { font-style: normal; font-weight: 800; }
.dgwg-pay-arrow { flex: none; width: 36px; height: 28px; margin-top: -2px; fill: none; stroke: var(--wine); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; transform: rotate(62deg); }
[dir="rtl"] .dgwg-pay-arrow { transform: scaleX(-1) rotate(62deg); }
.dgwg-link { background: none; border: 0; padding: 0; font: inherit; color: var(--pine); text-decoration: underline; cursor: pointer; }
.dgwg-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 18px; font-size: .92rem; }
.dgwg-in { display: block; width: 100%; box-sizing: border-box; font: 500 1.05rem Inter, system-ui, sans-serif; color: inherit; background: #FFFDF8;
  border: 1.5px solid #CFC8BA; border-radius: 10px; padding: 13px 14px; margin: 6px 0 0; }
.dgwg-in:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.dgwg-field { margin: 0 0 18px; }
select.dgwg-in { cursor: pointer; }
#dgwg-prev-lang { margin: 0 0 12px; }
/* a warning under a field: what the giver has to know before paying */
.dgwg-warn { margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--gold); border-radius: 10px; background: #FBF1D8; font-size: .9rem;
  line-height: 1.5; color: #4A3A12; }
.dgwg-field label { font-weight: 600; font-size: .95rem; }
.dgwg-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .9rem !important; }
.dgwg-check a { color: var(--pine); font-weight: 600; }
.dgwg-bad .dgwg-in, .dgwg-bad .dgwg-check { outline: 2px solid #9C2B2B; outline-offset: 2px; border-radius: 10px; }
.dgwg-ways { border: 0; padding: 0; min-width: 0; }
.dgwg-ways legend { font-weight: 600; font-size: .95rem; padding: 0; margin: 0 0 8px; }
.dgwg-ways > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dgwg-way { position: relative; display: block; cursor: pointer; }
.dgwg-way input { position: absolute; opacity: 0; }
.dgwg-way span { display: block; height: 100%; box-sizing: border-box; background: #FFFDF8; border: 1.5px solid #CFC8BA; border-radius: 10px;
  padding: 12px 14px; }
.dgwg-way span { position: relative; padding-inline-start: 58px; }
.dgwg-ico { position: absolute; inset-inline-start: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: var(--pine); }
.dgwg-ico-whatsapp { background: #1FA855; }
.dgwg-ico-facebook { background: #1877F2; }
.dgwg-ico-mail { background: var(--wine); }
.dgwg-ico-own { background: none; border-radius: 0; }
.dgwg-ico-own img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dgwg-way b { display: block; font-size: 1rem; }
.dgwg-way small { display: block; font-weight: 400; font-size: .84rem; line-height: 1.4; color: var(--soft); margin-top: 2px; }
.dgwg-way input:checked + span { border-color: var(--pine); background: #EEF2E6; box-shadow: inset 0 0 0 1px var(--pine); }
.dgwg-way input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.dgwg-code-open { margin: -6px 0 18px; font-size: .92rem; }
.dgwg-code { display: flex; gap: 8px; align-items: stretch; max-width: 340px; }
.dgwg-code .dgwg-in { text-transform: uppercase; }
.dgwg-code .dgwg-btn { margin: 6px 0 0; padding: 0 18px; white-space: nowrap; }
.dgwg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* the three steps on the first screen; the rest of that screen is in home.css */
.dgwg-how { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 22px 0 16px; }
.dgwg-how li { counter-increment: how; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 24px 24px 76px; }
.dgwg-how li::before { content: counter(how); position: absolute; top: 20px; inset-inline-start: 22px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--wine); color: #FBF6EA; font: 700 1.2rem/38px Fraunces, Georgia, serif; text-align: center; }
.dgwg-how strong { display: block; font: 700 1.2rem/1.25 Fraunces, Georgia, serif; color: var(--pine); margin: 0 0 8px; }
.dgwg-how span { display: block; font-size: 1rem; line-height: 1.6; color: #3B4A42; }
/* what the other person receives: four ticks in a row and the price of all of it */
.dgwg-get { border: 2px dashed #C9A54A; border-radius: 12px; padding: 22px 24px; }
.dgwg-get h3 { font: 700 1.2rem/1.25 Fraunces, Georgia, serif; color: var(--pine); margin: 0 0 14px; }
.dgwg-get .dgwg-ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 0; font-size: 1rem; }
.dgwg-get-sum { margin: 16px 0 0; font: 700 1.25rem/1.2 Fraunces, Georgia, serif; color: var(--wine); }

/* the steps and the moments */
.dgwg-bar { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; padding: 0; margin: 0 auto 22px; max-width: 760px; font-size: .82rem;
    color: var(--soft); }
.dgwg-bar li[aria-current] { color: #22302A; font-weight: 700; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
/* a step that can be reached is a link back or forward; one that cannot stays pale */
.dgwg-bar button { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--pine); cursor: pointer; text-decoration: underline;
  text-decoration-color: rgba(46, 70, 53, .35); text-underline-offset: 3px; }
.dgwg-bar button:hover, .dgwg-bar button:focus-visible { text-decoration-color: currentColor; }
.dgwg-bar button:disabled { color: inherit; cursor: default; text-decoration: none; }
.dgwg-bar li:not([aria-current]) button:disabled { opacity: .6; }
.dgwg-group h2 { font-size: 1.25rem; margin: 34px 0 14px; }
/* step 1: every celebration is a card with a picture, so choosing a moment looks like the shop it leads to */
#dgwg-moments { max-width: 1040px; }
#dgwg-q { max-width: 420px; }
.dgwg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 18px; }
.dgwg-tile { display: block; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.dgwg-tile .dgwg-front, .dgwg-tile .dgwg-front-words { display: block; }
.dgwg-tile .dgwg-front { font-size: .84rem; transition: transform .18s ease; }
.dgwg-tile .dgwg-own-face { font-size: .84rem; transition: transform .18s ease; }
.dgwg-tile .dgwg-own-fan { display: block; }
.dgwg-tile:hover > span, .dgwg-tile:focus-visible > span { transform: translateY(-5px) rotate(-1deg); }
.dgwg-tile small { display: block; margin: 9px 0 0; font-size: .86rem; color: var(--soft); }
.dgwg-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.dgwg-chip { font: 600 .95rem Inter, system-ui, sans-serif; padding: 11px 17px; border-radius: 999px; border: 1px solid var(--line); background: #FFFDF8;
  color: inherit; cursor: pointer; }
.dgwg-chip:hover, .dgwg-chip:focus-visible { background: var(--pine); border-color: var(--pine); color: #FBF8F1; }

/* the rack of cards */
#dgwg-cards { max-width: 1000px; }
.dgwg-rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 20px; margin: 8px 0 0; }
.dgwg-item { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.dgwg-item > .dgwg-front { cursor: pointer; transition: transform .18s ease; }
.dgwg-item > .dgwg-front:hover { transform: translateY(-4px) rotate(-.6deg); }
.dgwg-item-ref { margin: 4px 0 0; font: 700 1.15rem/1.3 Fraunces, Georgia, serif; color: var(--wine); }
.dgwg-item-who { font-size: .9rem; margin: 0; color: #3B4A42; }
.dgwg-front { position: relative; width: 100%; aspect-ratio: 5 / 7; border-radius: 6px; overflow: hidden; background-size: cover; background-position: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22); }
.dgwg-front-words { position: absolute; inset: auto 0 0 0; padding: 34% 9% 9%; color: #FFF8E7; text-align: start;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .58)); }
.dgwg-front-words small { display: block; font: 700 1.25em Caveat, 'Segoe Script', cursive; margin: 0 0 4px; }
.dgwg-front-words strong { display: block; font: 700 1.3em/1.12 Fraunces, Georgia, serif; }
/* the giver's own verse: a card among the cards, with three pictures of the collection on it */
.dgwg-own { margin: 0; cursor: pointer; }
.dgwg-own-face { position: relative; width: 100%; aspect-ratio: 5 / 7; box-sizing: border-box; overflow: hidden; padding: 9%; border-radius: 6px;
  border: 2px dashed #C9A54A; background: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.dgwg-own-fan { position: absolute; inset: 9% 0 auto 0; height: 50%; }
.dgwg-own-fan i { position: absolute; top: 0; left: 50%; width: 38%; aspect-ratio: 5 / 7; margin-left: -19%; border-radius: 4px;
  background: #D9CBAE center / cover; box-shadow: 0 6px 14px rgba(0, 0, 0, .22); }
.dgwg-own-fan i:nth-child(1) { transform: translateX(-58%) rotate(-10deg); }
.dgwg-own-fan i:nth-child(2) { z-index: 1; transform: translateY(-3%); }
.dgwg-own-fan i:nth-child(3) { transform: translateX(58%) rotate(10deg); }
.dgwg-own-face strong { font: 700 1.3em/1.12 Fraunces, Georgia, serif; color: var(--pine); }
.dgwg-own-face span { font-size: .9rem; line-height: 1.35; color: #3B4A42; }
/* the own verse chosen exactly: the book, then chapter and verses side by side, and the text itself to check it by */
.dgwg-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; max-width: 560px; }
.dgwg-pick > * { grid-column: 1 / -1; justify-self: start; }
.dgwg-pick > .dgwg-field { justify-self: stretch; }
.dgwg-pick > .dgwg-field:not(:first-child) { grid-column: auto; }
.dgwg-pick select.dgwg-in { height: auto; cursor: pointer; }
.dgwg-pick select.dgwg-in:disabled { opacity: .5; cursor: default; }
.dgwg-pick-text { justify-self: stretch; margin: 2px 0 22px; padding: 18px 20px; border: 0; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0;
  background: var(--paper); }
.dgwg-pick-text p { font: 500 1.15rem/1.5 Fraunces, Georgia, serif; color: var(--pine); margin: 0 0 8px; }
.dgwg-pick-text cite { font-style: normal; font-weight: 600; font-size: .9rem; color: #A9813A; }
@media (max-width: 520px) {
  .dgwg-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dgwg-pick > .dgwg-field[data-field="v-to"] { grid-column: 1 / -1; }
}
.dgwg-rack-h { grid-column: 1 / -1; font-size: 1.05rem !important; margin: 22px 0 -8px !important; padding-top: 14px; border-top: 1px solid var(--line); }
.dgwg-rack-h:first-child { margin-top: 0 !important; padding-top: 0; border-top: 0; }
#dgwg-picture { max-width: 1000px; }

/* the order form with what arrives beside it */
#dgwg-write { max-width: 1000px; }
.dgwg-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: start; }
.dgwg-preview { max-width: 390px; }
.dgwg-prev-out { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; align-items: center; margin: 0 0 26px; }
.dgwg-prev-out .dgwg-front { font-size: .78rem; }
/* the open card beside the form: smaller, with the place where the study comes */
.dgwg-open-prev .dgwg-left { padding: 18px 20px; font-size: 1.3rem; gap: 8px; }
.dgwg-open-prev .dgwg-right { padding: 18px 20px 20px; font-size: .94rem; }
.dgwg-open-prev .dgwg-right h1, .dgwg-open-prev .dgwg-right .dgwg-h1 { font-size: 1.4rem; }
.dgwg-open-prev .dgwg-verse { margin-bottom: 14px; }
.dgwg-ghost { opacity: .45; }
.dgwg-study-here { font: 500 .86rem/1.5 Inter, system-ui, sans-serif; color: var(--soft); background: #F4ECD9; border: 1.5px dashed #CDBF9E;
  border-radius: 8px; padding: 12px 14px; margin: 0 0 14px !important; }
.dgwg-lines { display: grid; gap: 9px; }
.dgwg-lines i { display: block; height: 8px; border-radius: 4px; background: #E9DFC8; }
.dgwg-lines i:last-child { width: 62%; }

/* the envelope */
.dgwg-env { position: relative; width: 100%; aspect-ratio: 7 / 5; background: #EADFC8; border-radius: 6px; overflow: hidden; container-type: inline-size;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.dgwg-env::before { content: ""; position: absolute; inset: 0; opacity: .55; background:
  linear-gradient(to bottom right, transparent 49.6%, #D9CBAE 50%, transparent 50.4%),
  linear-gradient(to bottom left, transparent 49.6%, #D9CBAE 50%, transparent 50.4%); }
.dgwg-env-name { position: absolute; inset-inline-start: 12%; top: 46%; font: 700 2.3rem/1 Caveat, 'Segoe Script', cursive; color: #2A2F2B;
    transform: rotate(-3deg); }
/* on a small envelope the name, the stamp and the postmark shrink with it */
.dgwg-env-name { font-size: clamp(1rem, 10.5cqw, 2.3rem); }
.dgwg-stamp { font-size: clamp(.36rem, 3.1cqw, .62rem) !important; border-width: clamp(1px, .9cqw, 3px) !important; }
.dgwg-mark { font-size: clamp(.24rem, 2.1cqw, .44rem) !important; }
.dgwg-env-name small { display: block; font-size: .5em; font-weight: 500; color: #6A6F68; margin-top: 4px; }
.dgwg-stamp { position: absolute; right: 7%; top: 9%; width: 16%; aspect-ratio: 4 / 5; background: var(--wine); border: 3px dotted #EADFC8;
  outline: 2px solid var(--wine); display: grid; place-items: center; color: #EBD3A0; font: 700 .62rem Inter, sans-serif; letter-spacing: .08em;
      text-align: center; }
.dgwg-mark { position: absolute; right: 19%; top: 13%; width: 21%; aspect-ratio: 1; border: 1.5px solid #6A6F68; border-radius: 50%; opacity: .55;
  display: grid; place-items: center; font: 600 .44rem/1.3 Inter, sans-serif; letter-spacing: .08em; color: #6A6F68; transform: rotate(-14deg);
  text-align: center; padding: 6%; box-sizing: border-box; }

/* a gift: its three stages; the room around them and the way they move are in gift.css */
.dgwg-stage { display: none; flex-direction: column; align-items: center; gap: 22px; }
#dgwg-gift[data-stage="env"] .dgwg-stage-env, #dgwg-gift[data-stage="front"] .dgwg-stage-front,
#dgwg-gift[data-stage="open"] .dgwg-stage-open { display: flex; }
.dgwg-card-btn { border: 0; padding: 0; background: none; cursor: pointer; width: min(86vw, 380px); font-size: 1.35rem; }
.dgwg-open { background: var(--paper); color: #2A2F2B; border-radius: 8px; box-shadow: 0 16px 34px rgba(0, 0, 0, .24); overflow: hidden; width: 100%; }
.dgwg-left { padding: 28px 26px; border-bottom: 1px solid #E4DBC6; font: 500 1.6rem/1.25 Caveat, 'Segoe Script', cursive; display: flex;
    flex-direction: column; gap: 12px; }
.dgwg-cover { display: none; }
.dgwg-dear { font-weight: 700; font-size: 1.15em; }
.dgwg-sign { align-self: flex-end; }
.dgwg-right { padding: 28px 26px 26px; font-family: Literata, Georgia, serif; font-size: 1.06rem; line-height: 1.65; }
.dgwg-right h1, .dgwg-right .dgwg-h1 { font-weight: 500; font-size: 1.9rem; color: var(--pine); margin: 4px 0 2px; }
.dgwg-right p { margin: 0 0 14px; }
.dgwg-kop { font: 600 .66rem Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6A6F68; margin: 0 !important; }
.dgwg-ref { font: 600 .82rem Inter, sans-serif; color: #C2913B; }
.dgwg-verse { margin: 0 0 18px; padding: 2px 0 2px 16px; border-inline-start: 3px solid var(--gold); font-style: italic; }
.dgwg-more { font: 400 .86rem/1.6 Inter, sans-serif; border-top: 1px solid #E4DBC6; padding-top: 12px; color: #6A6F68; }
.dgwg-credit { font: 400 .74rem Inter, sans-serif; color: #8A8F88; margin: 0 !important; }
.dgwg-remove { font-size: .8rem; margin: 0; }
.dgwg-remove .dgwg-link { color: var(--soft); }

/* the giver's own page */
/* the giver's own page: the card, and beside it what is happening to it or what can be done with it */
.dgwg-order-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; background: var(--paper);
  border: 1px solid var(--line); border-radius: 14px; padding: 26px; margin: 0 0 16px; }
.dgwg-order-row > .dgwg-front { font-size: .7rem; transform: rotate(-2deg); }
.dgwg-order-body h2 { font: 700 1.55rem/1.2 Fraunces, Georgia, serif; color: var(--pine); margin: 2px 0 16px; }
.dgwg-order-inv { margin: 4px 0 0; }
/* while the card is made: a light that moves over it, three steps with the one that is going on turning, and a bar that fills */
.is-making > .dgwg-front { animation: dgwg-breathe 2.6s ease-in-out infinite; }
.is-making > .dgwg-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%,
  rgba(255, 255, 255, .38) 50%, transparent 70%) 0 0 / 250% 100%; animation: dgwg-sweep 2.2s linear infinite; }
.dgwg-make { list-style: none; display: grid; gap: 11px; padding: 0; margin: 0 0 18px; }
.dgwg-make li { position: relative; padding-inline-start: 34px; color: var(--soft); }
.dgwg-make li::before { content: ""; position: absolute; inset-inline-start: 0; top: .12em; width: 20px; height: 20px; box-sizing: border-box;
  border: 2px solid #CFC8BA; border-radius: 50%; }
.dgwg-make .is-done { color: #22302A; }
.dgwg-make .is-done::before { border-color: var(--pine); background: var(--pine); }
.dgwg-make .is-done::after { content: ""; position: absolute; inset-inline-start: 6px; top: .5em; width: 7px; height: 3px; transform: rotate(-45deg);
  border-left: 2px solid #FBF6EA; border-bottom: 2px solid #FBF6EA; }
.dgwg-make .is-now { color: #22302A; font-weight: 700; }
.dgwg-make .is-now::before { border-color: var(--gold) var(--gold) var(--gold) transparent; animation: dgwg-spin .9s linear infinite; }
.dgwg-make-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #E6DECB; margin: 0 0 14px; }
.dgwg-make-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); transform-origin: left center;
  animation: dgwg-fill 70s cubic-bezier(.1, .7, .2, 1) forwards; }
.dgwg-confetti { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
@keyframes dgwg-sweep { from { background-position: 120% 0; } to { background-position: -130% 0; } }
@keyframes dgwg-breathe { 50% { transform: rotate(-2deg) scale(1.03); } }
@keyframes dgwg-spin { to { transform: rotate(360deg); } }
@keyframes dgwg-fill { from { transform: scaleX(.04); } to { transform: scaleX(.95); } }
@media (prefers-reduced-motion: reduce) {
  .is-making > .dgwg-front, .is-making > .dgwg-front::after, .dgwg-make .is-now::before { animation: none; }
}
.dgwg-order-mail { font-size: .95rem; font-weight: 600; color: var(--pine); margin: 8px 0 0; }
.dgwg-order-msg { background: #FFFDF8; border: 1px dashed #CFC8BA; border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; font-size: .95rem;
  overflow-wrap: anywhere; white-space: pre-line; }
.dgwg-order-acts { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 10px; }

@media (max-width: 760px) {
  /* the header of the house stands 16 over the page on a phone: 40 leaves 24 of air under it, a little more than the room at the sides */
  .dgwg { padding-top: 40px; }
  .dgwg-how { grid-template-columns: 1fr; }
  .dgwg-order-row { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .dgwg-order-row > .dgwg-front { width: 150px; justify-self: center; }
  .dgwg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .dgwg-how li { padding: 18px 18px 20px 66px; }
  .dgwg-how li::before { top: 16px; inset-inline-start: 16px; }
  .dgwg-get { padding: 18px; }
  .dgwg-get .dgwg-ticks { grid-template-columns: 1fr; }
  .dgwg-two { grid-template-columns: 1fr; }
  .dgwg-way span { padding: 56px 12px 12px; }
  /* on a phone what arrives stands between the fields and the button to pay */
  .dgwg-two > form { display: contents; }
  .dgwg-preview { order: 1; max-width: none; }
  .dgwg-two [data-field="terms"], .dgwg-pay-row, #dgwg-form-msg { order: 2; }
  .dgwg-two .dgwg-field { margin-bottom: 0; }
  .dgwg-two { gap: 18px; }
  /* the button to pay in the middle of the whole width, the line under it */
  .dgwg-pay-row { justify-self: stretch; }
  .dgwg-pay-half { padding-inline-start: 0; }
  .dgwg-rack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .dgwg-item .dgwg-btn { padding: 11px 14px; font-size: .92rem; }
}
