/* Self-hosted Google Fonts instead of the CDN. */

/* Lato 400 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lato 700 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Lato 900 */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-900-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-900-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins 600 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins 700 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins 800 */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/poppins-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --pippr-ink:     #564766;
  --pippr-action:  #3198B3;
  --pippr-accent:  #B65472;
  --pippr-warm:    #D29A5E;
  --pippr-soft:    #907EA1;
  --pippr-bg:      #FDF6F3;
  --pippr-card:    #FFFFFF;
  --pippr-line:    #221C2B;
  --pippr-blond:   #FEC97D;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Lato', sans-serif;

  --radius-card: 14px;
  --radius-btn:  999px;
  --border:      3px solid var(--pippr-line);
  --shadow-hard: 6px 6px 0 var(--pippr-line);
}

.pippr-after-hero {
  width: 100%;
  background: var(--pippr-ink);
  padding: 4rem 1.5rem;
  /* Overrides WordPress's default block gap margin. */
  margin-block: 0;
}
.pippr-after-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.pippr-after-hero__row {
  display: flex;
  align-items: center;
  gap: 3rem;
}
/* Image comes first in markup so mobile stacks it above the text. */
.pippr-after-hero__image {
  flex: 0 0 auto;
  width: 320px;
  aspect-ratio: 196.19 / 169.82;
  position: relative;
}
.pippr-after-hero__image img {
  display: block;
  width: 100%;
  height: auto;
}
.pippr-after-hero__image .pippr-after-hero__book {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  transform: translate(-50%, -50%);
}
/* Pencil overlaid on the book, rotated so the tip points into the page. The hover animation pivots from the tip. */
.pippr-after-hero__image .pippr-after-hero__pencil {
  position: absolute;
  width: 46%;
  height: auto;
  bottom: 15%;
  left: 20%;
  transform: rotate(180deg);
  transform-origin: 85% 10%;
  pointer-events: none;
}
@keyframes pippr-pencil-scribble {
  0%   { transform: rotate(180deg) translateX(0); }
  5%   { transform: rotate(176deg) translateX(-12px); }
  10%  { transform: rotate(172deg) translateX(-20px); }
  15%  { transform: rotate(182deg) translateX(4px); }
  20%  { transform: rotate(190deg) translateX(10px); }
  25%  { transform: rotate(178deg) translateX(-8px); }
  30%  { transform: rotate(168deg) translateX(-20px); }
  35%  { transform: rotate(184deg) translateX(6px); }
  40%  { transform: rotate(188deg) translateX(10px); }
  45%  { transform: rotate(170deg) translateX(-16px); }
  50%  { transform: rotate(174deg) translateX(-15px); }
  55%  { transform: rotate(190deg) translateX(8px); }
  60%  { transform: rotate(192deg) translateX(10px); }
  65%  { transform: rotate(172deg) translateX(-18px); }
  70%  { transform: rotate(170deg) translateX(-20px); }
  75%  { transform: rotate(186deg) translateX(6px); }
  80%  { transform: rotate(186deg) translateX(10px); }
  85%  { transform: rotate(174deg) translateX(-6px); }
  90%  { transform: rotate(176deg) translateX(-10px); }
  95%  { transform: rotate(182deg) translateX(2px); }
  100% { transform: rotate(180deg) translateX(0); }
}
/* Hover trigger covers the whole section, not just the illustration. */
.pippr-after-hero:hover .pippr-after-hero__pencil,
.pippr-after-hero__image.is-scribbling .pippr-after-hero__pencil {
  animation: pippr-pencil-scribble 2.93s steps(1, end) infinite;
}
.pippr-after-hero__text {
  flex: 1 1 auto;
}
.pippr-after-hero__text h2,
.pippr-after-hero__text p {
  color: var(--pippr-bg);
}

@media (max-width: 600px) {
  .pippr-after-hero__row {
    /* Reversed so the image lands after the text on mobile. */
    flex-direction: column-reverse;
    align-items: center;
  }
  .pippr-after-hero__image {
    width: 240px;
  }
  .pippr-after-hero__text {
    max-width: 85%;
  }
}

/* Reusable full-width content block. */
.pippr-content-block {
  width: 100%;
  padding: 4rem 1.5rem;
  text-align: center;
  margin-block: 0;
}
.page-id-8 main.has-bg-background-color {
  background-color: var(--pippr-accent) !important;
}
.page-id-8 .pippr-content-block {
  background: var(--pippr-accent);
}


@media (max-width: 600px) {
  .page-id-8 main.has-bg-background-color {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .page-id-8 .pippr-content-block {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

.page-id-11 main.wp-block-group {
  padding: 0 !important;
  background: none !important;
}
.page-id-11 #over-pippr-intro {
  padding-top: 6.5rem;
}
.page-id-31 main.has-bg-background-color {
  background-color: var(--pippr-warm) !important;
}
.page-id-31 .wp-block-post-title {
  color: var(--pippr-line) !important;
}
.page-id-30 main.has-bg-background-color {
  background-color: var(--pippr-warm) !important;
}
.page-id-30 .wp-block-post-title {
  color: var(--pippr-line) !important;
}
/* Sits directly on the goud background, so text color is set to match. */
.wp-block-woocommerce-empty-cart-block,
.wp-block-woocommerce-empty-cart-block * {
  color: var(--pippr-line) !important;
}
.wp-block-woocommerce-cart-items-block {
  background: var(--pippr-bg);
  border: 3px solid var(--pippr-line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pippr-line);
  padding: 2rem;
  box-sizing: border-box;
  /* Narrowed to leave room for the totals card's gap, so both cards fit side by side. */
  width: 58% !important;
}
.wp-block-woocommerce-cart-totals-block {
  background: var(--pippr-bg);
  border: 3px solid var(--pippr-line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pippr-line);
  padding: 2rem;
  box-sizing: border-box;
  margin-left: 2rem !important;
}
.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-wrapper {
  border-top: none !important;
}
.wp-block-woocommerce-proceed-to-checkout-block {
  margin-top: 1.5rem;
}

/* Stacks the cart columns earlier than WooCommerce's default breakpoint. */
@media screen and (max-width: 1024px) {
  .wp-block-woocommerce-filled-cart-block {
    flex-direction: column !important;
  }
  .wp-block-woocommerce-cart-items-block,
  .wp-block-woocommerce-cart-totals-block {
    width: 100% !important;
  }
  .wp-block-woocommerce-cart-items-block {
    margin-bottom: 24px !important;
  }
  /* Resets the desktop-only gap once stacked. */
  .wp-block-woocommerce-cart-totals-block {
    margin-left: 0 !important;
  }
}
/* Prevents long words from breaking mid-character. */
body.single-product .wp-block-post-title {
  font-size: 1.75rem;
  line-height: 1.2;
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 781px) {
  body.single-product .wp-block-post-title {
    /* Same size on mobile to prevent long titles from overflowing. */
    font-size: 1.75rem;
  }
}
/* Caps the image by height too, so tall covers fit the viewport. */
.woocommerce div.product div.images img {
  max-height: 70vh !important;
  width: auto !important;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
}
.pippr-order-confirmation-card {
  background: var(--pippr-bg);
  border: 3px solid var(--pippr-line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pippr-line);
  padding: 2rem;
  box-sizing: border-box;
}
/* Caps the cart/checkout width since theme.json defines no default wide size. */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  max-width: 1100px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.pippr-content-block__inner {
  max-width: 800px;
  margin: 0 auto;
}
.pippr-content-block__inner--wide {
  max-width: 1100px;
}
.pippr-content-block__inner--row {
  display: flex;
  align-items: center;
  gap: 3rem;
  text-align: left;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border: 3px solid var(--pippr-line);
  border-radius: var(--radius-btn);
  padding: 0.75rem 1.75rem;
  box-shadow: 4px 4px 0 var(--pippr-line);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}
.btn-primary:hover,
.btn-secondary:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}
.btn-primary {
  color: #000000;
  background: var(--pippr-action);
}
.btn-secondary {
  color: var(--pippr-bg);
  background: var(--pippr-ink);
}

.pippr-outline-btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--pippr-line);
  background: transparent;
  border: 3px solid var(--pippr-line);
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.pippr-outline-btn:hover {
  background: var(--pippr-line);
  color: var(--pippr-bg);
}

.pippr-product-grid {
  display: grid;
  /* Fixed column width keeps 3 cards centered instead of stretched. */
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (max-width: 782px) {
  .pippr-product-grid { grid-template-columns: 1fr; }
}
.pippr-product-card {
  padding: 1.25rem;
  /* Reserves room for the button, which is anchored to the card's bottom edge. */
  padding-bottom: 4.5rem;
  text-align: left;
  position: relative;
}
.pippr-product-card h3 { margin: 0 0 0.4rem; }
.pippr-product-card__title--long {
  font-size: 1.25rem;
  line-height: 1.25;
}
.pippr-product-card p { margin: 0 0 1rem; }
.pippr-product-card .btn-secondary {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
}
.pippr-product-card__thumb {
  border-radius: 10px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1rem;
}
.pippr-product-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pippr-product-card__thumb--warm   { background: #FEEED1; } /* warm crème */
.pippr-product-card__thumb--soft   { background: var(--pippr-soft); }
.pippr-product-card__thumb--action { background: var(--pippr-action); }

.pippr-cta-band {
  width: 100%;
  background: var(--pippr-action);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #000000;
  margin-block: 0;
}
.pippr-cta-band__inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.pippr-cta-band h2 { color: #000000; }

.pippr-content-block--over-pippr {
  background: var(--pippr-blond);
}
.pippr-content-block--over-pippr h1,
.pippr-content-block--over-pippr h2,
.pippr-content-block--over-pippr p {
  color: var(--pippr-ink);
}
.pippr-over-pippr__character {
  flex: 0 0 auto;
  width: 320px;
  height: auto;
}
.pippr-over-pippr__text { flex: 1 1 auto; }
@media (max-width: 600px) {
  .pippr-content-block__inner--row {
    flex-direction: column;
    text-align: center;
  }
  .pippr-over-pippr__character { width: 220px; }
}

.wp-block-button__link {
  box-shadow: 4px 4px 0 var(--pippr-line);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.wp-block-button__link:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.pippr-card {
  background: var(--pippr-card);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
}

.pippr-contact-card {
  background: var(--pippr-blond);
  max-width: 960px;
  margin: 2rem auto 0;
  padding: 2rem;
  text-align: left;
}
.pippr-contact-card h1,
.pippr-contact-card p,
.pippr-contact-card label,
.pippr-contact-card .ff_t_c {
  color: var(--pippr-line);
}
.pippr-contact-card a {
  color: var(--pippr-line);
}
.pippr-contact-card .error,
.pippr-contact-card .text-danger {
  /* Overrides Fluent Forms' default error color for better contrast. */
  color: var(--pippr-accent);
}
.pippr-contact-card .ff-el-form-control {
  background: var(--pippr-card);
  border: 2px solid var(--pippr-line);
  border-radius: 8px;
  width: 100%;
  /* Fluent Forms sets its own font on inputs; this restores the brand font. */
  font-family: var(--font-body);
}

/* Fien is pushed to the bottom of her cell via margin-top:auto below. */
.pippr-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 600px) {
  .pippr-contact-grid {
    grid-template-columns: 1fr;
  }
  /* Reduces the card's own padding on mobile to avoid double padding with the section. */
  .pippr-contact-card {
    padding: 1.25rem;
  }
}
.pippr-contact-grid__image {
  display: flex;
  flex-direction: column;
}
.pippr-contact-grid__image h1 {
  margin-bottom: 0.5rem;
}
.pippr-contact-grid__image p {
  margin-top: 0;
}
.pippr-contact-grid__image img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  /* Cancels the card's padding so the image reaches its bottom edge. */
  margin-bottom: -2rem;
}

.pippr-contact-card .ff-btn-submit {
  /* Overrides Fluent Forms' default button typography to match the brand spec. */
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  border: 3px solid var(--pippr-line);
  box-shadow: 4px 4px 0 var(--pippr-line);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  margin-top: 1rem;
}
.pippr-contact-card .ff-btn-submit:hover,
.pippr-contact-card .ff-btn-submit:focus,
.pippr-contact-card .ff-btn-submit:focus-visible,
.pippr-contact-card .ff-btn-submit:active {
  /* Overrides Fluent Forms' default gray hover state across its two stylesheets. */
  background-color: #564766;
  color: #FDF6F3;
  /* Beats Fluent Forms' own hover opacity rule. */
  opacity: 1 !important;
  outline: none;
  filter: none;
  transform: translate(2px, 2px);
  box-shadow: none;
}

.pippr-footer {
  background: var(--pippr-line);
  color: var(--pippr-bg);
  /* Overrides WordPress's default block gap margin. */
  margin-block-start: 0;
  /* Prevents the absolutely-positioned newsletter block from causing horizontal scroll. */
  overflow-x: hidden;
}

.pippr-footer__inner {
  position: relative;
}

.pippr-newsletter {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  box-sizing: border-box;
  position: absolute;
  /* Aligns the top of the newsletter block with the logo. */
  top: 3rem;
  right: 6rem;
  max-width: min(300px, calc(100vw - 3rem));
}

.pippr-newsletter fieldset {
  display: flex;
  align-items: center !important;
  gap: 0.5rem;
  width: auto !important;
  box-sizing: border-box;
}

/* Excludes the submit button, which shares this same base class. */
.pippr-newsletter .ff-el-group:not(.ff_submit_btn_wrapper) {
  flex: 0 0 auto !important;
  width: 190px !important;
  min-width: 0 !important;
  margin-top: 0;
  box-sizing: border-box;
}

.pippr-newsletter .ff-el-input--label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pippr-newsletter .ff-el-form-control {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--pippr-ink);
  background: var(--pippr-card);
  border: 3px solid var(--pippr-line);
  border-radius: 999px;
  padding: 0 1rem;
  height: 40px;
  min-height: 40px;
  width: 100%;
  box-sizing: border-box;
}

.pippr-newsletter .ff-el-form-control::placeholder {
  color: rgba(86, 71, 102, 0.55);
  font-family: 'Lato', sans-serif;
}

.pippr-newsletter .ff-el-form-control:focus {
  outline: 2px solid var(--pippr-action);
  outline-offset: 2px;
}

.pippr-newsletter .ff_submit_btn_wrapper {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  margin-top: 0;
  box-sizing: border-box;
}

.pippr-newsletter .ff-btn-submit {
  height: 40px;
  margin-top: 0;
  padding: 0 1.1rem;
  box-sizing: border-box;
  background-color: var(--pippr-action) !important;
  color: #000000 !important;
  border: 3px solid #000000;
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--pippr-line);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

.pippr-newsletter .ff-btn-submit:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* Not yet confirmed against a real submission. */
.pippr-newsletter .ff-message-success,
.pippr-newsletter .text-success {
  color: var(--pippr-bg);
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 400;
  text-align: right;
  padding: 0.5rem 0 0;
  margin-top: 0.4rem;
  background: none !important;
}

@media screen and (max-width: 1024px) {
  .pippr-newsletter {
    position: static;
    align-items: center;
    max-width: 100%;
    margin: 1.75rem 0 0;
  }
  .pippr-newsletter p {
    text-align: center !important;
  }
  .pippr-newsletter fieldset {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .pippr-newsletter .ff-el-group:not(.ff_submit_btn_wrapper) {
    width: 100% !important;
  }
  .pippr-newsletter .ff_submit_btn_wrapper {
    width: 100% !important;
  }
  .pippr-newsletter .ff-btn-submit {
    width: 100%;
  }
  .pippr-newsletter .ff-message-success,
  .pippr-newsletter .text-success {
    text-align: center;
  }
}

.pippr-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Sits above the product gallery zoom button, below the lightbox. */
  z-index: 100;
}

body.admin-bar .pippr-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .pippr-header {
    top: 46px;
  }
}

.pippr-header__logo-badge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  /* Removes WordPress's default gap between the logo and hamburger slot. */
  gap: 0;
  background: var(--pippr-bg);
  border-radius: 0 999px 999px 0;
  padding: 0 2.4rem 0 1.5rem;
}

.pippr-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s ease;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.pippr-header.is-scrolled::before {
  opacity: 1;
}

/* Pushes the footer to the bottom of the viewport on short pages. */
html, body {
  height: 100%;
}
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wp-site-blocks > main {
  margin-block-start: 0;
  flex: 1 0 auto;
}
/* Removes WordPress's default top margin on the product page wrapper. */
.wp-site-blocks > .woocommerce.product {
  margin-block-start: 0 !important;
}

.pippr-hero {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  padding-top: 6.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pippr-hero__wall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: var(--pippr-bg);
  /* Background image URL comes from an inline custom property, set per page. */
  background-image: var(--pippr-hero-wall-bg);
  background-size: cover;
  background-position: center;
}
@media (max-width: 782px) {
  .pippr-hero__wall {
    background-image: var(--pippr-hero-wall-bg-mobile);
  }
}

.pippr-hero__floating-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pippr-floating-dot {
  position: absolute;
  border-radius: 50%;
}

.pippr-floating-dot--action { background: var(--pippr-action); }
.pippr-floating-dot--accent { background: var(--pippr-accent); }
.pippr-floating-dot--warm   { background: var(--pippr-warm); }

.pippr-shop-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 2rem auto 0;
}
.pippr-shop-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--pippr-card);
  border: var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  padding: 1.25rem;
  text-align: left;
}
.pippr-shop-card__media {
  flex: 0 0 auto;
  display: block;
}
.pippr-shop-card__media img {
  display: block;
  width: 220px;
  height: 300px;
  object-fit: contain;
  border-radius: 10px;
}
.pippr-shop-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}
.pippr-shop-card__body h2 {
  margin: 0;
  font-size: 26px;
}
.pippr-shop-card__link {
  text-decoration: none;
  color: inherit;
}
.pippr-shop-card__excerpt {
  margin: 0;
  color: var(--pippr-ink);
}
.pippr-shop-card__price {
  margin-top: 2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
}
.pippr-shop-card__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}
@media (max-width: 600px) {
  .pippr-shop-card {
    flex-direction: column;
    align-items: stretch;
  }
  .pippr-shop-card__media img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .pippr-shop-card__actions {
    flex-direction: column-reverse;
    align-items: flex-start;
    align-self: flex-start;
  }
}

.pippr-product-hero {
  width: 100%;
  background: var(--pippr-ink);
  /* Top padding accounts for the fixed header. */
  padding: 9.5rem 2rem 3rem;
  text-align: center;
  margin-block: 0;
}
.pippr-product-hero h2 {
  color: var(--pippr-bg);
  font-size: var(--wp--preset--font-size--heading-1);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0;
  /* Prevents long words from breaking mid-character. */
  overflow-wrap: normal;
  word-break: normal;
}
@media (max-width: 782px) {
  .pippr-product-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .pippr-product-hero h2 {
    /* Smaller size on mobile to fit long product taglines. */
    font-size: 2rem;
  }
}

body.single-product .flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem !important;
  padding: 0 !important;
}
body.single-product .flex-control-thumbs li {
  width: 64px !important;
  float: none !important;
  margin: 0 !important;
  background: var(--pippr-card);
  border: var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-hard);
  padding: 4px;
  overflow: hidden;
}
body.single-product .flex-control-thumbs li img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 !important;
  cursor: pointer;
}

/* Fixed label width so all review form fields start at the same position. */
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label {
  display: inline-block;
  width: 150px;
  white-space: nowrap;
  vertical-align: top;
}
.pippr-review-field {
  position: relative;
  display: inline-block;
  max-width: 50%;
  vertical-align: top;
  margin-left: 0.25rem;
}
#comment {
  display: block;
  width: 100%;
  height: 6rem;
  resize: none;
}
.comment-form #author,
.comment-form #email {
  padding-left: 0.75rem;
  margin-left: 0.25rem;
}
.comment-form .form-submit {
  margin-top: 1.25rem !important;
}
.pippr-review-counter {
  position: absolute;
  right: 0.5rem;
  bottom: 0.4rem;
  font-size: 0.75rem;
  color: var(--pippr-soft);
  pointer-events: none;
}
.comment-form > *:not(.comment-notes) {
  padding-left: 50px;
}
@media (max-width: 600px) {
  .comment-form > *:not(.comment-notes) {
    padding-left: 0;
  }
}

.pippr-cart-btn {
  position: relative;
}
.pippr-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pippr-accent);
  color: #FFFFFF;
  border: 2px solid var(--pippr-line);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
/* Hides WooCommerce's default "View cart" link after adding to cart. */
.added_to_cart {
  display: none !important;
}

@media (max-width: 600px) {
  .pippr-hero__floating-dots {
    display: none;
  }
}

/* Orbit icons fade in and start orbiting once triggered by the Fien animation. */
@media (prefers-reduced-motion: no-preference) {
  .pippr-floating-dot { animation: pippr-float ease-in-out infinite alternate; }
}

@keyframes pippr-float {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-10px) rotate(8deg); }
}

/* Extends the mobile hamburger menu through tablet widths. */
@media (min-width: 600px) and (max-width: 1024px) {
  .pippr-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
  .pippr-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }
}

.pippr-header__inner {
  flex-wrap: nowrap !important;
  min-width: 360px;
}

/* Hamburger and logo share one background pill. Reserves space for the hamburger button. */
.pippr-header__hamburger-slot {
  display: none;
  flex: 0 0 auto;
  width: 0;
}
@media (max-width: 1024px) {
  .pippr-header__logo-badge {
    padding-left: 0;
  }
  .pippr-header__hamburger-slot {
    display: block;
    width: 3.25rem;
  }
  .pippr-header .wp-block-navigation {
    position: absolute;
    top: 0;
    left: 0.5rem;
    width: 2.75rem;
    height: 100%;
    z-index: 2;
  }
  .pippr-header .wp-block-navigation__responsive-container-open {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pippr-ink);
  }
  /* Replaces WordPress's default 2-bar icon with a 3-bar hamburger. */
  .pippr-header .wp-block-navigation__responsive-container-open svg {
    display: none;
  }
  .pippr-header .wp-block-navigation__responsive-container-open::before {
    content: "";
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 0 currentColor, 0 6px 0 0 currentColor;
  }

  .pippr-header .wp-block-navigation__responsive-container-close {
    left: 1.5rem;
    top: 1.5rem;
    right: auto;
  }
  .pippr-header .wp-block-navigation__responsive-container-content .wp-block-buttons {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1.5rem;
    /* Clears space below the close button. */
    padding-top: 5rem;
  }
  /* Overrides the navigation's alignment variable so mobile menu items align left. */
  .pippr-header .wp-block-navigation {
    --navigation-layout-justification-setting: flex-start !important;
  }
  .pippr-header .wp-block-navigation__responsive-container-content {
    align-items: flex-start;
  }
  /* Mobile menu opens as a partial panel instead of full screen. */
  .pippr-header .wp-block-navigation__responsive-container.is-menu-open {
    width: 75%;
    max-width: 360px;
    right: auto;
  }
}

/* Hides the shipping method step since there's no real choice to make. */
.wp-block-woocommerce-checkout-shipping-method-block {
  display: none;
}

/* Restores the top margin on the country field after moving it to the end. */
.wc-block-components-address-form .wc-block-components-country-input {
  margin-top: 16px !important;
}

.ff-message-success {
  border: none;
  box-shadow: none;
  padding: 0;
}

.single-product .wp-block-post-content ul {
  list-style: none;
  padding-left: 0;
}
.single-product .wp-block-post-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}
.single-product .wp-block-post-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.65em;
  height: 0.65em;
  background: var(--pippr-action);
}

.wp-block-woocommerce-checkout-fields-block {
  background: var(--pippr-bg);
  border: 3px solid var(--pippr-line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pippr-line);
  /* Overrides WooCommerce's mobile rule that would strip this padding. */
  padding: 2rem !important;
  box-sizing: border-box;
  /* Narrower than WooCommerce's default, leaving room for the totals card. */
  width: 58% !important;
}

.wp-block-woocommerce-checkout-totals-block {
  background: var(--pippr-bg);
  border: 3px solid var(--pippr-line);
  border-radius: 14px;
  box-shadow: 6px 6px 0 var(--pippr-line);
  padding: 2rem;
  box-sizing: border-box;
  margin-left: 2rem !important;
}

/* Removes WooCommerce's default divider lines between rows. */
.wp-block-woocommerce-checkout-totals-block .wc-block-components-totals-wrapper {
  border-top: none !important;
}

/* Removes the nested block's own border, since the outer card already has one. */
.wp-block-woocommerce-checkout-order-summary-block {
  border: none !important;
  border-radius: 0 !important;
}

.wp-block-woocommerce-checkout-additional-information-block {
  margin-top: 5rem !important;
  background: var(--pippr-blond) !important;
  border: 3px solid var(--pippr-line) !important;
  border-radius: 14px !important;
  overflow: visible !important;
  box-shadow: 6px 6px 0 var(--pippr-line);
  padding: 2.5rem 2rem 3rem 2.5rem !important;
  box-sizing: border-box;
  color: #000000 !important;
}
.wp-block-woocommerce-checkout-additional-information-block * {
  color: #000000 !important;
}

@media screen and (max-width: 600px) {
  .wp-block-woocommerce-checkout-additional-information-block {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
}

/* MailPoet's native checkout opt-in checkbox, styled as a nested card. */
#contact + .wc-block-components-checkbox {
  display: block !important;
  margin-top: 2rem !important;
  margin-bottom: 0 !important;
  background: var(--pippr-blond) !important;
  border: 3px solid var(--pippr-line) !important;
  border-radius: 14px !important;
  overflow: visible !important;
  box-shadow: 6px 6px 0 var(--pippr-line);
  padding: 1.5rem 1.75rem !important;
  box-sizing: border-box;
  color: #000000 !important;
}
/* CSS-generated heading above the checkbox, since MailPoet renders it with no room for real markup. */
#contact + .wc-block-components-checkbox::before {
  content: "Schrijf je in voor onze nieuwsbrief";
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #000000;
  margin-bottom: 0.85rem;
}
#contact + .wc-block-components-checkbox * {
  color: #000000 !important;
}
#contact + .wc-block-components-checkbox label {
  align-items: center;
  gap: 0.75rem;
}
#contact + .wc-block-components-checkbox .wc-block-components-checkbox__input {
  accent-color: var(--pippr-line);
}

.wc-block-components-checkout-place-order-button {
  width: auto !important;
  min-width: 260px;
  margin: 1.5rem auto 0;
  box-shadow: 4px 4px 0 var(--pippr-line);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.wc-block-components-checkout-place-order-button:hover {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* Fixes an asymmetric margin that overflowed the viewport on mobile. */
@media screen and (max-width: 699px) {
  .wc-block-checkout__sidebar {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Stacks the checkout columns earlier than WooCommerce's default breakpoint. */
@media screen and (max-width: 1024px) {
  .wc-block-components-sidebar-layout {
    flex-direction: column !important;
  }
  .wc-block-components-sidebar-layout .wc-block-components-main,
  .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    width: 100% !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  /* Resets the desktop-only left margin once stacked. */
  .wp-block-woocommerce-checkout-totals-block {
    margin-left: 0 !important;
  }
  /* Moves the order summary above the form on mobile. */
  .wc-block-checkout__sidebar {
    order: -1;
    margin-bottom: 24px;
  }
  /* Disables the sticky sidebar behavior once stacked. */
  .wc-block-checkout__sidebar.is-sticky {
    position: static !important;
    top: auto !important;
  }
}
