/* Gift studio. The shared studio pieces (steps, panels, choices, palettes, type samples) come from website.css. */

/* The way in, from Today and Guests: a small parcel with its airmail edge and stamp */
.gift-entry{display:flex;align-items:center;gap:14px;width:100%;padding:16px;margin:0 0 20px;text-align:left;border:1px solid var(--glass-edge);border-radius:24px;background:#ffffff80;box-shadow:var(--shadow)}
.gift-entry-copy{min-width:0;flex:1}
.gift-entry strong{display:block;font-size:1rem;font-weight:600;line-height:1.35}
.gift-entry small{display:block;margin-top:4px;color:var(--muted);font-size:.875rem;line-height:1.5}
.gift-entry-art{position:relative;flex:none;width:52px;height:60px}
.gift-entry-art i{position:absolute;left:3px;right:3px;top:13px;bottom:9px;border-radius:5px;background:#fbfaf5;border:1px solid #c9d3c8;box-shadow:0 5px 12px #2c40341f;transform:rotate(-6deg);overflow:hidden}
.gift-entry-art i::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:repeating-linear-gradient(-45deg,#42594c 0 4px,#fbfaf5 4px 8px,#2b3b32 8px 12px,#fbfaf5 12px 16px)}
.gift-entry-art i::after{content:"";position:absolute;right:5px;top:11px;width:10px;height:12px;border-radius:1px;background:#d8e5dc;box-shadow:0 0 0 1px #9fb3a5}

/* Waiting, and the first visit */
.gift-wait{padding:60px 0;text-align:center;color:var(--muted)}
.gift-welcome-copy h2{font:400 1.9rem/1.12 Georgia,serif;letter-spacing:-.03em;margin-bottom:12px}
.gift-welcome-copy>p{color:var(--muted);line-height:1.6}
.gift-welcome-copy>p:first-child{font-size:1.06rem;color:var(--ink)}
.gift-points{margin:18px 0 0;padding:0;list-style:none;display:grid;gap:10px;font-size:.9rem;line-height:1.5;color:var(--muted)}
.gift-points li{position:relative;padding-left:18px}
.gift-points li::before{content:"";position:absolute;left:2px;top:.62em;width:6px;height:6px;border-radius:50%;background:#7d9484}
.gift-sample{margin:26px 4px 26px;transform:rotate(-1.5deg)}
.gift-welcome>.info{text-align:center}

/* A package that has not been opened: a parcel, with its airmail edge and the day it was posted */
.gift-parcel{border-radius:18px;overflow:hidden;background:#fbfaf5;border:1px solid #fff;box-shadow:0 8px 22px #2c40341a}
.gift-parcel-edge{display:block;height:9px;background:repeating-linear-gradient(-45deg,#42594c 0 10px,#fbfaf5 10px 20px,#2b3b32 20px 30px,#fbfaf5 30px 40px)}
.gift-parcel-body{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 14px;align-items:center;padding:16px 18px 18px}
.gift-parcel-from{min-width:0}
.gift-parcel-from span{display:block;font-size:.75rem;color:var(--muted);line-height:1.4}
.gift-parcel-from strong{display:block;font:400 1.5rem/1.15 Georgia,serif;letter-spacing:-.02em;overflow-wrap:anywhere}
.gift-parcel-mark{display:grid;place-items:center;align-content:center;width:56px;height:56px;border:1.5px solid #6d8275;border-radius:50%;color:#42594c;transform:rotate(-10deg);line-height:1;outline:1px solid #6d827566;outline-offset:-6px}
.gift-parcel-mark b{font-size:1.05rem;font-weight:600}
.gift-parcel-mark i{font-style:normal;font-size:.6rem;letter-spacing:.08em;text-transform:uppercase;margin-top:2px}
.gift-parcel-inside{min-width:0;font-size:.875rem;line-height:1.45;color:var(--muted)}
.gift-parcel-open{display:inline-grid;place-items:center;min-height:44px;padding:9px 22px;border-radius:22px;background:#2b3b32;color:#fafaf4;font-size:.9rem;font-weight:500}

/* Words for screen readers only (the website's pages have no such rule of their own) */
.gift-studio .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* What has been given, against the goal */
.gift-meter{margin:0 0 18px;padding:22px 22px 20px;border-radius:26px;background:linear-gradient(145deg,#343b35 0%,#292f2b 65%,#242b26 100%);color:#f7f6ed}
.gift-meter-title{font-size:.84rem;line-height:1.4;color:#dce6d1;overflow-wrap:anywhere}
.gift-meter-sum{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px;margin:8px 0 14px}
.gift-meter-sum strong{font:400 2.6rem/1 Georgia,serif;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.gift-meter-sum span{font-size:.95rem;color:#dfe6da}
.gift-meter-bar{height:6px;border-radius:6px;background:#ecf4de2e;overflow:hidden;margin-bottom:12px}
.gift-meter-bar span{display:block;height:100%;min-width:6px;border-radius:6px;background:#d9e8ba}
.gift-meter-foot{font-size:.8rem;line-height:1.5;color:#dfe6da}
.gift-meter-reached{margin:-2px 0 6px;font-size:.92rem;font-weight:500;line-height:1.45;color:#e8f1d6}

/* The list of packages */
.gift-filters{margin-top:0;margin-bottom:16px}
.gift-count{display:inline-grid;place-items:center;min-width:20px;height:20px;margin-left:7px;padding:0 6px;border-radius:10px;background:#b4532f;color:#fff;font-size:.7rem;font-style:normal;font-weight:600;line-height:1}
.studio-steps .active .gift-count{background:#fafaf4;color:#2b3b32}
.gift-studio .studio-steps button{flex:1 0 auto;display:inline-flex;align-items:center;justify-content:center}
.gift-list{display:grid;gap:10px}
.gift-row{display:flex;justify-content:space-between;gap:12px;width:100%;padding:15px 16px;border:1px solid #fff;border-radius:18px;background:#ffffffa8;text-align:left}
.gift-row-main{display:grid;gap:4px;min-width:0}
.gift-row-main>strong{font-size:1rem;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.gift-money-line{font-size:.9rem;line-height:1.4;color:var(--muted)}
.gift-money-line strong{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.gift-row-note{font-size:.875rem;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.gift-row-bits{font-size:.76rem;color:var(--muted)}
.gift-row-side{display:grid;justify-items:end;align-content:start;gap:6px;flex:none}
.gift-row-side small{font-size:.75rem;color:var(--muted);white-space:nowrap}
.gift-chip{display:inline-block;padding:4px 9px;border-radius:12px;font-size:.7rem;font-weight:500;line-height:1.3;white-space:nowrap;vertical-align:middle}
.gift-chip.recorded{background:#fff0d2;color:#6b4d0b}
.gift-chip.confirmed{background:#e3ebdb;color:#2f4a2f}
.gift-chip.missing{background:#f3e3de;color:#8a3a28}
/* Removing unopened packages together: a quiet way in under the filters, and the choices in its sheet */
.gift-tools{display:flex;justify-content:flex-end;margin:-10px 0 6px}
.gift-ranges{display:grid;gap:10px;margin:22px 0 0}
.gift-range{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:58px;padding:14px 16px;border:1px solid #fff;border-radius:18px;background:#ffffffb8;color:var(--ink);text-align:left}
.gift-range strong{min-width:0;font-size:1rem;font-weight:600;line-height:1.35}
.gift-range-count{flex:none;font-size:.875rem;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
/* Why the choices count fewer packages than the unopened count: under them, with no word left alone on its line. */
.gift-ranges-note{text-wrap:pretty}
.gift-progress{margin:14px 0 0;font-size:.875rem;line-height:1.5;color:var(--muted)}
.gift-progress:empty{display:none}
/* The button that removes them can be pressed a moment after it appears; it looks the same meanwhile */
#sheet [data-gift-wait]:disabled{opacity:1;cursor:default}
.gift-actions{display:grid;gap:10px;margin-top:18px}
.gift-actions.two{grid-template-columns:1fr 1fr}
.gift-actions.two>.full{grid-column:1/-1}
.gift-studio .studio-empty+.primary{margin-top:0}

/* One package, opened */
/* A package shown again because it changed since the couple looked says so first, above the package itself. */
.gift-open>.sheet-notice:first-child{margin:0 0 16px;text-wrap:pretty}
.gift-open-date{font-size:.8rem;color:var(--muted);margin-bottom:14px}
.gift-letter{margin:0 0 18px;padding:20px 20px 22px;border-radius:3px 16px 16px 3px;background:#fbfaf5;border-left:3px solid #7d9484;font:400 1.08rem/1.6 Georgia,serif;color:#24312c;white-space:pre-line;overflow-wrap:anywhere}
.gift-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 18px}
.gift-photo{aspect-ratio:1;padding:0;border-radius:10px;overflow:hidden;background:#dfe6dc}
.gift-photo img{width:100%;height:100%;object-fit:cover}
.gift-photo img:not([src]){visibility:hidden}
.gift-sealed-note{margin-top:4px!important}
.gift-sealed-note+.secondary{margin-top:12px}
.gift-given{margin:0 0 16px;padding:18px 16px 12px;border-radius:16px;background:#ffffffa8;border:1px solid #fff}
.gift-given .gift-money-line{font-size:1rem}
.gift-given .gift-money-line strong{font:400 1.7rem/1 Georgia,serif;margin-right:2px}
.gift-given .gift-chip{margin-left:6px}
.gift-given .sub{font-size:.875rem;margin-top:10px}
.gift-given .gift-actions{margin-top:14px}
.gift-given .text-btn{display:block;margin:6px auto 0}
.gift-thanked{background:#e3ebdb!important;border-color:#e3ebdb!important}
.gift-remove{display:block;margin:10px auto 0;color:#94422f!important}
.gift-viewer img{width:100%;max-height:60vh;object-fit:contain;border-radius:12px;background:#1f2622}
.gift-viewer .gift-open-date{text-align:center;margin:10px 0 0}
.gift-viewer .text-btn{display:block;margin:8px auto 0}

/* Gifts of money, one to a line */
.gift-ledger-note{margin-top:-8px!important}
.gift-ledger{display:grid;margin:10px 0 20px}
.gift-ledger-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.gift-ledger-row:first-child{border-top:0}
.gift-ledger-main{display:grid;gap:3px;min-width:0;padding:0;text-align:left}
.gift-ledger-main>strong{font-size:.95rem;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.gift-got{flex:none;min-height:40px;padding:8px 16px;border-radius:20px;background:#2b3b32;color:#fafaf4;font-size:.84rem;font-weight:500}

/* Setting the page up */
.gift-preview{height:min(52dvh,440px);border:6px solid #304038;border-radius:26px;overflow:hidden;background:#fff;margin:0 0 12px;box-shadow:0 12px 30px #2840341f}
.gift-preview .scaled-frame,.gift-full .scaled-frame{height:100%}
.gift-full{height:68vh;width:min(100%,390px);border:5px solid #34473a;border-radius:20px;overflow:hidden;margin:4px auto 0;background:#fff}
.field-note{font-size:.8rem;line-height:1.45;color:#7a4f0e;margin:-10px 0 14px}
.field-note:empty{display:none}
.gift-ways-note{margin-top:-8px!important}
.gift-after{margin:9px 0 0}
.gift-studio .studio-panel>.primary+.secondary,.gift-studio .studio-panel>.secondary+.secondary,.gift-studio .studio-panel .gift-code-note+.primary+.secondary{margin-top:10px}
.gift-studio .studio-panel>.palette-options+.secondary{margin-top:16px}
.gift-studio .studio-panel>.gift-ledger+.secondary,.gift-studio .studio-panel>.sub+.secondary,.gift-studio .studio-panel>.info+.secondary{margin-top:18px}
.gift-studio .studio-row-head{align-items:center}
/* A form's problem, when there is one, keeps its distance from the button under it */
[data-gift-form] .field-error:not(:empty),[data-gift-auth] .field-error:not(:empty){margin-bottom:14px}

/* Sharing */
.gift-door{margin:0 0 20px;padding:24px 22px;border-radius:26px;background:#ffffffa8;border:1px solid #fff}
.gift-door.open{background:#283c31;border-color:#283c31;color:#f7f7ec}
.gift-door h2{font:400 1.6rem/1.15 Georgia,serif;letter-spacing:-.02em;margin-bottom:8px}
.gift-door p{font-size:.92rem;line-height:1.55;color:var(--muted)}
.gift-door.open p{color:#dfe6da}
.gift-door .primary{margin-top:18px}
.gift-need{margin:0 0 20px;padding:16px;border-radius:16px;background:#e9efe6}
.gift-need p{font-size:.875rem;line-height:1.55;margin-bottom:12px}
.gift-link{font-size:1.02rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
/* The address on one line (the studio sets it a little smaller where it would not fit: fitAddress). */
.gift-link a{white-space:nowrap}
.gift-code{width:min(100%,210px);margin:0 auto 12px;padding:10px;border-radius:14px;background:#fff;box-shadow:0 6px 18px #2c40341a}
.gift-code svg{display:block;width:100%;height:auto}
.gift-code-note{text-align:center;font-size:.875rem!important;margin-bottom:16px}
.gift-close{text-align:center;margin-top:4px}
@media(max-width:360px){.gift-parcel-body{padding:14px 15px 16px}.gift-meter{padding:20px 18px 18px}.gift-meter-sum strong{font-size:2.3rem}}
