:root{
  --ink:#253138;
  --paper:#fffaf1;
  --cream:#fff1cf;
  --orange:#ff8a55;
  --yellow:#ffd667;
  --teal:#5fc9bd;
  --pink:#f4a6bb;
  --purple:#8875d6;
  --line:#e9dfd0;
  --white:#fffdf9;
  --muted:#687277;
  --shadow:0 14px 30px #4f3d2220;
  --shadow-soft:0 8px 24px #4f3d2214;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"DM Sans",Arial,sans-serif;
}

.announcement{
  background:var(--ink);
  color:#fff;
  text-align:center;
  padding:9px 20px;
  font-size:.85rem;
}

.site-header{
  height:82px;
  display:flex;
  align-items:center;
  gap:28px;
  padding:0 clamp(20px,5vw,72px);
  background:#fffdf9;
  position:sticky;
  top:0;
  z-index:20;
  border-bottom:1px solid var(--line);
}

.brand{
  font-family:Fredoka,sans-serif;
  color:var(--ink);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
  line-height:.78;
  font-size:1.25rem;
  letter-spacing:-.4px;
}

.brand b{
  color:var(--orange);
}

.brand-mark{
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  background:var(--yellow);
  border-radius:50%;
  font-size:1.2rem;
  transform:rotate(-12deg);
}

.brand-logo{
  width:58px;
  height:58px;
  object-fit:contain;
  flex-shrink:0;
}

nav{
  display:flex;
  gap:21px;
  flex:1;
  justify-content:center;
}

nav a,
footer a{
  color:var(--ink);
  text-decoration:none;
  font-size:.92rem;
}

nav a{
  position:relative;
  transition:color .2s ease;
}

nav a:hover,
footer a:hover{
  color:var(--orange);
}

.header-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.icon-button,
.cart-button,
.menu-button,
.close{
  border:0;
  background:transparent;
  color:var(--ink);
  cursor:pointer;
}

.icon-button{
  font-size:1.7rem;
}

.cart-button{
  font:600 .9rem "DM Sans";
  background:var(--cream);
  border-radius:99px;
  padding:10px 14px;
}

.cart-button span{
  display:inline-grid;
  place-items:center;
  background:var(--ink);
  color:#fff;
  border-radius:50%;
  width:18px;
  height:18px;
  font-size:.72rem;
  margin-left:4px;
}

.menu-button{
  display:none;
  font-size:1.4rem;
}

main{
  min-height:calc(100vh - 82px);
}

.hero{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  min-height:570px;
  overflow:hidden;
  background:var(--cream);
}

.hero-copy{
  padding:clamp(52px,8vw,110px) clamp(20px,7vw,110px);
  align-self:center;
}

.eyebrow{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:1.7px;
  font-weight:700;
  color:#a06034;
}

.hero h1,
.page-hero h1,
h1,
h2,
h3{
  font-family:Fredoka,sans-serif;
}

.hero h1{
  font-size:clamp(3rem,6.2vw,5.8rem);
  line-height:.96;
  margin:13px 0 22px;
  letter-spacing:-2px;
}

.hero h1 i{
  color:var(--orange);
  font-style:normal;
}

.hero-copy p{
  font-size:1.08rem;
  line-height:1.6;
  max-width:480px;
  margin-bottom:29px;
}

.hero-art{
  position:relative;
  background:linear-gradient(
    130deg,
    #f6b8c8 0%,
    #f6b8c8 48%,
    #a5ded6 48%
  );
  overflow:hidden;
  min-height:400px;
}

.logo-hero{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.logo-hero img{
  display:block;
  width:72%;
  max-width:480px;
  height:auto;
  object-fit:contain;
}

.button{
  display:inline-block;
  border:0;
  border-radius:99px;
  padding:14px 21px;
  font:700 .91rem "DM Sans";
  text-decoration:none;
  cursor:pointer;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.button:hover{
  transform:translateY(-2px);
}

.button-dark{
  background:var(--ink);
  color:#fff;
}

.button-dark:hover{
  box-shadow:0 8px 20px #25313830;
}

.button-light{
  background:#fff;
  color:var(--ink);
}

.section{
  padding:clamp(52px,7vw,88px) clamp(20px,6vw,92px);
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:30px;
}

.section-head h2{
  font-size:clamp(2rem,3.3vw,3rem);
  margin:0;
  letter-spacing:-1px;
}

.text-link{
  color:var(--ink);
  font-weight:700;
  text-underline-offset:5px;
}

.category-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:17px;
}

.category{
  min-height:172px;
  border-radius:19px;
  padding:21px;
  color:var(--ink);
  text-decoration:none;
  position:relative;
  overflow:hidden;
  font-family:Fredoka;
  font-size:1.35rem;
  transition:transform .2s ease,box-shadow .2s ease;
}

.category:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-soft);
}

.category span{
  font-size:3.3rem;
  display:block;
  margin-top:17px;
}

.category:nth-child(1){background:#a7ddd5}
.category:nth-child(2){background:#f6bac8}
.category:nth-child(3){background:#c9bcf1}
.category:nth-child(4){background:#ffd86b}

.book-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  row-gap: 40px;
  gap:25px;
}

.book-card{
  min-width:0;
  transition:transform .2s ease;
}

.book-card:hover{
  transform:translateY(-3px);
}

.cover{
  height:250px;
  border-radius:9px 18px 18px 9px;
  padding:21px 17px;
  position:relative;
  box-shadow:6px 6px 0 #302d2630;
  overflow:hidden;
  color:#fff;
  cursor:pointer;
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.book-card:hover .cover{
  transform:translateY(-3px);
  box-shadow:8px 9px 0 #302d2630;
}

.cover:before{
  content:"";
  position:absolute;
  border:2px solid #ffffff88;
  border-radius:50%;
  width:120px;
  height:120px;
  right:-25px;
  bottom:-35px;
}

.cover .cover-icon{
  font-size:3.2rem;
  position:relative;
  z-index:1;
}

.cover .cover-title{
  position:absolute;
  bottom:20px;
  left:17px;
  right:13px;
  font:600 1.35rem/1.02 Fredoka;
  z-index:1;
}

.book-meta{
  padding-top:15px;
}

.book-meta h3{
  margin:0 0 4px;
  font-size:1.1rem;
}

.book-meta p,
.muted{
  color:#687277;
  font-size:.87rem;
  margin:0;
}

.book-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:13px;
}

.price{
  font-weight:700;
}

.rating{
  font-size:.82rem;
  color:#9b6f00;
}

.mini-add{
  border:1px solid var(--ink);
  background:transparent;
  border-radius:50%;
  width:33px;
  height:33px;
  cursor:pointer;
  font-size:1.2rem;
  transition:.2s ease;
}

.mini-add:hover{
  background:var(--ink);
  color:white;
  transform:scale(1.05);
}

/* =========================================================
   HOMEPAGE — OUR STORY INVITATION
========================================================= */

.sale-strip{
  position:relative;
  overflow:hidden;

  background:var(--teal);

  padding:32px clamp(24px,7vw,100px);

  display:flex;
  align-items:center;
  justify-content:center;
  gap:34px;

  text-align:left;

  border-radius:0;
}


/* Soft little decorative circles */

.sale-strip::before,
.sale-strip::after{
  content:"";
  position:absolute;
  border:2px solid rgba(255,255,255,.28);
  border-radius:50%;
  pointer-events:none;
}

.sale-strip::before{
  width:90px;
  height:90px;
  left:-35px;
  bottom:-45px;
}

.sale-strip::after{
  width:55px;
  height:55px;
  right:8%;
  top:-30px;
}


/* Main message */

.sale-strip strong{
  position:relative;
  z-index:1;

  max-width:560px;

  font-family:Fredoka;
  font-size:1.45rem;
  line-height:1.2;
  font-weight:600;
}


/* Story button */

.sale-strip .button{
  position:relative;
  z-index:1;

  flex-shrink:0;

  padding:13px 24px;

  white-space:nowrap;

  border-radius:999px;

  font-size:.95rem;
}


/* Mobile */

@media(max-width:650px){

  .sale-strip{
    padding:30px 24px;

    flex-direction:column;
    gap:18px;

    text-align:center;
  }

  .sale-strip strong{
    max-width:330px;
    font-size:1.3rem;
  }

  .sale-strip .button{
    padding:12px 22px;
  }

}

.sale-strip strong{
  font-family:Fredoka;
  font-size:1.4rem;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:25px;
}
.feature{
  border-radius:24px;
  padding:clamp(30px,5vw,58px);
  min-height:310px;
  overflow:hidden;
  position:relative;
}

.feature h2{
  font-size:clamp(2rem,4vw,3.7rem);
  line-height:.98;
  margin:12px 0 19px;
  max-width:420px;
}

.feature p{
  max-width:400px;
}

.feature.purple{background:#dcd1ff}
.feature.orange{background:#ffa874}

.feature .doodle{
  position:absolute;
  right:7%;
  bottom:-19px;
  font-size:6rem;
  transform:rotate(-15deg);
}

.page-hero{
  padding:70px clamp(20px,7vw,110px);
  background:var(--cream);
  text-align:center;
}

.page-hero h1{
  font-size:clamp(2.8rem,5vw,4.8rem);
  margin:8px auto 15px;
}

.page-hero p{
  max-width:570px;
  margin:auto;
  color:#58646a;
  line-height:1.6;
}

.filters{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:28px;
}

.filter{
  border:1px solid var(--line);
  border-radius:99px;
  background:#fff;
  padding:9px 14px;
  cursor:pointer;
  font:600 .85rem "DM Sans";
}

.filter.active,
.filter:hover{
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}

.collection-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.collection{
  padding:32px;
  border-radius:20px;
  text-decoration:none;
  color:var(--ink);
  min-height:205px;
}

.collection h2{
  font-size:2rem;
  margin:6px 0;
}

.collection p{
  max-width:250px;
  line-height:1.5;
}

.collection span{
  font-size:3rem;
}

.collection.a{background:#f8c0cd}
.collection.b{background:#b9e4df}
.collection.c{background:#ded2ff}

.age-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.age-card{
  padding:28px 22px;
  border-radius:20px;
  min-height:190px;
  text-decoration:none;
  color:var(--ink);
}

.age-card h2{
  font-size:2rem;
  margin:2px 0;
}

.age-card p{
  line-height:1.45;
}

.age-card:nth-child(1){background:#ffe48d}
.age-card:nth-child(2){background:#b5e0dc}
.age-card:nth-child(3){background:#f7bcc9}
.age-card:nth-child(4){background:#d7cafd}

.bundle-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px;
}

.bundle{
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
  background:#fff;
}

.bundle-art{
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 5.2rem;
  background: #fdf0d5;
  overflow: hidden;
}

.bundle-art img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.bundle-art img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}

.bundle h2{
  margin:20px 0 5px;
  font-size:1.55rem;
}

.bundle ul{
  padding-left:19px;
  line-height:1.8;
  color:#59666d;
  font-size:.9rem;
}

.bundle-footer{
  border-top:1px solid var(--line);
  padding-top:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.about-grid,
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  max-width:1000px;
  margin:auto;
}

.about-grid h2,
.contact-grid h2{
  font-size:2.5rem;
  margin-top:0;
}

.about-card{
  background:#aee0d9;
  padding:43px;
  border-radius:24px;
}

.about-card p,
.contact-grid p{
  line-height:1.7;
}

.contact-form{
  display:grid;
  gap:13px;
  background:#fff;
  padding:28px;
  border-radius:20px;
  border:1px solid var(--line);
}

label{
  font-size:.84rem;
  font-weight:700;
  display:grid;
  gap:6px;
}

input,
textarea,
select{
  width:100%;
  border:1px solid #d8d1c6;
  border-radius:9px;
  padding:12px;
  font:inherit;
  background:#fff;
}

textarea{
  min-height:100px;
  resize:vertical;
}

.cart-drawer{
  position:fixed;
  z-index:50;
  right:0;
  top:0;
  height:100vh;
  width:min(440px,100%);
  background:#fffdf9;
  box-shadow:-10px 0 30px #0002;
  transform:translateX(110%);
  transition:transform .3s;
  display:flex;
  flex-direction:column;
}

.cart-drawer.open{
  transform:translateX(0);
}

.drawer-head,
.dialog-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:22px 25px;
  border-bottom:1px solid var(--line);
}

.drawer-head h2,
.dialog-head h2{
  margin:0;
  font-size:1.5rem;
}

.close{
  font-size:2rem;
  line-height:1;
}

.overlay{
  position:fixed;
  inset:0;
  background:#1f292f5e;
  z-index:45;
  opacity:0;
  pointer-events:none;
  transition:.3s;
}

.overlay.show{
  opacity:1;
  pointer-events:auto;
}

.cart-line{
  display:flex;
  gap:13px;
  padding:18px 25px;
  border-bottom:1px solid var(--line);
}

.cart-line h3{
  font:600 1rem Fredoka;
  margin:2px 0 6px;
}

.cart-line p{
  margin:0;
  color:#687277;
  font-size:.85rem;
}

.line-info{
  flex:1;
}

.qty{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:9px;
}

.qty button{
  border:1px solid var(--line);
  border-radius:50%;
  width:22px;
  height:22px;
  background:white;
  cursor:pointer;
}

.cart-footer{
  margin-top:auto;
  padding:20px 25px;
  border-top:1px solid var(--line);
}

.cart-footer .button{
  width:100%;
  text-align:center;
  margin-top:17px;
}

.total-row{
  display:flex;
  justify-content:space-between;
  font-size:1.1rem;
}

.cart-footer p{
  font-size:.84rem;
  color:#5f696c;
  margin:0 0 13px;
}

dialog{
  border:0;
  border-radius:19px;
  padding:0;
  width:min(560px,calc(100% - 32px));
  box-shadow:var(--shadow);
  color:var(--ink);
}

dialog::backdrop{
  background:#1f292f5e;
}

.search-input{
  margin:20px;
  width:calc(100% - 40px);
  font-size:1rem;
}

.search-results{
  max-height:370px;
  overflow:auto;
  padding:0 20px 20px;
}

.result{
  display:flex;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  align-items:center;
}

.result-cover{
  position:relative;
  width:42px;
  height:56px;
  min-width:42px;
  flex-shrink:0;
  border-radius:3px 7px 7px 3px;
  display:grid;
  place-items:center;
  color:#fff;
  overflow:hidden;
}

.result h3{
  margin:0;
  font-size:1rem;
}

.result p{
  margin:3px 0;
  color:#657175;
  font-size:.85rem;
}

.result button{
  margin-left:auto;
}

.checkout-form{
  padding:25px;
  display:grid;
  gap:14px;
}

.payment-box{
  display:flex;
  gap:12px;
  padding:14px;
  background:#fff1cf;
  border-radius:12px;
  font-size:.88rem;
}

.payment-box span{
  font-size:1.4rem;
}

.payment-box p{
  margin:4px 0 0;
  color:#59656b;
}

.form-notice{
  padding:0 25px 25px;
  color:#317669;
}


/* =========================================================
   SMALL BOOK PLACARD
========================================================= */

.book-dialog-content{
  padding:0;
}

.book-detail{
  display:grid;
  grid-template-columns:210px 1fr;
  gap:27px;
  padding:27px;
}

.book-detail .cover{
  height:275px;
}

.book-detail h1{
  font-size:2.1rem;
  margin:3px 0 8px;
}

.book-detail p{
  line-height:1.6;
}

.book-detail .button{
  margin-top:15px;
}

.tag{
  display:inline-block;
  background:var(--cream);
  padding:5px 9px;
  border-radius:99px;
  font-size:.76rem;
  font-weight:700;
}


/* =========================================================
   FULL BOOK DETAIL PAGE
========================================================= */

.book-detail-page{
  min-height:calc(100vh - 82px);
  padding:clamp(30px,5vw,70px) clamp(20px,7vw,100px);
  background:
    radial-gradient(circle at 90% 10%,#ffd66735 0,transparent 28%),
    var(--paper);
}

.book-detail-top{
  max-width:1180px;
  margin:0 auto 25px;
}

.book-detail-top .text-link{
  display:inline-flex;
  align-items:center;
  gap:7px;
  text-decoration:none;
  padding:9px 14px;
  border:1px solid var(--line);
  border-radius:99px;
  background:#fffdf9;
  transition:.2s ease;
}

.book-detail-top .text-link:hover{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
  transform:translateX(-2px);
}

.book-detail-layout{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(350px,.95fr);
  gap:clamp(35px,6vw,85px);
  align-items:start;
}

.book-gallery{
  min-width:0;
}

.book-detail-main-image{
  width:100%;
  min-height:560px;
  border-radius:24px;
  padding:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
  box-shadow:0 18px 45px #4f3d2220;
  background:#f4e7d4;
}

.book-detail-main-image:after{
  content:"";
  position:absolute;
  inset:14px;
  border:1px solid #ffffff55;
  border-radius:18px;
  pointer-events:none;
}

.book-detail-main-image img{
  width:100%;
  height:100%;
  max-height:540px;
  object-fit:contain;
  display:block;
  position:relative;
  z-index:1;
  border-radius:14px;
}

.book-detail-main-image .cover-icon{
  font-size:7rem;
  position:relative;
  z-index:1;
}

.book-thumbnails{
  display:flex;
  gap:12px;
  margin-top:16px;
  overflow-x:auto;
  padding:4px 3px 9px;
  scrollbar-width:thin;
}

.book-thumbnail{
  width:82px;
  height:82px;
  flex:0 0 82px;
  padding:4px;
  border:2px solid transparent;
  border-radius:13px;
  background:#fffdf9;
  cursor:pointer;
  overflow:hidden;
  transition:
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.book-thumbnail:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-soft);
}

.book-thumbnail.active{
  border-color:var(--ink);
  box-shadow:0 4px 12px #25313820;
}

.book-thumbnail img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
}

.book-detail-info{
  padding-top:15px;
}

.book-detail-info .tag{
  background:#fff0c9;
  color:#76521e;
  margin-bottom:13px;
}

.book-detail-info h1{
  font-size:clamp(2.5rem,5vw,4.5rem);
  line-height:.98;
  letter-spacing:-1.5px;
  margin:8px 0 10px;
}

.book-detail-author{
  color:#687277;
  font-size:1.05rem;
  margin:0 0 14px;
}

.book-detail-rating{
  display:inline-flex;
  padding:7px 11px;
  border-radius:99px;
  background:#fff;
  border:1px solid var(--line);
  color:#9b6f00;
  font-size:.88rem;
  margin-bottom:22px;
}

.book-detail-description{
  font-size:1rem;
  line-height:1.75;
  color:#4f5c61;
  max-width:600px;
}

.book-condition{
  margin-top:26px;
  padding:19px 20px;
  border-radius:17px;
  background:#e2f4ef;
  border:1px solid #b9ded6;
  position:relative;
}

.book-condition:before{
  content:"Condition";
  position:absolute;
  top:-10px;
  left:17px;
  padding:3px 9px;
  border-radius:99px;
  background:var(--teal);
  color:#173e3a;
  font-size:.7rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.7px;
}

.book-condition h3{
  display:none;
}

.book-condition p{
  margin:2px 0 0;
  color:#355752;
  line-height:1.55;
  font-size:.92rem;
}

.book-detail-purchase{
  margin-top:30px;
  padding-top:23px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
}

.book-detail-price{
  font-family:Fredoka,sans-serif;
  font-size:2rem;
  letter-spacing:-.5px;
}

.book-detail-purchase .button{
  min-width:170px;
  text-align:center;
}

.book-detail-purchase .status{
  font-size:.85rem;
}


/* =========================================================
   ADMIN
========================================================= */

.admin-wrap{
  max-width:1100px;
  margin:auto;
}

.admin-login{
  max-width:420px;
  margin:0 auto;
  background:#fff;
  padding:30px;
  border:1px solid var(--line);
  border-radius:18px;
}

.admin-login h2{
  margin-top:0;
}

.admin-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}

.admin-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  overflow:hidden;
}

.admin-table th,
.admin-table td{
  text-align:left;
  padding:15px;
  border-bottom:1px solid var(--line);
  font-size:.9rem;
}

.admin-table th{
  background:#fff4dd;
}

.status{
  font-size:.75rem;
  font-weight:700;
  padding:5px 8px;
  border-radius:99px;
}

.status.available{
  background:#dff5e9;
  color:#29704c;
}

.status.sold{
  background:#f8d8dc;
  color:#a33d4c;
}

.tiny-button{
  border:1px solid var(--ink);
  border-radius:7px;
  padding:6px 9px;
  background:white;
  cursor:pointer;
  font:600 .76rem "DM Sans";
}

.admin-form{
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  padding:22px;
  margin-bottom:25px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:13px;
}

.admin-form h2,
.admin-form .full{
  grid-column:1/-1;
}

.admin-form h2{
  margin:0;
  font-size:1.4rem;
}

.settings{
  background:#f5efff;
  border-radius:15px;
  padding:20px;
  margin-bottom:25px;
  display:flex;
  align-items:end;
  gap:14px;
}

.settings label{
  max-width:160px;
}

.empty{
  padding:40px 25px;
  text-align:center;
  color:#6c7477;
}

/* =========================================================
   FOOTER
========================================================= */

footer{
  padding:52px clamp(20px,6vw,92px) 24px;
  background:#253138;
  color:#fff;
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:35px;
}

footer a{
  color:#e9e9e9;
  display:block;
  margin:9px 0;
}

footer h4{
  margin:0 0 12px;
  font-family:Fredoka,sans-serif;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:16px;
}

.footer-brand .brand-mark{
  display:inline-grid;
  margin-right:8px;
}

/* Larger footer logo */
.footer-brand img{
  width:72px !important;
  height:72px !important;
  object-fit:contain !important;
  display:block !important;
  flex-shrink:0 !important;
}

/* Larger, warmer brand name */
.footer-brand strong{
  display:block;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.05;
}

.footer-brand p{
  color:#c5d0d2;
  margin:7px 0 0;
  font-size:.9rem;
  line-height:1.4;
}

.footer-note{
  grid-column:1/-1;
  color:#9eafb2;
  border-top:1px solid #ffffff20;
  padding-top:20px;
  font-size:.8rem;
}


/* =========================================================
   FOOTER — MOBILE
========================================================= */

@media(max-width:650px){

  .footer-brand{
    gap:13px;
  }

  .footer-brand img{
    width:62px !important;
    height:62px !important;
  }

  .footer-brand strong{
    font-size:1.3rem;
  }

  .footer-brand p{
    font-size:.85rem;
  }

}

/* =========================================================
   IMAGE / CONTENT HELPERS
========================================================= */

.cover-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.cover:has(.cover-photo) .cover-title{
  background:#1f292fa8;
  padding:6px 8px;
  border-radius:7px;
  left:10px;
  bottom:10px;
}

.cart-cover .cover-photo{
  border-radius:4px 8px 8px 4px;
}

.collection-photo{
  display:block;
  width:100%;
  height:105px;
  object-fit:cover;
  border-radius:12px;
  margin-bottom:15px;
}

.category-photo{
  position:absolute;
  right:10px;
  bottom:10px;
  width:86px;
  height:86px;
  object-fit:cover;
  border-radius:50%;
  border:3px solid #fff8;
}

.photo-note{
  font-size:.78rem;
  color:#687277;
  margin:0;
}

.content-editor{
  background:#fff;
  border:1px solid var(--line);
  border-radius:15px;
  padding:22px;
  margin-bottom:25px;
}

.content-editor h2{
  margin:0 0 16px;
  font-size:1.4rem;
}

.content-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:13px;
}

.content-grid .full{
  grid-column:1/-1;
}

.admin-section-title{
  margin:40px 0 13px;
  font-size:1.7rem;
}


/* =========================================================
   BULK & EVENTS
========================================================= */

.bulk-book{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:16px 0;
  border-bottom:1px solid #e7e1dc;
  transition:padding .2s ease;
}

.bulk-book:first-child{
  padding-top:0;
}

.bulk-book:last-child{
  border-bottom:0;
}

.bulk-book:hover{
  padding-left:6px;
  padding-right:6px;
}

.bulk-book p{
  margin:4px 0 0;
  color:#687277;
}

.bulk-book-qty{
  width:76px;
  padding:10px 8px;
  border:1px solid #d8d0ca;
  border-radius:10px;
  background:#fff;
  font:inherit;
  text-align:center;
  transition:border-color .2s ease,box-shadow .2s ease;
}

.bulk-book-qty:focus{
  outline:none;
  border-color:var(--teal);
  box-shadow:0 0 0 3px #5fc9bd25;
}

#bulkBooks{
  margin-top:18px;
  background:#fffdf9;
  border:1px solid var(--line);
  border-radius:20px;
  padding:20px 24px;
  box-shadow:var(--shadow-soft);
}

#bulkBooks:empty::before{
  content:"No books are available right now.";
  display:block;
  color:#687277;
  padding:15px 0;
}

#bulkPurpose,
#bulkQuantity,
#bulkName,
#bulkCity,
#bulkNote{
  width:100%;
  box-sizing:border-box;
  margin-top:6px;
}

#bulkPurpose,
#bulkQuantity,
#bulkName,
#bulkCity{
  min-height:46px;
}

#bulkNote{
  min-height:125px;
}

#bulkPurpose:focus,
#bulkQuantity:focus,
#bulkName:focus,
#bulkCity:focus,
#bulkNote:focus{
  outline:none;
  border-color:var(--orange);
  box-shadow:0 0 0 3px #ff8a5525;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:850px){

  nav{
    gap:12px;
  }

  .book-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .category-grid,
  .age-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .feature-grid,
  .about-grid,
  .contact-grid{
    grid-template-columns:1fr;
  }

  .collection-grid,
  .bundle-grid{
    grid-template-columns:1fr;
  }

  .hero{
    grid-template-columns:1fr;
  }

  .hero-art{
    min-height:330px;
  }

  .hero-copy{
    padding-bottom:50px;
  }

  .admin-form{
    grid-template-columns:repeat(2,1fr);
  }

  .book-detail-layout{
    grid-template-columns:1fr;
    gap:35px;
  }

  .book-detail-main-image{
    min-height:480px;
  }

  .book-detail-info{
    padding-top:0;
  }

  .book-detail-info h1{
    font-size:3.3rem;
  }
}


@media(max-width:650px){

  .site-header{
    height:70px;
    padding:0 17px;
    gap:12px;
  }

  .menu-button{
    display:block;
  }

  nav{
    display:none;
    position:absolute;
    top:70px;
    left:0;
    right:0;
    background:#fffdf9;
    padding:18px;
    flex-direction:column;
    border-bottom:1px solid var(--line);
  }

  nav.open{
    display:flex;
  }

  .header-actions{
    margin-left:auto;
  }

  .icon-button{
    font-size:1.5rem;
  }

  .cart-button{
    padding:8px 10px;
  }

  .hero h1{
    font-size:3.4rem;
  }

  .book-grid{
    gap:18px;
  }

  .cover{
    height:210px;
  }

  .section{
    padding:45px 20px;
  }

  .book-detail{
    grid-template-columns:1fr;
  }

  .book-detail .cover{
    height:230px;
  }

  .admin-table{
    display:block;
    overflow:auto;
  }

  .admin-form{
    grid-template-columns:1fr;
  }

  .content-grid{
    grid-template-columns:1fr;
  }

  .settings{
    align-items:stretch;
    flex-direction:column;
  }

  footer{
    grid-template-columns:1fr;
  }

  .page-hero{
    padding:50px 20px;
  }

  .logo-hero{
    min-height:330px;
    padding:25px;
  }

  .logo-hero img{
    width:82%;
    max-width:360px;
  }

  /* Full book page */

  .book-detail-page{
    padding:25px 17px 55px;
  }

  .book-detail-top{
    margin-bottom:18px;
  }

  .book-detail-main-image{
    min-height:390px;
    border-radius:20px;
    padding:14px;
  }

  .book-detail-main-image img{
    max-height:360px;
  }

  .book-thumbnail{
    width:68px;
    height:68px;
    flex-basis:68px;
  }

  .book-detail-info h1{
    font-size:2.8rem;
    line-height:1;
  }

  .book-detail-description{
    font-size:.96rem;
  }

  .book-detail-purchase{
    align-items:stretch;
    flex-direction:column;
  }

  .book-detail-purchase .button{
    width:100%;
  }

  .book-detail-price{
    font-size:1.8rem;
  }

  /* Bulk */

  #bulkBooks{
    padding:16px;
    border-radius:17px;
  }

  .bulk-book{
    gap:10px;
    align-items:flex-start;
  }

  .bulk-book-qty{
    width:66px;
  }
}


/* =========================================================
   SMALL SCREEN SAFETY
========================================================= */

@media(max-width:430px){

  .brand-logo{
    width:48px;
    height:48px;
  }

  .brand{
    font-size:1.05rem;
  }

  .book-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .cover{
    height:190px;
    padding:15px 13px;
  }

  .cover .cover-title{
    font-size:1.08rem;
    left:12px;
  }

  .book-meta h3{
    font-size:1rem;
  }

  .book-meta p{
    font-size:.78rem;
  }

  .rating{
    display:none;
  }

  .book-detail-main-image{
    min-height:340px;
  }

  .book-detail-info h1{
    font-size:2.45rem;
  }
}
/* =========================================================
   FIX: SEARCH + CART BOOK IMAGE CONTAINERS
========================================================= */

/* Cart thumbnail */
.cart-cover {
  width: 58px !important;
  height: 78px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  flex: 0 0 58px !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 5px 9px 9px 5px !important;
  padding: 0 !important;
}

/* Image inside cart thumbnail */
.cart-cover img,
.cart-cover .cover-photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Search-result thumbnail */
.result-cover {
  width: 42px !important;
  height: 56px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  flex: 0 0 42px !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 3px 7px 7px 3px !important;
  padding: 0 !important;
}

/* Image inside search thumbnail */
.result-cover img,
.result-cover .cover-photo {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Prevent the generic .cover rules from affecting these */
.cart-cover .cover-icon,
.result-cover .cover-icon {
  position: absolute !important;
  z-index: 1 !important;
  font-size: 1.5rem !important;
}

.cart-cover .cover-title,
.result-cover .cover-title {
  font-size: .55rem !important;
  line-height: 1 !important;
  bottom: 4px !important;
  left: 4px !important;
  right: 4px !important;
  padding: 2px 3px !important;
  position: absolute !important;
  z-index: 2 !important;
}

/* =========================================================
   TINYTOTBOOKS — REVIEWS PAGE
   Lightweight CSS-only design
========================================================= */

.reviews-page{
  padding-top:20px;
}

.reviews-intro{
  max-width:720px;
  margin:0 auto 42px;
  text-align:center;
}

.reviews-intro h2{
  margin:10px 0 12px;
}

.reviews-intro p{
  color:#68777a;
  margin:0;
}


/* REVIEW CARD GRID */

.reviews-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}


/* INDIVIDUAL REVIEW */

.review-card{
  position:relative;
  padding:28px;
  background:#fff;
  border:1px solid #e8e1dc;
  border-radius:24px;
  box-shadow:0 14px 35px rgba(37,49,56,.08);

  animation:reviewAppear .6s ease both;
  animation-delay:var(--review-delay);
}


/* Slight natural variation */

.review-card:nth-child(3n + 2){
  transform:translateY(10px);
}

.review-card:nth-child(3n){
  transform:translateY(4px);
}


/* TOP ROW */

.review-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:20px;
}


/* STARS */

.review-stars{
  font-size:1.05rem;
  letter-spacing:2px;
  line-height:1;
}

.review-stars-empty{
  opacity:.18;
}


/* DATE */

.review-date{
  color:#7b898b;
  font-size:.78rem;
  white-space:nowrap;
}


/* REVIEW TEXT */

.review-text{
  margin:0 0 25px;

  color:#354347;

  font-size:1rem;
  line-height:1.7;
}


/* REVIEWER */

.review-person{
  display:flex;
  align-items:center;
  gap:11px;
}


/* INITIAL CIRCLE */

.review-avatar{
  width:40px;
  height:40px;

  display:grid;
  place-items:center;

  border-radius:50%;

  background:#f4d7df;

  color:#253138;

  font-weight:800;
  font-size:.95rem;

  flex-shrink:0;
}


/* REVIEWER NAME */

.review-person strong{
  font-size:.9rem;
}


/* GOOGLE CTA */

.google-review-cta{
  max-width:780px;

  margin:72px auto 0;
  padding:46px 32px;

  text-align:center;

  background:#f6efe8;

  border:1px solid #e8dfd7;

  border-radius:30px;

  box-shadow:0 12px 30px rgba(37,49,56,.05);
}

.google-review-cta h2{
  margin:10px 0 12px;
}

.google-review-cta p{
  max-width:590px;

  margin:0 auto 26px;

  color:#68777a;

  line-height:1.6;
}


/* GOOGLE BUTTON */

.google-review-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}


/* EMPTY STATE */

.review-empty{
  grid-column:1/-1;
  text-align:center;
}


/* =========================================================
   SHIPPING / FAQ PAGES
========================================================= */

.info-page{
  max-width:900px;
  margin:0 auto;
}

.info-card{
  padding:36px;
}


/* =========================================================
   LIGHTWEIGHT ENTRANCE ANIMATION
========================================================= */

@keyframes reviewAppear{

  from{
    opacity:0;
    transform:translateY(14px);
  }

  to{
    opacity:1;
    transform:translateY(0);
  }

}


/* Respect user's reduced-motion preference */

@media(prefers-reduced-motion:reduce){

  .review-card{
    animation:none;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:900px){

  .reviews-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:600px){

  .reviews-grid{
    grid-template-columns:1fr;
  }

  .review-card:nth-child(3n + 2),
  .review-card:nth-child(3n){
    transform:none;
  }

  .review-card{
    padding:24px;
  }

  .review-top{
    align-items:flex-start;
  }

  .google-review-cta{
    margin-top:50px;
    padding:36px 22px;
  }

}

/* =========================================================
   REVIEWS → OUR STORY STRIP
========================================================= */

.review-story-cta{
  max-width:900px;
  margin:32px auto 0;
  padding:30px 34px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;

  background:#fff;

  border:1px solid #e8e1dc;
  border-radius:24px;

  box-shadow:0 10px 28px rgba(37,49,56,.05);
}

.review-story-copy{
  max-width:650px;
}

.review-story-copy h2{
  margin:8px 0 8px;
}

.review-story-copy p{
  margin:0;
  color:#68777a;
  line-height:1.6;
}

.review-story-cta .button{
  flex-shrink:0;
  white-space:nowrap;
}


/* Mobile */

@media(max-width:650px){

  .review-story-cta{
    flex-direction:column;
    align-items:flex-start;
    padding:28px 24px;
  }

  .review-story-cta .button{
    width:100%;
  }

}

/* =========================================================
   HOMEPAGE — CHARACTERS FEATURE TILE
========================================================= */

.character-feature{
  position:relative;
  overflow:hidden;

  background:#dcebdc;
  color:#253138;

  border-radius:28px;
  padding:38px;

  box-shadow:0 12px 30px rgba(37,49,56,.06);
}

.character-feature h2{
  max-width:620px;
  margin:8px 0 12px;
}

.character-feature p{
  max-width:620px;
  color:#536367;
  line-height:1.65;
}

.character-feature .button{
  margin-top:8px;
}

.character-feature .doodle{
  position:absolute;
  right:34px;
  bottom:22px;

  font-size:4rem;
  line-height:1;

  transform:rotate(-6deg);
}


/* Mobile */

@media(max-width:650px){

  .character-feature{
    padding:30px 24px;
  }

  .character-feature .doodle{
    right:20px;
    bottom:16px;
    font-size:3rem;
  }

}
/* =========================================================
   HOMEPAGE — BUNDLES FEATURE TILE
========================================================= */

.bundle-feature{
  position:relative;
  overflow:hidden;

  background:#f3e2c8;
  color:#253138;

  border-radius:28px;
  padding:38px;

  box-shadow:0 12px 30px rgba(37,49,56,.06);
}

.bundle-feature h2{
  max-width:620px;
  margin:8px 0 12px;
}

.bundle-feature p{
  max-width:620px;
  color:#536367;
  line-height:1.65;
}

.bundle-feature .button{
  margin-top:8px;
}

.bundle-feature .doodle{
  position:absolute;
  right:34px;
  bottom:22px;

  font-size:4rem;
  line-height:1;

  transform:rotate(6deg);
}


/* Mobile */

@media(max-width:650px){

  .bundle-feature{
    padding:30px 24px;
  }

  .bundle-feature .doodle{
    right:20px;
    bottom:16px;
    font-size:3rem;
  }

}
/* Make the Characters + Bundles doodles visually match */
.character-feature .doodle,
.bundle-feature .doodle{
  font-size:6rem;
  line-height:1;
}

/* =========================================================
   TINYTOTBOOKS — OUR STORY
   Clean editorial story page
   No photos. No scrapbook clutter. Just personality.
   ========================================================= */

.story-page{
  --story-orange:#f28a5b;
  --story-orange-soft:#fff0e8;
  --story-mint:#e7f4ef;
  --story-blush:#faecec;
  --story-yellow:#fff5cf;
  --story-paper:#fffdf8;
  --story-cream:#f8f3e9;
  --story-ink:#202b31;
  --story-muted:#687177;
  --story-line:rgba(32,43,49,.12);

  background:var(--story-cream);
  color:var(--story-ink);
  overflow:hidden;
}


/* =========================================================
   SHARED CHAPTER
   ========================================================= */

.story-chapter{
  position:relative;
  padding:clamp(72px,9vw,125px) clamp(22px,6vw,90px);
}

.story-inner{
  width:min(1080px,100%);
  margin:0 auto;
}

.story-center{
  width:min(760px,100%);
  margin:0 auto;
  text-align:center;
}


/* =========================================================
   BACKGROUNDS
   ========================================================= */

.story-paper{
  background:var(--story-paper);
}

.story-cream{
  background:var(--story-cream);
}

.story-mint{
  background:var(--story-mint);
}

.story-blush{
  background:var(--story-blush);
}

.story-ink{
  background:var(--story-ink);
  color:white;
}


/* =========================================================
   SMALL SECTION LABEL
   ========================================================= */

.story-marker{
  display:inline-flex;
  align-items:center;
  gap:10px;

  margin-bottom:20px;

  font-family:Fredoka,sans-serif;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:2.2px;
  text-transform:uppercase;

  color:var(--story-orange);
}

.story-marker::before{
  content:"";
  width:28px;
  height:2px;
  border-radius:99px;
  background:currentColor;
}

.story-marker::after{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
}

.story-center .story-marker{
  justify-content:center;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

.story-chapter h2{
  margin:0 0 18px;

  font-family:Fredoka,sans-serif;
  font-size:clamp(2rem,4vw,3.25rem);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-1.5px;

  color:var(--story-ink);
}

.story-chapter p{
  max-width:700px;
  margin:0 0 16px;

  font-size:1rem;
  line-height:1.85;
  color:var(--story-muted);
}

.story-center p{
  margin-left:auto;
  margin-right:auto;
}

.story-chapter strong{
  color:var(--story-ink);
  font-weight:700;
}

.story-ink h2,
.story-ink strong{
  color:white;
}

.story-ink p{
  color:rgba(255,255,255,.72);
}


/* =========================================================
   OPENING — 2021
   ========================================================= */

.story-opening{
  padding-top:clamp(90px,11vw,150px);
  padding-bottom:clamp(90px,11vw,150px);
}

.story-opening::after{
  content:"";
  position:absolute;
  right:-120px;
  bottom:-120px;

  width:300px;
  height:300px;

  border-radius:50%;
  border:1px solid rgba(242,138,91,.2);
}

.story-opening-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr);
  gap:clamp(45px,8vw,110px);
  align-items:end;
}

.story-opening h2{
  max-width:800px;
  font-size:clamp(2.7rem,6vw,5.3rem);
  letter-spacing:-3px;
  line-height:.98;
}

.story-opening-lead{
  max-width:600px;
  margin-top:26px !important;

  font-size:1.1rem !important;
  line-height:1.9 !important;
}

.story-year{
  justify-self:end;

  width:210px;
  height:210px;

  display:grid;
  place-items:center;

  border-radius:50%;

  background:var(--story-orange);
  color:white;

  font-family:Fredoka,sans-serif;
  font-size:3.4rem;
  font-weight:600;

  transform:rotate(5deg);

  box-shadow:
    0 22px 50px rgba(242,138,91,.25),
    0 0 0 12px rgba(242,138,91,.10),
    0 0 0 22px rgba(242,138,91,.05);

  position:relative;
  z-index:1;
}
.story-year::before{
  content:"✦";
  position:absolute;
  top:18px;
  right:28px;

  font-size:1.3rem;
  color:rgba(255,255,255,.8);

  transform:rotate(-15deg);
}

.story-year::after{
  content:"THE BEGINNING";
  position:absolute;

  bottom:-18px;
  left:50%;

  transform:translateX(-50%) rotate(-5deg);

  padding:7px 14px;

  background:var(--story-ink);
  color:white;

  border-radius:6px;

  font-family:Fredoka,sans-serif;
  font-size:.62rem;
  font-weight:600;
  letter-spacing:1.8px;
  white-space:nowrap;

  box-shadow:0 8px 18px rgba(32,43,49,.15);
}
.story-year small{
  display:block;
  margin-top:-38px;

  font-family:inherit;
  font-size:.68rem;
  font-weight:500;
  letter-spacing:1.5px;
  text-transform:uppercase;
}


/* =========================================================
   THE IDEA
   ========================================================= */

.story-idea{
  text-align:center;
}

.story-idea::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;

  width:1px;
  height:55px;

  background:var(--story-line);
}

.story-idea h2{
  max-width:850px;
  margin-left:auto;
  margin-right:auto;
}

.story-idea-copy{
  max-width:650px !important;
}


/* =========================================================
   BIG QUESTION
   ========================================================= */

.story-question{
  padding-top:clamp(90px,11vw,140px);
  padding-bottom:clamp(90px,11vw,140px);

  background:var(--story-orange);
  color:white;
}

.story-question::before{
  content:"?";
  position:absolute;

  right:8%;
  top:50%;

  transform:translateY(-50%);

  font-family:Georgia,serif;
  font-size:clamp(12rem,28vw,26rem);
  line-height:1;

  color:rgba(255,255,255,.09);
  pointer-events:none;
}

.story-question .story-inner{
  position:relative;
  z-index:1;
}

.story-question .story-marker{
  color:white;
}

.story-question .story-marker::before{
  background:white;
}

.story-question h2{
  max-width:900px;
  margin:0 auto 24px;

  color:white;

  font-family:Georgia,"Times New Roman",serif;
  font-style:italic;
  font-weight:500;

  font-size:clamp(2.5rem,5vw,4.8rem);
  line-height:1.08;
  letter-spacing:-2px;
}

.story-question p{
  color:rgba(255,255,255,.82);
}


/* =========================================================
   PRE-LOVED IDEA
   ========================================================= */

.story-journey{
  text-align:center;
}

.story-journey h2{
  max-width:780px;
  margin-left:auto;
  margin-right:auto;
}

.story-journey-intro{
  max-width:650px !important;
}


/* Simple visual journey */

.story-flow{
  position:relative;

  display:grid;
  grid-template-columns:1fr auto 1fr;

  align-items:center;

  max-width:600px;
  margin:55px auto 48px;
}

.story-flow::before{
  content:"";

  position:absolute;
  left:90px;
  right:90px;
  top:50%;

  border-top:2px dashed rgba(32,43,49,.16);
}

.story-flow-book{
  position:relative;
  z-index:1;

  width:105px;
  height:125px;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  margin:auto;

  border-radius:12px 16px 16px 12px;

  background:white;
  border:1px solid var(--story-line);

  box-shadow:0 12px 30px rgba(32,43,49,.08);

  font-size:2.5rem;
}

.story-flow-book::after{
  content:"";
  width:55px;
  height:2px;

  margin-top:10px;

  background:var(--story-orange);
  opacity:.5;
}

.story-flow-book:first-child{
  transform:rotate(-3deg);
}

.story-flow-book:last-child{
  transform:rotate(3deg);
}

.story-flow-arrow{
  position:relative;
  z-index:2;

  width:55px;
  height:55px;

  display:grid;
  place-items:center;

  border-radius:50%;

  background:var(--story-ink);
  color:white;

  font-size:1.2rem;
}

.story-journey-note{
  max-width:680px !important;
}


/* =========================================================
   OUR WISH
   ========================================================= */

.story-wish{
  background:var(--story-ink);
  color:white;
  text-align:center;
}

.story-wish .story-inner{
  position:relative;
}

.story-wish .story-inner::before{
  content:"“";

  position:absolute;
  left:50%;
  top:-65px;

  transform:translateX(-50%);

  font-family:Georgia,serif;
  font-size:7rem;
  line-height:1;

  color:var(--story-orange);
}

.story-wish-text{
  max-width:900px !important;
  margin:0 auto !important;

  font-family:Georgia,"Times New Roman",serif !important;
  font-style:italic;

  font-size:clamp(1.8rem,3.7vw,3rem) !important;
  line-height:1.45 !important;

  color:white !important;
}


/* =========================================================
   CURATION
   ========================================================= */

.story-curation-header{
  max-width:700px;
  margin:0 auto 55px;
  text-align:center;
}

.story-curation-header p{
  margin-left:auto;
  margin-right:auto;
}

.story-curation{
  display:grid;
  grid-template-columns:repeat(3,1fr);

  border-top:1px solid var(--story-line);
  border-bottom:1px solid var(--story-line);
}

.story-curation-item{
  position:relative;

  min-height:260px;
  padding:38px 32px;

  border-right:1px solid var(--story-line);
}

.story-curation-item:last-child{
  border-right:0;
}

.story-curation-number{
  display:flex;
  align-items:center;
  justify-content:center;

  width:42px;
  height:42px;

  border-radius:50%;

  background:var(--story-orange-soft);
  color:var(--story-orange);

  font-family:Fredoka,sans-serif;
  font-size:.8rem;
  font-weight:700;
}

.story-curation-item:nth-child(2) .story-curation-number{
  background:var(--story-mint);
}

.story-curation-item:nth-child(3) .story-curation-number{
  background:var(--story-yellow);
}

.story-curation-item h3{
  margin:28px 0 10px;

  font-family:Fredoka,sans-serif;
  font-size:1.35rem;
  font-weight:600;
  line-height:1.2;
}

.story-curation-item p{
  font-size:.93rem;
  line-height:1.7;
}


/* =========================================================
   LITTLE EDITORIAL DIVIDER
   ========================================================= */

.story-divider{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;

  margin:0 auto;

  color:var(--story-orange);
}

.story-divider::before,
.story-divider::after{
  content:"";

  width:70px;
  height:1px;

  background:currentColor;
  opacity:.35;
}

.story-divider span{
  width:7px;
  height:7px;

  border-radius:50%;
  background:currentColor;
}


/* =========================================================
   BROWSE INVITATION
   ========================================================= */

.story-invitation{
  text-align:center;
}

.story-invitation h2{
  max-width:750px;
  margin-left:auto;
  margin-right:auto;

  font-size:clamp(2.4rem,5vw,4.2rem);
}

.story-invitation p{
  max-width:650px !important;
}

.story-invitation .button{
  margin-top:18px;
}


/* =========================================================
   REVIEWS TRANSITION
   ========================================================= */

.story-review-transition{
  position:relative;

  background:var(--story-mint);

  text-align:center;

  padding-top:90px;
  padding-bottom:90px;
}

.story-review-transition::before{
  content:"";

  display:block;

  width:55px;
  height:4px;

  margin:0 auto 28px;

  border-radius:99px;

  background:var(--story-orange);
}

.story-review-transition h2{
  max-width:800px;
  margin-left:auto;
  margin-right:auto;

  font-size:clamp(2.2rem,4.5vw,3.8rem);
}

.story-review-transition p{
  max-width:600px !important;
}


/* =========================================================
   PRESENT DAY
   ========================================================= */

.story-present{
  position:relative;
  text-align:center;
}

.story-present::after{
  content:"";

  position:absolute;

  width:180px;
  height:180px;

  right:-80px;
  top:50%;

  border-radius:50%;

  background:var(--story-blush);

  z-index:0;
}

.story-present .story-inner{
  position:relative;
  z-index:1;
}

.story-present h2{
  max-width:800px;
  margin-left:auto;
  margin-right:auto;

  font-size:clamp(2.5rem,5vw,4.4rem);
}

.story-present p{
  max-width:650px !important;
}


/* =========================================================
   FINALE
   ========================================================= */

.story-finale{
  position:relative;

  padding-top:clamp(100px,12vw,160px);
  padding-bottom:clamp(100px,12vw,160px);

  background:var(--story-paper);

  text-align:center;
}

.story-finale::before{
  content:"";

  position:absolute;
  left:50%;
  top:0;

  width:1px;
  height:70px;

  background:var(--story-line);
}

.story-finale-text{
  max-width:900px !important;
  margin:0 auto !important;

  font-family:Fredoka,sans-serif !important;
  font-size:clamp(2.3rem,5vw,4.5rem) !important;
  font-weight:600;

  line-height:1.12 !important;
  letter-spacing:-2px;

  color:var(--story-ink) !important;
}

.story-finale-sub{
  margin:28px auto 0 !important;
  max-width:600px !important;
}


/* =========================================================
   ABOUT → REVIEWS CTA
   ========================================================= */

.story-review-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;

  padding:clamp(50px,6vw,75px) clamp(24px,7vw,100px);

  background:var(--story-orange);
  color:white;
}

.story-review-copy{
  max-width:650px;
}

.story-review-copy .eyebrow{
  color:white;
}

.story-review-copy h2{
  margin:8px 0 10px;

  font-family:Fredoka,sans-serif;
  font-size:clamp(1.8rem,3.5vw,2.8rem);
  line-height:1.1;
  letter-spacing:-1px;

  color:white;
}

.story-review-copy p{
  margin:0;

  color:rgba(255,255,255,.82);
}

.story-review-cta .button{
  flex-shrink:0;
  background:white;
  color:var(--story-ink);
}

.story-review-cta .button:hover{
  background:var(--story-ink);
  color:white;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:850px){

  .story-opening-grid{
    grid-template-columns:1fr;
  }

  .story-year{
    justify-self:start;
    width:150px;
    height:150px;
    font-size:2.2rem;
  }

  .story-opening h2{
    letter-spacing:-2px;
  }

  .story-curation{
    grid-template-columns:1fr;
  }

  .story-curation-item{
    min-height:auto;
    border-right:0;
    border-bottom:1px solid var(--story-line);
  }

  .story-curation-item:last-child{
    border-bottom:0;
  }

  .story-review-cta{
    flex-direction:column;
    align-items:flex-start;
  }
}


@media(max-width:600px){

  .story-chapter{
    padding-left:20px;
    padding-right:20px;
  }

  .story-opening{
    padding-top:75px;
    padding-bottom:80px;
  }

  .story-opening h2{
    font-size:clamp(2.45rem,12vw,4rem);
    letter-spacing:-2px;
  }

  .story-question h2{
    font-size:clamp(2.2rem,10vw,3.2rem);
  }

  .story-flow{
    grid-template-columns:1fr 45px 1fr;
    margin-top:40px;
  }

  .story-flow::before{
    left:50px;
    right:50px;
  }

  .story-flow-book{
    width:80px;
    height:100px;
    font-size:2rem;
  }

  .story-flow-arrow{
    width:45px;
    height:45px;
  }

  .story-curation-item{
    padding:32px 24px;
  }

  .story-wish-text{
    font-size:1.65rem !important;
  }

  .story-finale-text{
    font-size:clamp(2.2rem,10vw,3.4rem) !important;
  }

  .story-review-cta{
    padding:50px 24px;
  }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media(prefers-reduced-motion:reduce){

  .story-page *,
  .story-page *::before,
  .story-page *::after{
    scroll-behavior:auto !important;
    transition:none !important;
    animation:none !important;
    transform:none !important;
  }
}

/* =========================================================
   CART — fixed checkout summary at top
   ========================================================= */

.cart-summary-top {
  padding: 12px 20px 16px;
  background: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.cart-summary-top #shippingMessage {
  margin: 0 0 10px;
  font-size: .9rem;
}

.cart-summary-top .total-row {
  margin: 5px 0;
}

.cart-summary-top .cart-grand-total {
  font-size: 1.08em;
  padding-top: 9px;
  margin-top: 8px;
  border-top: 1px solid rgba(0,0,0,.1);
}

.cart-summary-top #checkoutButton {
  width: 100%;
  margin-top: 12px;
}
/* =========================================================
   CART — make the book list independently scrollable
   ========================================================= */

.cart-drawer {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cart-summary-top {
  flex-shrink: 0;
}

#cartItems {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 20px;
}

/* =========================================================
   FAQ PAGE — LITTLE STORYBOOK QUESTIONS
   ========================================================= */

.faq-page {
  min-height: 70vh;
  padding: clamp(60px, 8vw, 100px) clamp(20px, 6vw, 90px);
  background:
    radial-gradient(circle at 10% 15%, rgba(247, 189, 208, .22), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(119, 103, 201, .12), transparent 30%),
    var(--cream);
}

.faq-hero {
  max-width: 760px;
  margin: 0 auto clamp(42px, 6vw, 64px);
  text-align: center;
}

.faq-hero .eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}

.faq-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.faq-hero p:last-child {
  max-width: 580px;
  margin: 20px auto 0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  opacity: .72;
}


/* ---------------------------------------------------------
   FAQ LIST
   --------------------------------------------------------- */

.faq-list {
  width: min(850px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}


/* ---------------------------------------------------------
   FAQ CARD
   --------------------------------------------------------- */

.faq-card {
  position: relative;
  overflow: hidden;

  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 20px;

  box-shadow:
    0 8px 25px rgba(0,0,0,.045);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.faq-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 14px 32px rgba(0,0,0,.07);
}

.faq-card.open {
  background: rgba(255,255,255,.9);
}


/* ---------------------------------------------------------
   QUESTION
   --------------------------------------------------------- */

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;

  padding: 22px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  text-align: left;
  cursor: pointer;

  color: inherit;
  font: inherit;
}

.faq-question span:first-child {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 700;
  line-height: 1.4;
}

.faq-plus {
  flex: 0 0 auto;

  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: rgba(119,103,201,.1);

  font-size: 1.35rem;
  line-height: 1;
  font-weight: 400;

  transition:
    transform .3s ease,
    background .3s ease;
}

.faq-card.open .faq-plus {
  transform: rotate(45deg);
  background: rgba(119,103,201,.17);
}


/* ---------------------------------------------------------
   ANSWER
   --------------------------------------------------------- */

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;

  transition:
    grid-template-rows .35s ease;
}

.faq-answer p {
  overflow: hidden;

  margin: 0;
  padding: 0 24px;

  max-width: 720px;

  font-size: .98rem;
  line-height: 1.75;
  opacity: .72;

  transition:
    padding .35s ease;
}

.faq-card.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-card.open .faq-answer p {
  padding:
    0 24px
    24px;
}


/* ---------------------------------------------------------
   LOADING / ERROR
   --------------------------------------------------------- */

.faq-loading,
.faq-error {
  text-align: center;
  padding: 50px 20px;
  opacity: .65;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .faq-page {
    padding:
      52px 16px
      70px;
  }

  .faq-hero {
    margin-bottom: 32px;
  }

  .faq-hero h1 {
    font-size: 2.35rem;
  }

  .faq-question {
    padding: 18px 18px;
    gap: 12px;
  }

  .faq-question span:first-child {
    font-size: .98rem;
  }

  .faq-plus {
    width: 31px;
    height: 31px;
    font-size: 1.2rem;
  }

  .faq-card.open .faq-answer p {
    padding:
      0 18px
      20px;
  }

}

/* =========================================================
   SHIPPING & DELIVERY PAGE
   ========================================================= */

.shipping-page {
  min-height: 75vh;
  padding: clamp(60px, 9vw, 110px) clamp(20px, 6vw, 90px);

  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(247,189,208,.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 88% 78%,
      rgba(119,103,201,.12),
      transparent 30%
    ),
    var(--cream);

  color: var(--ink);
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.shipping-hero {
  max-width: 850px;
  margin: 0 auto;

  text-align: center;
}

.shipping-hero .eyebrow {
  display: inline-block;
  margin-bottom: 18px;
}

.shipping-hero h1 {
  margin: 0;

  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.shipping-hero > p {
  max-width: 600px;
  margin: 24px auto 0;

  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;

  opacity: .7;
}


/* ---------------------------------------------------------
   LARGE CONTENT CARD
   --------------------------------------------------------- */

.shipping-content {
  width: min(920px, 100%);

  /*
   * This intentionally creates a generous reading area.
   * Supabase supplies the actual content.
   */
  min-height: clamp(360px, 42vw, 560px);

  margin: clamp(50px, 7vw, 80px) auto 0;
  padding: clamp(35px, 6vw, 70px);

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: rgba(255,255,255,.72);

  border: 1px solid rgba(0,0,0,.07);
  border-radius: 28px;

  box-shadow:
    0 15px 45px rgba(0,0,0,.055);
}


/* ---------------------------------------------------------
   SUPABASE CONTENT
   --------------------------------------------------------- */

.shipping-content p {
  max-width: 760px;

  margin: 0 auto;

  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.9;

  opacity: .78;
}

.shipping-content p + p {
  margin-top: 28px;
}


/* ---------------------------------------------------------
   LOADING / ERROR
   --------------------------------------------------------- */

.shipping-loading,
.shipping-error {
  text-align: center;
  opacity: .55;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

  .shipping-page {
    padding:
      52px 16px
      70px;
  }

  .shipping-hero h1 {
    font-size: 2.5rem;
  }

  .shipping-content {
    min-height: 420px;

    padding:
      32px 22px;

    border-radius: 22px;
  }

  .shipping-content p {
    font-size: .98rem;
    line-height: 1.8;
  }

}

/* =========================================================
   MOBILE PERFORMANCE PATCH
   Keeps the site smooth on phones
   ========================================================= */

@media (max-width: 768px) {

  /* Reduce expensive visual effects */
  *,
  *::before,
  *::after {
    animation-duration: .2s !important;
    transition-duration: .2s !important;
  }

  /* Stop hover animations from doing unnecessary work */
  *:hover {
    transform: none;
  }

  /* Let the browser render scrolling more efficiently */
  html {
    scroll-behavior: auto !important;
  }

  body {
    -webkit-overflow-scrolling: touch;
  }

  /* Avoid expensive shadows on small screens */
  .faq-card,
  .shipping-content,
  .book-card,
  .bundle-card,
  .monthly-card,
  .story-card {
    box-shadow: none;
  }

  /* Keep FAQ accordion lightweight */
  .faq-answer {
    transition: max-height .2s ease !important;
  }

  /* Don't animate FAQ cards themselves */
  .faq-card {
    transition: background-color .2s ease !important;
  }

  .faq-card:hover {
    transform: none !important;
  }

  /* Prevent images from causing rendering surprises */
  img {
    content-visibility: auto;
  }
}
/* =========================================================
   ORDER CONFIRMATION — PLAYFUL STORYBOOK CARD
   ========================================================= */

.about-card:has(#confirmationOrderNumber) {
  position: relative;
  max-width: 820px !important;
  margin: 0 auto !important;
  padding: 58px 52px 48px !important;
  text-align: center;

  background:
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.75) 0 3px, transparent 4px),
    radial-gradient(circle at 92% 24%, rgba(255,255,255,.7) 0 3px, transparent 4px),
    linear-gradient(145deg, #e5f7f3, #cceee9);

  border: 1px solid rgba(255,255,255,.85);
  border-radius: 32px;

  box-shadow:
    0 22px 55px rgba(36,52,61,.10),
    inset 0 1px 0 rgba(255,255,255,.9);

  overflow: hidden;
}

/* Little decorative book-circle at the top */
.about-card:has(#confirmationOrderNumber)::before {
  content: "📖";
  position: absolute;

  top: -24px;
  left: 50%;
  transform: translateX(-50%);

  width: 72px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fff;
  border-radius: 50%;

  font-size: 31px;

  box-shadow:
    0 8px 24px rgba(36,52,61,.10);

  z-index: 2;
}

/* Decorative corner stars */
.about-card:has(#confirmationOrderNumber)::after {
  content: "✦                 ✧";
  position: absolute;

  top: 55px;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-between;

  padding: 0 42px;

  font-size: 28px;
  color: #e3ad35;

  pointer-events: none;
}

/* ---------------------------------------------------------
   ORDER NUMBER LABEL
   --------------------------------------------------------- */

.about-card:has(#confirmationOrderNumber) > p:first-child {
  position: relative;
  z-index: 1;

  margin: 8px 0 10px !important;

  font-size: 1rem;
  letter-spacing: .04em;
  color: #60757b;
}

/* ---------------------------------------------------------
   ORDER NUMBER ROW
   --------------------------------------------------------- */

.about-card:has(#confirmationOrderNumber)
  > div:nth-of-type(1) {

  position: relative;
  z-index: 1;

  display: flex !important;
  align-items: center;
  justify-content: center;

  gap: 14px !important;

  margin: 0 0 30px !important;
  padding: 0 10px;
}

/* Actual order number */

#confirmationOrderNumber {
  font-size: clamp(1.25rem, 4vw, 2rem) !important;
  line-height: 1.25;

  letter-spacing: .045em !important;

  color: #24343d;

  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   COPY BUTTON
   --------------------------------------------------------- */

.about-card:has(#confirmationOrderNumber) .tiny-button {
  flex-shrink: 0;

  min-height: 44px;
  padding: 9px 16px;

  border: 1.5px solid #39aaa5;
  border-radius: 12px;

  background: #fff;
  color: #24343d;

  font-weight: 800;

  box-shadow:
    0 5px 14px rgba(36,52,61,.08);

  cursor: pointer;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.about-card:has(#confirmationOrderNumber) .tiny-button:hover {
  transform: translateY(-2px);

  background: #f8ffff;

  box-shadow:
    0 9px 20px rgba(36,52,61,.13);
}

.about-card:has(#confirmationOrderNumber) .tiny-button:active {
  transform: translateY(0);
}

/* ---------------------------------------------------------
   LITTLE DIVIDER
   --------------------------------------------------------- */

.about-card:has(#confirmationOrderNumber)
  > div:nth-of-type(1)::after {

  content: "♥";

  position: absolute;

  left: 50%;
  bottom: -25px;

  transform: translateX(-50%);

  width: 180px;

  color: #35aaa6;
  font-size: 17px;
  letter-spacing: 72px;

  text-align: center;
}

/* ---------------------------------------------------------
   INFORMATION PANEL
   --------------------------------------------------------- */

.about-card:has(#confirmationOrderNumber)
  > div:last-child {

  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;

  min-height: 145px;

  margin-top: 38px !important;
  padding: 27px 34px !important;

  background: rgba(255,252,246,.96) !important;

  border: 1px solid rgba(255,255,255,.9);
  border-radius: 22px !important;

  box-shadow:
    0 10px 28px rgba(36,52,61,.07);
}

/* Fake book illustration */
.about-card:has(#confirmationOrderNumber)
  > div:last-child::before {

  content: "📚";

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 125px;
  height: 105px;

  font-size: 62px;

  border-right: 2px dashed #bfe4df;
}

/* Text side */
.about-card:has(#confirmationOrderNumber)
  > div:last-child strong {

  display: block;

  margin-bottom: 9px;

  font-size: 1.12rem;
  line-height: 1.35;

  color: #24343d;
}

.about-card:has(#confirmationOrderNumber)
  > div:last-child p {

  margin: 0 !important;

  font-size: .98rem;
  line-height: 1.6;

  color: #617078;
}

/* Track your order link */

.about-card:has(#confirmationOrderNumber) a {
  color: #7435a8;
  font-weight: 800;

  text-underline-offset: 3px;

  transition: opacity .15s ease;
}

.about-card:has(#confirmationOrderNumber) a:hover {
  opacity: .75;
}

/* ---------------------------------------------------------
   EXTRA LITTLE DECORATIONS
   --------------------------------------------------------- */

.about-card:has(#confirmationOrderNumber) {
  isolation: isolate;
}

.about-card:has(#confirmationOrderNumber) .tiny-button::before {
  content: "⧉";
  margin-right: 5px;
  font-size: .9em;
}

/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

  .about-card:has(#confirmationOrderNumber) {
    padding: 48px 18px 28px !important;
    border-radius: 24px;
  }

  .about-card:has(#confirmationOrderNumber)::after {
    padding: 0 18px;
    font-size: 22px;
  }

  .about-card:has(#confirmationOrderNumber)
    > div:nth-of-type(1) {

    flex-direction: column;
    gap: 10px !important;
  }

  #confirmationOrderNumber {
    font-size: 1.12rem !important;
    max-width: 100%;
  }

  .about-card:has(#confirmationOrderNumber) .tiny-button {
    min-height: 42px;
  }

  .about-card:has(#confirmationOrderNumber)
    > div:last-child {

    flex-direction: column;
    gap: 15px;

    padding: 23px 18px !important;

    text-align: center;
  }

  .about-card:has(#confirmationOrderNumber)
    > div:last-child::before {

    flex: none;

    width: 100%;
    height: auto;

    padding-bottom: 12px;

    border-right: 0;
    border-bottom: 2px dashed #bfe4df;
  }
}

/* =========================================================
   TRACK YOUR ORDER
   ========================================================= */

.track-order-card {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
}

.track-order-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f7f3eb;
  font-size: 1.7rem;
}

.track-order-card h2 {
  margin-bottom: 8px;
}

.track-order-card form {
  margin-top: 28px;
  text-align: left;
}

.track-order-card label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.track-order-card input {
  width: 100%;
  margin-bottom: 18px;
}

.track-order-button {
  width: 100%;
  margin-top: 4px;
}

.track-order-button:disabled {
  opacity: .6;
  cursor: wait;
}

.track-order-result {
  max-width: 720px;
  margin: 34px auto 0;
}

.tracked-order-card {
  background: #fff;
  border-radius: 22px;
  padding: clamp(22px, 5vw, 36px);
  box-shadow: 0 12px 35px rgba(30, 40, 45, .08);
}

.tracked-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e3d9;
}

.tracked-order-header h2 {
  margin: 5px 0 0;
}

.tracked-order-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f1e7;
  color: #426344;
  font-size: .82rem;
  font-weight: 800;
}

.tracked-order-number {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 22px 0;
  padding: 15px 17px;
  border-radius: 14px;
  background: #f7f3eb;
}

.tracked-order-number span {
  font-size: .88rem;
  color: #687277;
}

.tracked-order-number strong {
  font-size: 1rem;
  letter-spacing: .04em;
}

.tracked-order-customer {
  margin-bottom: 26px;
}

.tracked-order-customer p {
  margin: 5px 0;
}

.tracked-order-section {
  border-top: 1px solid #e8e3d9;
  padding-top: 24px;
}

.tracked-order-section h3 {
  margin-bottom: 14px;
}

.tracked-order-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tracked-order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #eeeae2;
}

.tracked-order-item:last-child {
  border-bottom: 0;
}

.tracked-order-quantity {
  color: #687277;
  margin-left: 5px;
}

.tracked-order-total {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e8e3d9;
}

.tracked-order-total > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 7px 0;
  color: #687277;
}

.tracked-order-grand-total {
  margin-top: 12px !important;
  padding-top: 13px;
  border-top: 1px solid #e8e3d9;
  color: #24343d !important;
  font-size: 1.08rem;
}

.tracked-order-message {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  background: #f7f3eb;
}

.tracked-order-message-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #fff;
  font-size: 1.15rem;
}

.tracked-order-message h3 {
  margin: 2px 0 7px;
}

.tracked-order-message p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.tracked-order-message p:last-child {
  margin-bottom: 0;
}

@media (max-width: 600px) {

  .track-order-card {
    padding: 24px 18px;
  }

  .tracked-order-card {
    padding: 22px 17px;
    border-radius: 18px;
  }

  .tracked-order-item {
    align-items: flex-start;
  }

  .tracked-order-number {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracked-order-message {
    padding: 17px;
  }

}
/* Track Your Order — primary button */

.track-order-button {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  padding: 14px 22px;

  background: var(--ink);
  color: #fff;

  font: 700 1rem "DM Sans", sans-serif;
  letter-spacing: .01em;

  cursor: pointer;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

.track-order-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 49, 56, .16);
}

.track-order-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.track-order-button:focus-visible {
  outline: 3px solid rgba(37, 49, 56, .22);
  outline-offset: 3px;
}

.track-order-button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
/* =========================================================
   CART HEADER — MOBILE TAP FIX
   ========================================================= */

#cartDrawer {
  isolation: isolate;
}

#cartDrawer .drawer-head {
  position: relative !important;
  z-index: 100 !important;
  flex: 0 0 auto;
  background: #fffdf9;
}

#cartDrawer .drawer-head .close {
  position: relative !important;
  z-index: 101 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;

  width: 52px !important;
  height: 52px !important;

  margin: -10px -10px -10px 0 !important;
  padding: 0 !important;

  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer;
}

#cartDrawer .cart-summary-top {
  position: relative !important;
  z-index: 1 !important;
}
/* =========================================================
   CART — ENSURE CLOSED STATE IS ALWAYS OFF-SCREEN
   ========================================================= */

#cartDrawer:not(.open) {
  transform: translate3d(110%, 0, 0) !important;
  visibility: hidden;
  pointer-events: none;
}

#cartDrawer.open {
  transform: translate3d(0, 0, 0) !important;
  visibility: visible;
  pointer-events: auto;
}

#overlay:not(.show) {
  opacity: 0;
  pointer-events: none;
}

#overlay.show {
  opacity: 1;
  pointer-events: auto;
}
/* =========================================================
   CART — COMPACT REMOVE BUTTON
   ========================================================= */

.cart-line{
  position:relative;
}

.cart-remove{
  position:static !important;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-left:10px;
  padding:4px 8px;

  width:auto !important;
  height:auto !important;

  border:1px solid #e5c5bc;
  border-radius:6px;

  background:#fffaf7;
  color:#a65343;

  font-family:inherit;
  font-size:.62rem;
  font-weight:600;
  line-height:1;

  cursor:pointer;

  vertical-align:middle;

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease;
}

.cart-remove:hover{
  background:#fff0ea;
  border-color:#d9a397;
  color:#963f30;
}

.cart-remove:active{
  transform:scale(.96);
}

@media(max-width:600px){
  .cart-remove{
    margin-left:8px;
    padding:4px 7px;
    font-size:.6rem;
  }
}
/* =========================================================
   CART — TINY TRASH BUTTON
   ========================================================= */

.cart-remove{
  position:static !important;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  margin-left:10px;
  padding:5px;

  width:30px !important;
  height:30px !important;

  border:1px solid #e5c5bc;
  border-radius:7px;

  background:#fffaf7;
  color:#a65343;

  cursor:pointer;

  vertical-align:middle;

  transition:
    background .18s ease,
    border-color .18s ease,
    color .18s ease,
    transform .18s ease;
}

/* Trash can body */
.trash-icon{
  position:relative;
  display:block;

  width:10px;
  height:12px;

  border:1.6px solid currentColor;
  border-top:none;
  border-radius:0 0 2px 2px;
}

/* Trash can lid */
.trash-icon::before{
  content:"";

  position:absolute;

  width:13px;
  height:2px;

  left:50%;
  top:-4px;

  transform:translateX(-50%);

  background:currentColor;
  border-radius:2px;
}

/* Tiny handle */
.trash-icon::after{
  content:"";

  position:absolute;

  width:5px;
  height:2px;

  left:50%;
  top:-7px;

  transform:translateX(-50%);

  border:1.4px solid currentColor;
  border-bottom:none;

  border-radius:2px 2px 0 0;
}

.cart-remove:hover{
  background:#fff0ea;
  border-color:#d9a397;
  color:#963f30;
  transform:translateY(-1px);
}

.cart-remove:active{
  transform:scale(.92);
}

.cart-remove:focus-visible{
  outline:2px solid #b85c4a;
  outline-offset:2px;
}

@media(max-width:600px){

  .cart-remove{
    margin-left:8px;
    width:28px !important;
    height:28px !important;
    padding:4px;
  }

}

/* =========================================================
   TINYTOTBOOKS MANAGER
   ========================================================= */

.manager-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  background: #eee8dc;
  border-radius: 14px;
  width: fit-content;
}

.manager-tab {
  background: transparent;
  color: #687277;
  padding: 10px 18px;
  border-radius: 10px;
  transition:
    background .2s ease,
    color .2s ease,
    transform .15s ease;
}

.manager-tab:hover {
  transform: translateY(-1px);
}

.manager-tab.active {
  background: #24343d;
  color: #fff;
}

#managerScreen {
  animation: managerFadeIn .35s ease both;
}

#managerScreen .card {
  animation: managerCardIn .35s ease both;
}

#managerScreen .card:nth-child(2) {
  animation-delay: .04s;
}

#managerScreen .card:nth-child(3) {
  animation-delay: .08s;
}

#managerScreen .card:nth-child(4) {
  animation-delay: .12s;
}

/* Manager login */

#loginScreen {
  animation: managerFadeIn .4s ease both;
}

#loginScreen button {
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

#loginScreen button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(36, 52, 61, .14);
}

#loginScreen button:active {
  transform: translateY(0);
}

/* Inputs */

#managerScreen input,
#managerScreen select,
#managerScreen textarea,
#loginScreen input {
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

#managerScreen input:focus,
#managerScreen select:focus,
#managerScreen textarea:focus,
#loginScreen input:focus {
  outline: none;
  border-color: #24343d;
  box-shadow: 0 0 0 3px rgba(36, 52, 61, .08);
}

/* Upload area */

#managerScreen .upload-area {
  transition:
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}

#managerScreen .upload-area:hover {
  border-color: #24343d;
  background: #fcfbf8;
}

/* Image cards */

#managerScreen .image-card {
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

#managerScreen .image-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(30, 40, 45, .10);
}

#managerScreen .image-card img {
  transition: transform .25s ease;
}

#managerScreen .image-card:hover img {
  transform: scale(1.015);
}

/* Main cover */

#managerScreen .image-card.cover-image {
  box-shadow: 0 0 0 1px rgba(226, 165, 29, .08);
}

/* Manager buttons */

#managerScreen button {
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    opacity .16s ease;
}

#managerScreen button:hover {
  transform: translateY(-1px);
}

#managerScreen button:active {
  transform: translateY(0);
}

#managerScreen .danger:hover {
  box-shadow: 0 5px 14px rgba(141, 34, 34, .10);
}

/* Orders */

#ordersList > article {
  animation: managerCardIn .3s ease both;
}

#ordersList > article:hover {
  box-shadow: 0 12px 34px rgba(30, 40, 45, .11);
}

#ordersList hr {
  opacity: .7;
}

/* Status */

#managerScreen .status {
  transition: opacity .2s ease;
}

/* Manager animations */

@keyframes managerFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes managerCardIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   CHECKOUT
   ========================================================= */

#checkoutDialog {
  width: min(720px, calc(100vw - 24px));
  max-width: 720px;
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(25, 35, 40, .22);
  animation: checkoutDialogIn .3s ease both;
}

#checkoutDialog::backdrop {
  background: rgba(20, 29, 34, .42);
  backdrop-filter: blur(4px);
}

#checkoutDialog .dialog-head {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 20px 24px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}

#checkoutDialog .checkout-form,
#checkoutDialog > .muted,
#checkoutDialog > .form-notice {
  margin-left: 24px;
  margin-right: 24px;
}

#checkoutDialog > .muted {
  margin-top: 18px;
}

/* Checkout sections */

.checkout-section {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #e8e3da;
  border-radius: 17px;
  background: #fcfbf8;
  animation: checkoutSectionIn .35s ease both;
}

.checkout-section:nth-of-type(2) {
  animation-delay: .04s;
}

.checkout-section:nth-of-type(3) {
  animation-delay: .08s;
}

.checkout-section-head {
  margin-bottom: 17px;
}

.checkout-section-head .eyebrow {
  display: block;
  margin-bottom: 5px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .65;
}

.checkout-section-head h3 {
  margin: 0;
  font-size: 1.15rem;
}

/* Form fields */

.checkout-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
}

.checkout-form input {
  display: block;
  width: 100%;
  margin-top: 7px;
  margin-bottom: 0;
  padding: 13px 14px;
  border: 1px solid #d5d8d6;
  border-radius: 11px;
  background: #fff;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.checkout-form input:hover {
  border-color: #aeb7b5;
}

.checkout-form input:focus {
  outline: none;
  border-color: #24343d;
  box-shadow: 0 0 0 3px rgba(36, 52, 61, .08);
  transform: translateY(-1px);
}

/* Address */

.checkout-address-note {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 13px;
  background: #f1eee6;
}

.checkout-address-note p {
  margin: 7px 0 12px;
  line-height: 1.55;
}

.checkout-address-example {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(36, 52, 61, .10);
  font-size: .88rem;
  line-height: 1.5;
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
}

/* Coupon */

.checkout-coupon-row {
  display: flex;
  gap: 9px;
  align-items: stretch;
}

.checkout-coupon-row input {
  flex: 1;
  min-width: 0;
}

.checkout-coupon-row button {
  flex: 0 0 auto;
  white-space: nowrap;
  margin-top: 7px;
  margin-bottom: 0;
}

#checkoutCouponMessage {
  min-height: 22px;
  margin-top: 9px;
  transition:
    opacity .2s ease,
    transform .2s ease;
}

/* Payment */

.payment-box {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #dfe7e4;
  border-radius: 14px;
  background: #f5f8f6;
  animation: checkoutSectionIn .4s ease both;
}

.payment-box > span {
  font-size: 1.35rem;
}

.payment-box b {
  display: block;
  margin-bottom: 3px;
}

.payment-box p {
  margin: 0;
  color: #687277;
  font-size: .9rem;
  line-height: 1.45;
}

/* Privacy Policy acknowledgement */

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 18px;
  padding: 14px;
  border: 1px solid #dfe7e4;
  border-radius: 12px;
  background: #f8faf8;
}

.privacy-consent input[type="checkbox"] {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: #24343d;
  cursor: pointer;
}

.privacy-consent label {
  display: block;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.privacy-consent a {
  color: #24343d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-consent a:hover {
  opacity: 0.75;
}

/* Pay button */

#checkoutForm > button[type="submit"] {
  width: 100%;
  min-height: 52px;
  margin-bottom: 24px;
  font-size: 1rem;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    opacity .18s ease;
}

#checkoutForm > button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(36, 52, 61, .17);
}

#checkoutForm > button[type="submit"]:active {
  transform: translateY(0);
}

#checkoutForm > button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: none;
}
/* Close button */

#checkoutDialog .close {
  transition:
    transform .18s ease,
    background .18s ease;
}

#checkoutDialog .close:hover {
  transform: rotate(5deg);
}

/* Notice */

#checkoutNotice {
  min-height: 24px;
  padding-bottom: 20px;
}

/* Checkout animations */

@keyframes checkoutDialogIn {
  from {
    opacity: 0;
    transform: translateY(15px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes checkoutSectionIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================================================
   MOBILE CHECKOUT
   ========================================================= */

@media (max-width: 600px) {

  #checkoutDialog {
    width: calc(100vw - 12px);
    max-height: 94vh;
    border-radius: 18px;
  }

  #checkoutDialog .dialog-head {
    padding: 16px 18px;
  }

  #checkoutDialog .checkout-form,
  #checkoutDialog > .muted,
  #checkoutDialog > .form-notice {
    margin-left: 16px;
    margin-right: 16px;
  }

  .checkout-section {
    padding: 16px;
    margin: 17px 0;
    border-radius: 15px;
  }

  .checkout-field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .checkout-coupon-row {
    flex-direction: column;
  }

  .checkout-coupon-row button {
    width: 100%;
    margin-top: 8px;
  }

  .payment-box {
    padding: 14px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  #managerScreen,
  #managerScreen .card,
  #ordersList > article,
  #loginScreen,
  #checkoutDialog,
  .checkout-section,
  .payment-box {
    animation: none !important;
  }

  #managerScreen button,
  #managerScreen .image-card,
  #checkoutForm input,
  #checkoutForm button {
    transition: none !important;
  }
}
/* =========================================================
   TINYTOTBOOKS — CHECKOUT DIALOG FINAL FIX
   ========================================================= */

/* Force the native dialog itself to become the scroll container */

#checkoutDialog {
  position: fixed !important;

  top: 12px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  transform: translateX(-50%) !important;

  width: min(900px, calc(100vw - 24px)) !important;

  height: calc(100vh - 24px) !important;
  max-height: calc(100vh - 24px) !important;
  min-height: 0 !important;

  margin: 0 !important;

  padding: 0 !important;

  border: 0 !important;
  border-radius: 26px !important;

  overflow-y: scroll !important;
  overflow-x: hidden !important;

  overscroll-behavior: contain;

  box-sizing: border-box !important;

  background: #fff;

  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;

  scrollbar-color: #b9b1a7 transparent;
}


/* Chrome / Edge / Safari scrollbar */

#checkoutDialog::-webkit-scrollbar {
  width: 9px;
}

#checkoutDialog::-webkit-scrollbar-track {
  background: transparent;
}

#checkoutDialog::-webkit-scrollbar-thumb {
  background: #b9b1a7;
  border-radius: 999px;
}

#checkoutDialog::-webkit-scrollbar-thumb:hover {
  background: #91887d;
}


/* =========================================================
   HEADER
   ========================================================= */

#checkoutDialog .dialog-head {
  position: sticky !important;

  top: 0 !important;

  z-index: 100 !important;

  background: rgba(255, 255, 255, 0.96) !important;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   INTRO TEXT
   ========================================================= */

#checkoutDialog > .muted {
  padding-left: 30px;
  padding-right: 30px;
}


/* =========================================================
   CHECKOUT FORM
   ========================================================= */

#checkoutDialog #checkoutForm {
  display: block !important;

  width: 100% !important;

  min-height: 0 !important;

  overflow: visible !important;

  box-sizing: border-box;
}


/* =========================================================
   SECTIONS
   ========================================================= */

#checkoutDialog .checkout-section {

  margin: 28px 30px;

  padding: 26px;

  border: 1px solid #e4ded4;

  border-radius: 20px;

  background: #fcfbf8;

  box-sizing: border-box;
}


/* =========================================================
   ADDRESS
   ========================================================= */

#checkoutDialog .checkout-address-example {

  display: flex;

  flex-direction: column;

  gap: 6px;

  margin: 16px 0 22px;

  padding: 16px 18px;

  border-radius: 14px;

  background: #f3eee5;

  line-height: 1.5;
}


/* =========================================================
   TWO-COLUMN FIELDS
   ========================================================= */

#checkoutDialog .checkout-field-row {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 16px;
}


/* =========================================================
   COUPON
   ========================================================= */

#checkoutDialog .checkout-coupon-row {

  display: grid;

  grid-template-columns: 1fr auto;

  gap: 10px;

  align-items: start;
}


/* =========================================================
   PAYMENT
   ========================================================= */

#checkoutDialog .payment-box {

  margin: 28px 30px 20px;

  padding: 18px 20px;

  border-radius: 16px;

  background: #f3eee5;

  display: flex;

  align-items: flex-start;

  gap: 12px;

  box-sizing: border-box;
}


/* =========================================================
   PAY BUTTON
   ========================================================= */

#checkoutDialog #checkoutForm > .button {

  display: block;

  width: calc(100% - 60px);

  margin: 0 30px 30px;

  min-height: 52px;

  box-sizing: border-box;
}


/* =========================================================
   NOTICE
   ========================================================= */

#checkoutDialog #checkoutNotice {

  margin-left: 30px;

  margin-right: 30px;

  margin-bottom: 30px;
}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

#checkoutDialog input,
#checkoutDialog textarea,
#checkoutDialog select {

  box-sizing: border-box;

  max-width: 100%;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  #checkoutDialog {

    top: 6px !important;

    left: 6px !important;

    transform: none !important;

    width: calc(100vw - 12px) !important;

    height: calc(100vh - 12px) !important;

    max-height: calc(100vh - 12px) !important;

    border-radius: 20px !important;
  }


  #checkoutDialog > .muted {

    padding-left: 18px;

    padding-right: 18px;
  }


  #checkoutDialog .checkout-section {

    margin: 20px 12px;

    padding: 20px 17px;

    border-radius: 17px;
  }


  #checkoutDialog .checkout-field-row {

    grid-template-columns: 1fr;

    gap: 0;
  }


  #checkoutDialog .checkout-coupon-row {

    grid-template-columns: 1fr;

    gap: 10px;
  }


  #checkoutDialog .checkout-coupon-row button {

    width: 100%;
  }


  #checkoutDialog .payment-box {

    margin: 20px 12px;

    padding: 16px;
  }


  #checkoutDialog #checkoutForm > .button {

    width: calc(100% - 24px);

    margin-left: 12px;

    margin-right: 12px;

    margin-bottom: 20px;
  }


  #checkoutDialog #checkoutNotice {

    margin-left: 12px;

    margin-right: 12px;
  }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 420px) {

  #checkoutDialog {

    top: 0 !important;

    left: 0 !important;

    width: 100vw !important;

    height: 100vh !important;

    max-height: 100vh !important;

    border-radius: 0 !important;
  }

}


/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes checkoutOpen {

  from {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }

}


#checkoutDialog[open] {
  animation: checkoutOpen .22s ease-out;
}


/* =========================================================
   MOBILE ANIMATION
   ========================================================= */

@media (max-width: 700px) {

  #checkoutDialog[open] {
    animation: checkoutMobileOpen .22s ease-out;
  }

}


@keyframes checkoutMobileOpen {

  from {
    opacity: 0;
    transform: translateY(18px) scale(.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  #checkoutDialog[open] {
    animation: none !important;
  }

}

/* =========================================================
   CHECKOUT — SURGICAL ALIGNMENT FIX
   This overrides the previous checkout styling.
========================================================= */

/* THE MODAL */
#checkoutDialog {
  position: fixed !important;

  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  transform: translate(-50%, -50%) !important;

  width: min(900px, calc(100vw - 24px)) !important;
  max-width: 900px !important;

  max-height: calc(100vh - 24px) !important;

  margin: 0 !important;
  padding: 0 !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  box-sizing: border-box !important;
}


/* =========================================================
   HEADER
========================================================= */

#checkoutDialog > .dialog-head {
  width: 100% !important;

  margin: 0 !important;
  padding: 24px 30px !important;

  box-sizing: border-box !important;
}


/* =========================================================
   INTRO TEXT
========================================================= */

#checkoutDialog > p.muted {
  width: calc(100% - 60px) !important;

  margin: 22px 30px 0 !important;

  box-sizing: border-box !important;
}


/* =========================================================
   THE ACTUAL CHECKOUT FORM
   THIS IS THE IMPORTANT PART.
========================================================= */

#checkoutDialog #checkoutForm {
  display: block !important;

  width: calc(100% - 60px) !important;
  max-width: none !important;

  margin: 24px 30px 40px !important;
  padding: 0 !important;

  box-sizing: border-box !important;
}


/* Every section uses the EXACT same width */
#checkoutDialog #checkoutForm > .checkout-section {
  width: 100% !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  box-sizing: border-box !important;
}


/* =========================================================
   INPUTS
========================================================= */

#checkoutDialog #checkoutForm input,
#checkoutDialog #checkoutForm textarea,
#checkoutDialog #checkoutForm select {
  width: 100% !important;

  box-sizing: border-box !important;
}


/* =========================================================
   ADDRESS ROW
========================================================= */

#checkoutDialog #checkoutForm .checkout-field-row {
  width: 100% !important;

  margin: 0 !important;

  box-sizing: border-box !important;
}


/* =========================================================
   COUPON
========================================================= */

#checkoutDialog #checkoutForm .checkout-coupon-row {
  width: 100% !important;

  margin: 0 !important;

  box-sizing: border-box !important;
}


/* =========================================================
   PAYMENT
========================================================= */

#checkoutDialog #checkoutForm .payment-box {
  width: 100% !important;

  box-sizing: border-box !important;
}


/* =========================================================
   PAY BUTTON
========================================================= */

#checkoutDialog #checkoutForm > button[type="submit"] {
  width: 100% !important;

  box-sizing: border-box !important;
}


/* =========================================================
   NOTICE
========================================================= */

#checkoutDialog > #checkoutNotice {
  width: calc(100% - 60px) !important;

  margin: -20px 30px 30px !important;

  box-sizing: border-box !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  #checkoutDialog {
    width: calc(100vw - 16px) !important;
    max-width: none !important;

    max-height: calc(100vh - 16px) !important;

    border-radius: 20px !important;
  }


  #checkoutDialog > .dialog-head {
    padding: 18px 20px !important;
  }


  #checkoutDialog > p.muted {
    width: calc(100% - 32px) !important;

    margin: 17px 16px 0 !important;
  }


  #checkoutDialog #checkoutForm {
    width: calc(100% - 32px) !important;

    margin: 20px 16px 28px !important;
  }


  #checkoutDialog > #checkoutNotice {
    width: calc(100% - 32px) !important;

    margin-left: 16px !important;
    margin-right: 16px !important;
  }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 400px) {

  #checkoutDialog {
    width: calc(100vw - 10px) !important;
    max-height: calc(100vh - 10px) !important;
  }

  #checkoutDialog #checkoutForm {
    width: calc(100% - 24px) !important;

    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  #checkoutDialog > p.muted {
    width: calc(100% - 24px) !important;

    margin-left: 12px !important;
    margin-right: 12px !important;
  }

  #checkoutDialog > #checkoutNotice {
    width: calc(100% - 24px) !important;

    margin-left: 12px !important;
    margin-right: 12px !important;
  }
}

/* =========================================================
   TINYTOTBOOKS — OFFERS PAGE FINAL POLISH
   Paste at the VERY BOTTOM of styles.css
   ========================================================= */


/* ---------------------------------------------------------
   WHOLE OFFERS PAGE
   --------------------------------------------------------- */

.offers-page {
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
  padding-top: 70px;
  padding-bottom: 100px;
}


/* ---------------------------------------------------------
   MAIN PAGE INTRO
   Offers & Coupons
   Little treats...
   Discover...
   --------------------------------------------------------- */

.offers-page > .page-head {
  width: min(100%, 850px);
  margin: 0 auto 55px;

  text-align: center;
}


/* small eyebrow */

.offers-page > .page-head .eyebrow {
  display: block;

  margin: 0 0 14px;

  text-align: center;

  font-size: 0.78rem;
  letter-spacing: 0.14em;
}


/* main heading */

.offers-page > .page-head h1 {
  max-width: 800px;

  margin: 0 auto 18px;

  text-align: center;

  font-size: clamp(2.7rem, 5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}


/* intro paragraph */

.offers-page > .page-head p {
  max-width: 650px;

  margin: 0 auto;

  text-align: center;

  font-size: 1.05rem;
  line-height: 1.65;

  color: #687277;
}


/* ---------------------------------------------------------
   INFORMATION CARDS
   Current offers + Coupon rules
   --------------------------------------------------------- */

.offers-page > .offers-info-card {
  width: min(100%, 880px);

  margin-left: auto;
  margin-right: auto;

  padding: 28px 36px;

  text-align: center;

  background: #f7f3eb;

  border: 1px solid #e5ddd0;
  border-radius: 24px;

  box-shadow: none;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}


.offers-page > .offers-info-card:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px rgba(36, 52, 61, 0.06);
}


/* Current offers card */

.offers-page > .offers-info-card:first-of-type {
  margin-bottom: 72px;
}


/* Coupon rules card */

.offers-page > .offers-info-card:last-of-type {
  margin-top: 78px;
}


/* info card eyebrow */

.offers-page > .offers-info-card .eyebrow {
  display: block;

  margin: 0 0 11px;

  text-align: center;

  font-size: 0.76rem;
  letter-spacing: 0.14em;
}


/* info card text */

.offers-page > .offers-info-card p {
  max-width: 760px;

  margin: 0 auto;

  text-align: center;

  line-height: 1.65;
  color: #52636b;
}


/* ---------------------------------------------------------
   COUPON SECTION
   --------------------------------------------------------- */

.offers-coupons-section {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 0 auto;
}


/* ---------------------------------------------------------
   COUPON SECTION HEADING
   --------------------------------------------------------- */

.offers-coupons-section .section-head {
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 0 0 40px;

  text-align: center;
}


/* CURRENT COUPONS */

.offers-coupons-section .section-head .eyebrow {
  display: block;

  margin: 0 0 13px;

  text-align: center;

  font-size: 0.76rem;
  letter-spacing: 0.14em;
}


/* SAVE A LITTLE EXTRA */

.offers-coupons-section .section-head h2 {
  width: 100%;
  max-width: 800px;

  margin: 0 auto;

  text-align: center;

  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: -0.05em;

  color: #24343d;
}


/* ---------------------------------------------------------
   COUPON GRID
   --------------------------------------------------------- */

#offersCouponList {
  width: min(100%, 900px);

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 24px;

  margin: 0 auto;
}


/* ---------------------------------------------------------
   COUPON CARD
   --------------------------------------------------------- */

#offersCouponList .coupon-card {
  position: relative;

  min-height: 315px;

  padding: 30px 30px 27px;

  display: flex;
  flex-direction: column;

  background: #ffffff;

  border: 1px solid #e1e3e1;
  border-top: 4px solid #24343d;

  border-radius: 22px;

  box-shadow:
    0 12px 32px rgba(36, 52, 61, 0.07);

  animation: offersCouponAppear 500ms ease both;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}


#offersCouponList .coupon-card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 18px 42px rgba(36, 52, 61, 0.11);
}


/* stagger animation */

#offersCouponList .coupon-card:nth-child(2) {
  animation-delay: 80ms;
}

#offersCouponList .coupon-card:nth-child(3) {
  animation-delay: 160ms;
}

#offersCouponList .coupon-card:nth-child(4) {
  animation-delay: 240ms;
}


/* ---------------------------------------------------------
   CARD TOP
   --------------------------------------------------------- */

#offersCouponList .coupon-card-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 27px;
}


/* coupon eyebrow */

#offersCouponList .coupon-card-top .eyebrow {
  margin: 0;

  font-size: 0.75rem;
  letter-spacing: 0.14em;
}


/* discount pill */

#offersCouponList .coupon-discount {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 8px 14px;

  background: #f5ead6;

  border-radius: 999px;

  color: #24343d;

  font-size: 0.78rem;
  font-weight: 800;

  white-space: nowrap;
}


/* ---------------------------------------------------------
   CARD TITLE
   --------------------------------------------------------- */

#offersCouponList .coupon-card h3 {
  margin: 0 0 10px;

  color: #24343d;

  font-size: 1.45rem;
  line-height: 1.2;
}


/* description */

#offersCouponList .coupon-card > p {
  margin: 0 0 22px;

  color: #687277;

  line-height: 1.55;
}


/* ---------------------------------------------------------
   COUPON CODE
   CLEAN — NO STRIPES
   --------------------------------------------------------- */

#offersCouponList .coupon-code {
  width: 100%;

  margin-top: auto;
  margin-bottom: 17px;

  padding: 17px 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background: #f7f3eb;

  border: 1px solid #ded6c8;
  border-radius: 13px;

  color: #24343d;

  font-family:
    "Courier New",
    Courier,
    monospace;

  font-size: 1.08rem;
  font-weight: 800;

  letter-spacing: 0.17em;

  overflow-wrap: anywhere;

  transition:
    background 180ms ease,
    border-color 180ms ease;
}


#offersCouponList .coupon-card:hover .coupon-code {
  background: #f3ecdf;

  border-color: #cfc4b4;
}


/* minimum order */

#offersCouponList .coupon-card small {
  display: block;

  margin: 0;

  color: #687277;

  font-size: 0.84rem;
}


/* ---------------------------------------------------------
   RULES CARD
   EXTRA BREATHING ROOM
   --------------------------------------------------------- */

.offers-page > .offers-coupons-section
+ .offers-info-card {
  margin-top: 82px;
}


/* ---------------------------------------------------------
   ANIMATION
   --------------------------------------------------------- */

@keyframes offersCouponAppear {

  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 700px) {

  .offers-page {
    width: min(100% - 24px, 600px);

    padding-top: 45px;
    padding-bottom: 65px;
  }


  /* main intro */

  .offers-page > .page-head {
    margin-bottom: 42px;
  }


  .offers-page > .page-head h1 {
    font-size: clamp(2.35rem, 10vw, 3.4rem);

    line-height: 1.03;
  }


  .offers-page > .page-head p {
    font-size: 0.98rem;
  }


  /* current offers */

  .offers-page > .offers-info-card {
    padding: 25px 20px;

    border-radius: 20px;
  }


  .offers-page > .offers-info-card:first-of-type {
    margin-bottom: 58px;
  }


  /* coupon heading */

  .offers-coupons-section .section-head {
    margin-bottom: 30px;
  }


  .offers-coupons-section .section-head h2 {
    font-size: clamp(2.35rem, 10vw, 3.3rem);

    line-height: 1.02;
  }


  /* cards */

  #offersCouponList {
    width: 100%;

    grid-template-columns: 1fr;

    gap: 18px;
  }


  #offersCouponList .coupon-card {
    min-height: 0;

    padding: 26px 22px 24px;

    border-radius: 20px;
  }


  /* rules */

  .offers-page > .offers-info-card:last-of-type {
    margin-top: 62px;
  }

}


/* ---------------------------------------------------------
   SMALL PHONES
   --------------------------------------------------------- */

@media (max-width: 420px) {

  .offers-page {
    width: min(100% - 20px, 600px);
  }


  .offers-page > .page-head h1 {
    font-size: 2.45rem;
  }


  .offers-page > .page-head p {
    font-size: 0.94rem;
  }


  .offers-page > .offers-info-card {
    padding: 23px 18px;
  }


  #offersCouponList .coupon-card {
    padding: 24px 19px 22px;
  }


  #offersCouponList .coupon-card h3 {
    font-size: 1.3rem;
  }


  #offersCouponList .coupon-code {
    padding: 15px 12px;

    font-size: 0.98rem;
    letter-spacing: 0.13em;
  }

}


/* ---------------------------------------------------------
   REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  #offersCouponList .coupon-card {
    animation: none;
    transition: none;
  }

  #offersCouponList .coupon-card:hover {
    transform: none;
  }

}

/* =========================================================
   BUNDLE DETAILS OVERLAY
   ========================================================= */

.bundle-details-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(20, 29, 34, 0.55);

  backdrop-filter: blur(8px);

  animation: bundleOverlayIn 180ms ease both;
}


.bundle-details-modal {
  position: relative;

  width: min(100%, 1050px);
  max-height: min(88vh, 850px);

  overflow-y: auto;

  padding: 42px;

  background: #ffffff;

  border: 1px solid #e1e3e1;
  border-radius: 28px;

  box-shadow:
    0 30px 80px rgba(20, 29, 34, 0.20);

  animation: bundleModalIn 220ms ease both;
}


.bundle-details-close {
  position: absolute;

  top: 18px;
  right: 20px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  border-radius: 50%;

  background: #f4f1ea;

  color: #24343d;

  font-size: 1.6rem;
  line-height: 1;

  cursor: pointer;

  transition:
    background 160ms ease,
    transform 160ms ease;
}


.bundle-details-close:hover {
  background: #e9e3d8;
  transform: rotate(4deg);
}


.bundle-details-head {
  max-width: 720px;

  margin: 0 auto 32px;

  text-align: center;
}


.bundle-details-head .eyebrow {
  display: block;

  margin-bottom: 10px;

  font-size: 0.75rem;
  letter-spacing: 0.14em;
}


.bundle-details-head h2 {
  margin: 0 0 12px;

  color: #24343d;

  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}


.bundle-details-head p {
  margin: 0;

  color: #687277;

  line-height: 1.6;
}


.bundle-details-books {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}


.bundle-detail-book {
  width: 100%;

  padding: 0;

  overflow: hidden;

  text-align: left;

  background: #faf9f6;

  border: 1px solid #e2dfd8;
  border-radius: 18px;

  cursor: pointer;

  font: inherit;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}


.bundle-detail-book:hover {
  transform: translateY(-4px);

  border-color: #cfc8ba;

  box-shadow:
    0 12px 28px rgba(36, 52, 61, 0.10);
}


.bundle-detail-book img {
  display: block;

  width: 100%;
  aspect-ratio: 1 / 1.15;

  object-fit: cover;
}


.bundle-detail-book-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.15;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f1ede4;

  font-size: 3rem;
}


.bundle-detail-book-info {
  padding: 16px;
}


.bundle-detail-book-info h3 {
  margin: 0 0 7px;

  color: #24343d;

  font-size: 1rem;
  line-height: 1.25;
}


.bundle-detail-book-info span {
  color: #687277;

  font-size: 0.82rem;
}


/* ---------------------------------------------------------
   BUNDLE DETAILS ANIMATION
   --------------------------------------------------------- */

@keyframes bundleOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}


@keyframes bundleModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 800px) {

  .bundle-details-overlay {
    padding: 18px;
  }


  .bundle-details-modal {
    padding: 32px 22px;

    border-radius: 23px;
  }


  .bundle-details-books {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 14px;
  }

}


@media (max-width: 460px) {

  .bundle-details-overlay {
    padding: 10px;
  }


  .bundle-details-modal {
    max-height: 92vh;

    padding: 30px 15px 20px;

    border-radius: 20px;
  }


  .bundle-details-head {
    margin-bottom: 24px;
  }


  .bundle-details-head h2 {
    font-size: 2rem;
  }


  .bundle-details-books {
    grid-template-columns: 1fr 1fr;

    gap: 10px;
  }


  .bundle-detail-book-info {
    padding: 12px;
  }


  .bundle-detail-book-info h3 {
    font-size: 0.9rem;
  }

}

for sort 

.book-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 24px 0 40px;
}

.book-sort label {
  font-size: 14px;
  font-weight: 600;
}

.book-sort select {
  padding: 10px 38px 10px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  cursor: pointer;
  outline: none;
}

.book-sort select:focus {
  border-color: #222;
}

.book-grid {
  margin-top: 30px !important;
}

.offers-coupons-section {
  margin-top: 30px !important;
}

#offersRules {
  white-space: pre-line;
  margin: 0;
}

/* Book detail meta row */
.book-detail-meta-row{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:22px;
}

/* Rating / reviews pill */
.book-detail-rating{
  display:inline-flex;
  align-items:center;
  padding:7px 11px;
  border-radius:99px;
  background:#fff;
  border:1px solid var(--line);
  color:#9b6f00;
  font-size:.88rem;
}

/* YouTube button */
.book-detail-youtube{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:36px;
  padding:8px 13px;
  border-radius:99px;
  background:#ff0033;
  color:#fff;
  border:1px solid #ff0033;
  font-size:.84rem;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 5px 14px #ff003322;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.book-detail-youtube:hover{
  transform:translateY(-2px);
  background:#e6002f;
  box-shadow:0 8px 18px #ff003338;
}

/* Play icon */
.book-detail-youtube span{
  display:grid;
  place-items:center;
  width:19px;
  height:19px;
  border-radius:5px;
  background:#fff;
  color:#ff0033;
  font-size:.62rem;
  line-height:1;
  padding-left:1px;
}

/* Keyboard accessibility */
.book-detail-youtube:focus-visible{
  outline:3px solid #ff003355;
  outline-offset:3px;
}

/* Mobile */
@media(max-width:650px){
  .book-detail-meta-row{
    align-items:stretch;
  }

  .book-detail-youtube{
    flex:1 1 180px;
  }
}
.privacy-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
  color: var(--ink);
  line-height: 1.8;
}

.privacy-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}

.privacy-page h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.privacy-page p,
.privacy-page li {
  font-size: 1rem;
}

.privacy-page a {
  color: var(--orange);
}
/* Fix horizontal alignment of checkout payment elements */
#checkoutDialog .payment-box,
#checkoutDialog #paySecurelyButton {
  position: relative;
  left: -38px;
}