/* Delfit gift atelier. All presentation and motion are scoped to this page. */
.gift-experience{--gift-paper:#f5f2e9;--gift-ink:#242720;--gift-soft:#616459;--gift-lime:#d9ec9a;--gift-line:#dcded3;--gift-open:1;color:var(--gift-ink);background:#fff;direction:rtl}
.gift-experience *{box-sizing:border-box}
.gift-experience h1,.gift-experience h2,.gift-experience h3,.gift-experience p{margin:0}
.gift-shell{width:min(1240px,100%);margin-inline:auto;padding-inline:clamp(20px,5vw,72px)}
.gift-opening{position:relative;background:var(--gift-paper)}
.gift-opening__stage{position:relative;min-height:620px;overflow:hidden;isolation:isolate}
.gift-opening__ground{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1;transform:scale(1.04) translateY(calc(var(--gift-open)*-1.5%))}
.gift-opening__inner{width:min(1440px,100%);margin-inline:auto;display:grid;grid-template-columns:.85fr 1.15fr;align-items:center;min-height:inherit;padding:64px clamp(24px,5vw,80px);gap:24px}
.gift-opening__copy{position:relative;z-index:4}
.gift-kicker{font-size:13px;font-weight:600;line-height:1.8;color:var(--gift-soft)}
.gift-opening h1{font-size:clamp(42px,5.5vw,78px);font-weight:800;line-height:1.35;margin-block:18px 20px;letter-spacing:0}
.gift-opening h1 span{font-weight:500}
.gift-opening__lead{max-width:28ch;font-size:17px;line-height:1.9;color:#52564a}
.gift-button{display:inline-flex;justify-content:center;align-items:center;gap:30px;min-height:52px;padding:14px 25px;background:var(--gift-ink);color:#fff;border:1px solid var(--gift-ink);border-radius:4px;font-size:15px;font-weight:700;line-height:1.4;text-decoration:none;cursor:pointer;transition:background 160ms ease-out,transform 160ms ease-out}
.gift-opening .gift-button{margin-top:28px}
.gift-button--outline{background:transparent;color:var(--gift-ink)}
.gift-experience :is(a,button,input,textarea,summary):focus-visible{outline:3px solid #58672b;outline-offset:4px}
.gift-button:active,.gift-experience .amount-chip:active{transform:translateY(1px)}
.gift-experience button:disabled{opacity:.5;cursor:not-allowed}
.gift-selection__form[aria-busy="true"] button:disabled{cursor:wait}
.gift-envelope{position:relative;width:100%;aspect-ratio:1.5;isolation:isolate;pointer-events:none;filter:drop-shadow(0 16px 18px rgb(65 56 34 / 9%))}
.gift-envelope__back,.gift-envelope__flap,.gift-envelope__front{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.gift-envelope__back{z-index:1;clip-path:inset(47% 0 0);transform:translateY(calc(var(--gift-open)*2%))}
/* Register both generated paper planes to the same hinge (47%) and base (92.3%).
   The front source spans 40%–89.6%; a bottom-only offset leaves raised corners. */
.gift-envelope__flap{z-index:var(--gift-flap-z,1);clip-path:inset(0 0 53%);transform-origin:50% 47%;transform:translateY(calc(var(--gift-open)*2%)) rotateX(calc((1 - var(--gift-open))*180deg)) scaleY(calc(.84 + var(--gift-open)*.16))}
.gift-envelope__front{z-index:3;transform-origin:50% 0;transform:translateY(calc(10.47% + var(--gift-open)*2%)) scaleY(.9133)}
.gift-envelope__card{position:absolute;z-index:2;inset:0;clip-path:inset(0 0 8%);opacity:var(--gift-card-visible,1)}
.gift-envelope__card>.gift-object{position:absolute;width:62%;inset-inline-start:19%;top:47%;transform:translateY(calc(var(--gift-open)*-65%)) rotate(calc(-2deg + var(--gift-open)*2deg));transform-origin:50% 90%}
.gift-envelope__seal{position:absolute;top:85%;inset-inline:15%;text-align:center;z-index:5;color:#5a5b4e;font-size:clamp(9px,1vw,12px);transform:translateY(calc(var(--gift-open)*2%))}
.gift-object{position:relative;display:flex;flex-direction:column;min-width:0;width:100%;aspect-ratio:1.55;padding:clamp(22px,3vw,38px);border-radius:9px;background:var(--gift-ink);color:#fff;box-shadow:0 18px 36px -16px rgb(37 42 26 / 35%);overflow:hidden;text-align:right}
.gift-object::after{content:"";position:absolute;inset-inline-end:-18%;inset-block-end:-42%;width:68%;aspect-ratio:1;border:1px solid rgb(217 236 154 / 22%);border-radius:50%;box-shadow:0 0 0 28px rgb(217 236 154 / 4%),0 0 0 56px rgb(217 236 154 / 3%);pointer-events:none}
.gift-object__top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:20px;font-weight:700;position:relative;z-index:1}
.gift-object__mark{color:var(--gift-lime);font-size:32px;line-height:1}
.gift-object__label{font-size:11px;color:#d1d6c6;margin-top:20px!important}
.gift-object__amount{font-size:clamp(24px,2.5vw,36px);font-weight:700;position:relative;z-index:1}
.gift-object__amount .ivy-price{display:inline-flex;align-items:center;gap:8px}
.gift-object .toman-sym{font-size:.55em}
.gift-object__personal{margin-top:18px;position:relative;z-index:1;overflow-wrap:anywhere;min-width:0}
.gift-object__personal>span{font-size:13px;color:var(--gift-lime);display:block;white-space:pre-wrap}
.gift-object__personal p{margin-top:6px;font-size:12px;line-height:1.8;white-space:pre-wrap}
.gift-object__footer{font-size:10px;color:#c8cdbf;margin-top:auto;padding-top:24px;position:relative;z-index:1}
.gift-envelope .gift-object{padding:6% 8%;aspect-ratio:1.55}
.gift-envelope .gift-object__top{font-size:clamp(12px,1.6vw,22px)}
.gift-envelope .gift-object__mark{font-size:clamp(18px,2.4vw,30px)}
.gift-envelope .gift-object__label{margin-top:12px!important;font-size:clamp(8px,.9vw,12px)}
.gift-envelope .gift-object__amount{font-size:clamp(18px,2.2vw,31px)}
.gift-envelope .gift-object__personal{display:none}
.gift-envelope .gift-object__footer{font-size:9px;padding-top:10px}
.gift-selection{display:grid;grid-template-columns:1fr 1fr;gap:clamp(40px,7vw,100px);padding-block:100px;scroll-margin-top:calc(var(--gift-header-offset,90px) + 24px)}
.gift-selection__visual{padding-top:8px;min-width:0}
.gift-preview-stage{background:var(--gift-paper);margin-block:22px 16px;padding:clamp(24px,4vw,50px);min-height:390px;display:flex;align-items:center;perspective:1000px;border-radius:4px}
.gift-preview-tilt{width:100%;will-change:transform}
.gift-preview-stage .gift-object{aspect-ratio:auto;min-height:300px}
.gift-preview-stage .gift-object>*{flex-shrink:0}
.gift-caption{font-size:12px;line-height:1.9;color:var(--gift-soft);max-width:48ch}
.gift-selection__form{min-width:0}
.gift-experience h2{font-size:clamp(27px,2.9vw,38px);font-weight:700;line-height:1.5}
.gift-selection__intro{font-size:14px;color:var(--gift-soft);line-height:1.9;margin-block:10px 32px!important}
.gift-field-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:13px;font-weight:600;margin-bottom:14px}
.gift-price{font-size:17px}
.gift-experience .amount-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.gift-experience .amount-chip{border:1px solid var(--gift-line);border-radius:4px;background:#fff;padding:14px 5px;min-height:52px;color:var(--gift-ink);font-size:14px;cursor:pointer;transition:background 160ms ease-out,border-color 160ms ease-out,transform 160ms ease-out}
.gift-experience .amount-chip.is-active{background:var(--gift-lime);border-color:#7b8b4e;color:var(--gift-ink)}
.gift-experience .amount-chip .ivy-price{display:inline-flex;gap:5px;align-items:center}
.gift-experience .amount-chip .toman-sym{font-size:.8em}
.gift-personalize{display:grid;gap:20px;margin-top:30px}
.gift-field{display:grid;gap:9px}
.gift-field label{font-size:13px;font-weight:600}
.gift-field label span{color:var(--gift-soft);font-weight:400;font-size:12px}
.gift-field :is(input,textarea){width:100%;min-width:0;border:1px solid var(--gift-line);border-radius:4px;background:#fff;color:var(--gift-ink);padding:13px 14px;font-size:14px;line-height:1.8;resize:vertical}
.gift-field input{min-height:50px}
.gift-field textarea{min-height:100px;max-height:300px}
.gift-field :is(input,textarea)::placeholder{color:#74796b;opacity:1}
.gift-field small{font-size:11px;color:var(--gift-soft)}
.gift-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:25px}
.gift-actions .gift-button{padding-inline:12px}
.gift-delivery{font-size:12px;line-height:1.9;color:var(--gift-soft);margin-top:16px!important}
.gift-error,.gift-unavailable{color:#9f281e;font-size:13px;line-height:1.9;margin-top:14px!important}
.gift-error[hidden]{display:none}
.gift-status{font-size:12px;line-height:1.8;color:var(--gift-soft)}
.gift-status:empty{display:none}
.gift-process{background:var(--gift-paper);padding-block:75px}
.gift-process__inner{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px}
.gift-process header h2{font-size:clamp(36px,4vw,54px);line-height:1.5}
.gift-process header p,.gift-questions header p{color:var(--gift-soft);font-size:14px;margin-top:16px;line-height:1.9}
.gift-process__steps{list-style:none;margin:0;padding:0}
.gift-process__steps li{display:grid;grid-template-columns:32px 1fr;gap:18px;padding-block:24px;border-top:1px solid #d3d6c8}
.gift-process__steps li:first-child{padding-top:0;border-top:0}
.gift-process__steps li>span{font-size:17px;color:#656e50}
.gift-process__steps h3{font-size:17px;font-weight:600}
.gift-process__steps p{font-size:14px;line-height:1.9;color:var(--gift-soft);margin-top:8px}
.gift-questions{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px;padding-block:85px}
.gift-questions details{border-bottom:1px solid var(--gift-line)}
.gift-questions details:first-child{border-top:1px solid var(--gift-line)}
.gift-questions summary{display:flex;justify-content:space-between;align-items:center;gap:20px;font-size:15px;font-weight:600;min-height:70px;padding-block:18px;cursor:pointer;list-style:none}
.gift-questions summary::-webkit-details-marker{display:none}
.gift-questions summary span{font-size:24px;font-weight:400;flex-shrink:0;transition:transform 160ms ease-out}
.gift-questions details[open] summary span{transform:rotate(45deg)}
.gift-questions details p{font-size:14px;line-height:2;color:var(--gift-soft);padding-bottom:24px}
.gift-questions details a{text-decoration:underline;text-underline-offset:4px}
.gift-close{display:flex;align-items:center;justify-content:space-between;gap:24px;border-top:1px solid var(--gift-line);padding-block:38px 65px}
.gift-close p{font-size:18px;font-weight:500}
.gift-close a{font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:6px;white-space:nowrap}
.gift-motion-ready .gift-opening{height:175svh;--gift-open:0}
.gift-motion-ready .gift-opening__stage{position:sticky;top:var(--gift-header-offset,80px);height:calc(100svh - var(--gift-opening-chrome,var(--gift-header-offset,80px)));min-height:0}
.gift-motion-ready .gift-opening__inner{height:100%;min-height:0}
.gift-envelope-fallback .gift-envelope__back,.gift-envelope-fallback .gift-envelope__flap,.gift-envelope-fallback .gift-envelope__front,.gift-envelope-fallback .gift-envelope__seal{display:none}
.gift-envelope-fallback .gift-envelope__card{opacity:1}
.gift-envelope-fallback .gift-envelope__card>.gift-object{top:20%;transform:none}
.gift-experience [data-sc-in]{transition:opacity 300ms ease-out}
.gift-experience .sc-in{animation:gift-arrive 300ms ease-out both}
@keyframes gift-arrive{from{opacity:.6}to{opacity:1}}
@media(hover:hover) and (pointer:fine){.gift-button:hover{background:#3e4433}.gift-button--outline:hover{background:var(--gift-paper);color:var(--gift-ink)}.gift-experience .amount-chip:hover{border-color:#7b8b4e}}
@media(min-width:768px) and (max-height:800px){
  .gift-opening__inner{padding-block:24px}
  .gift-opening h1{font-size:clamp(40px,4.4vw,60px);line-height:1.25;margin-block:12px 16px}
  .gift-opening__lead{font-size:15px;line-height:1.8}
  .gift-opening .gift-button{margin-top:20px;min-height:46px;padding-block:11px}
  .gift-envelope{width:min(100%,calc((100svh - var(--gift-opening-chrome,114px) - 48px)*1.5));justify-self:center;transform:translateY(-12%)}
}
@media(max-width:767px){
  .gift-opening__stage{min-height:570px}
  .gift-opening__inner{grid-template-columns:1fr;align-content:center;gap:8px;padding:26px 24px 24px}
  .gift-opening__copy{max-width:100%}
  .gift-opening h1{font-size:clamp(35px,8.5vw,52px);margin-block:10px 12px;line-height:1.3}
  .gift-opening__lead{font-size:14px;max-width:none}
  .gift-opening .gift-button{margin-top:16px;min-height:46px;padding:11px 20px}
  .gift-kicker{font-size:11px}
  .gift-envelope{width:min(450px,100%);margin-inline:auto}
  .gift-envelope .gift-object__top{font-size:14px}
  .gift-envelope .gift-object__amount{font-size:21px}
  .gift-envelope .gift-object__label{margin-top:5px!important;font-size:8px}
  .gift-envelope .gift-object__footer{font-size:7px;padding-top:5px}
  .gift-envelope .gift-object__mark{font-size:20px}
  .gift-envelope__seal{font-size:8px}
  .gift-selection{grid-template-columns:1fr;gap:35px;padding-block:55px}
  .gift-preview-stage{min-height:0;padding:30px;margin-top:16px}
  .gift-object{padding:24px;aspect-ratio:auto;min-height:245px}
  .gift-envelope .gift-object{min-height:0;aspect-ratio:1.55}
  .gift-object__amount{font-size:30px}
  .gift-object__personal p{font-size:12px}
  .gift-selection__intro{margin-bottom:24px!important}
  .gift-process{padding-block:50px}
  .gift-process__inner,.gift-questions{grid-template-columns:1fr;gap:30px}
  .gift-process header h2{font-size:36px}
  .gift-questions{padding-block:55px}
  .gift-questions summary{font-size:14px}
  .gift-close{align-items:flex-start;flex-direction:column;padding-block:30px 45px;gap:18px}
  .gift-close p{font-size:17px}
  .gift-motion-ready .gift-opening{height:150svh}
  .gift-motion-ready .gift-opening__stage{min-height:0}
}
@media(max-width:767px) and (max-height:700px){.gift-opening__inner{padding:18px 20px;gap:0}.gift-opening h1{font-size:32px}.gift-opening__lead{font-size:12px}.gift-opening .gift-button{margin-top:12px;min-height:44px}.gift-envelope{width:min(320px,82%)}.gift-opening .gift-kicker{font-size:10px}}
@media(prefers-reduced-motion:reduce){.gift-motion-ready .gift-opening{height:auto;--gift-open:1}.gift-motion-ready .gift-opening__stage{position:relative;top:auto;height:auto;min-height:570px}.gift-preview-tilt{transform:none!important;will-change:auto}.gift-experience .sc-in{animation:none}.gift-experience [data-sc-reveal]{clip-path:none!important}.gift-experience *, .gift-experience *::after{scroll-behavior:auto!important;transition:none!important}}
