/* pb-sidebar-gift 0.1.0 (Cam, 6 Dec 2026): the sidebar "Welcome gift" box in the look of the in-post
   free ebooks card (pb-app-promo assets/pb-app-promo-ebook_card.css + ebook_covers.css). Only applies once the JS
   has added .pbsg, so with JS off or the covers missing the box stays exactly as today. Copy is untouched. */
/* height: exactly today's 373 px (measured at 1280 and 1440), so the Raptive sidebar slot below never moves */
html body aside.pbsa-news.pbsg{background:linear-gradient(180deg,#f6eef3,#faf7f9);border:1px solid #e6dbe2;border-radius:22px;padding:20px 24px 20px;color:#2b2b2b;line-height:1.4;height:373px}
/* covers on the left of the eyebrow + heading (the ebook card's stacked phone layout), then copy, form, small print */
/* not once submitted: the element's own .pbsa-news--submitted rule must still hide the form view */
html body .pbsg:not(.pbsa-news--submitted) .pbsa-news__view--form{display:grid;grid-template-columns:92px 1fr;column-gap:16px}
.pbsg .pbsa-news__view--form>.pbsg-stage{grid-column:1;grid-row:1/3}
.pbsg .pbsa-news__view--form>.pbsa-news__eyebrow{grid-column:2;grid-row:1;align-self:end}
.pbsg .pbsa-news__view--form>.pbsa-news__title{grid-column:2;grid-row:2;align-self:start}
.pbsg .pbsa-news__view--form>.pbsa-news__copy,.pbsg .pbsa-news__view--form>form,.pbsg .pbsa-news__view--form>.pbsa-news__fineprint{grid-column:1/-1}
html body aside.pbsa-news.pbsg::before{display:none}
.pbsg .pbsg-stage{position:relative;height:128px;margin:0 0 12px}
.pbsg .pbsg-card{position:absolute;left:50%;top:50%;width:66px;margin-left:-33px;margin-top:-46px;border-radius:3px;overflow:hidden;
 box-shadow:0 10px 18px -8px rgba(74,47,61,.45),0 2px 6px rgba(74,47,61,.12)}
.pbsg .pbsg-card img{display:block;width:100%!important;height:auto!important;max-width:none!important;margin:0!important;border-radius:0!important}
/* resting positions: the ebook card's stage at its phone scale */
.pbsg .pbsg-front{z-index:2;transform:translate(-11px,2px) rotate(-6deg)}
.pbsg .pbsg-back{z-index:1;transform:translate(17px,-4px) rotate(7deg)}
/* one-time deal: hidden until the box is 35% in view, then both cards settle once and stay */
.pbsg-armed:not(.pbsg-in) .pbsg-card{opacity:0}
.pbsg-in .pbsg-front{animation:pbsg-enterFront 1s cubic-bezier(.2,.9,.25,1.12) both .18s}
.pbsg-in .pbsg-back{animation:pbsg-enterBack 1s cubic-bezier(.2,.9,.25,1.12) both}
@keyframes pbsg-enterFront{from{opacity:0;transform:translate(-11px,2px) rotate(-14deg) scale(.82)}to{opacity:1;transform:translate(-11px,2px) rotate(-6deg)}}
@keyframes pbsg-enterBack{from{opacity:0;transform:translate(17px,-4px) rotate(14deg) scale(.82)}to{opacity:1;transform:translate(17px,-4px) rotate(7deg)}}
@media (prefers-reduced-motion:reduce){.pbsg .pbsg-card{opacity:1!important;animation:none!important}}
/* type and controls: the ebook card's values */
html body .pbsg .pbsa-news__eyebrow{font-family:var(--pb-sans,"Manrope",system-ui,sans-serif);font-size:13px;font-weight:800;letter-spacing:.02em;text-transform:none;color:#775973;line-height:1.4;margin:0 0 6px}
html body .pbsg .pbsa-news__title{font-family:var(--pb-serif,"Fraunces",Georgia,serif);font-weight:600;font-size:21px;line-height:1.08;letter-spacing:-.5px;color:#4a2f3d;margin:4px 0 0}
html body .pbsg .pbsa-news__title em{font-style:normal;color:#775973}
html body .pbsg .pbsa-news__copy{font-size:14px;line-height:1.4;color:#5d5560;margin:0 0 14px}
html body .pbsg .pbsa-news__input{font-size:16px;height:50px;border-radius:999px;border:1px solid #e0d3dc;background:#fff;padding:0 18px;color:#2b2b2b;font-style:normal;box-shadow:none}
html body .pbsg .pbsa-news__input::placeholder{color:#8c8089;font-style:normal;opacity:1}
html body .pbsg .pbsa-news__btn{font-weight:800;font-size:16px;height:50px;border-radius:999px;border:0;background:#775973;color:#fff;box-shadow:0 10px 22px -12px rgba(43,33,39,.55)}
html body .pbsg .pbsa-news__btn:hover{background:#674b63}
html body .pbsg .pbsa-news__fineprint{font-size:12.5px;color:#6e6570;line-height:1.4;margin:10px 0 0;text-align:center}
html body .pbsg .pbsa-news__check{background:#775973}
html body .pbsg .pbsa-news__view--success .pbsa-news__title{margin-top:18px}
/* after a signup the box keeps its 373 px (so the sidebar ad still does not move) and the message sits in its middle */
html body aside.pbsa-news.pbsg.pbsa-news--submitted{display:flex;flex-direction:column;justify-content:center}
