/* ==========================================================================
Hylla´s Cup n´ Cakes design system v2

Loaded on the whole site and in the block editor.
Token names match the design system on claude.ai. Change values there first.
========================================================================== */

/* Headings: Literata, variable weight 200–900 with optical sizes (opsz 7–72),
   so small and large headings each get a fitting cut. SIL OFL 1.1, licence next to the fonts. */
@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata/literata-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;
}

@font-face {
  font-family: Literata;
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata/literata-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Literata;
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata/literata-italic-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;
}

@font-face {
  font-family: Literata;
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('../fonts/literata/literata-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  src: url('../fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pink-100: #f6e7e6;
  --ink: #1f1a17;
  --ink-hover: #3a322d;
  --olive: #b7c3a1;
  --rose: #efc7cc;
  --white: #fff;
  --sand-50: #faf7f5;
  --sand-100: #f1ebe6;
  --sand-200: #e5ddd9;
  --taupe: #6b6662;
  --sage-50: #eef2ea;
  --sage-700: #5a6b4a;
  --text-lead: #4a4744;
  --text-body: #2e2b28;
  --link: #b75c63;
  --link-hover: #a0464e;
  --focus-ring: var(--link-hover);
  --danger-text: #c0392b;
  --font-display: Literata, Georgia, serif;
  --font-sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 6px rgb(0 0 0 / 6%);
  --shadow-md: 0 6px 16px rgb(0 0 0 / 8%);
  --shadow-lg: 0 12px 24px rgb(0 0 0 / 10%);
  --content-width: 1180px;
  --text-width: 720px;
  --gutter: 24px;
  --section: 80px;
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
    --section: 48px;
  }
}

/* Foundation
========================================================================== */
html,
body {
  overflow-x: clip;
}

body {
  background: var(--sand-50);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.entry-content p,
.entry-content li {
  font-family: var(--font-sans);
  font-size: inherit;
  line-height: 1.6;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
.entry-content h1.wp-block-heading,
.entry-content h2.wp-block-heading,
.entry-content h3.wp-block-heading {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-wrap: balance;
  /* 'auto' as on Google Fonts; the parent theme's 'antialiased' thins the hairlines on macOS */
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

h1,
.entry-content h1.wp-block-heading {
  letter-spacing: 0;
}

/* ´ in Hylla´s / n´ (wrapped by qt_child_heading_acute): Literata gives it
   wide side bearings, so pull it in to about apostrophe width */
.hc-acute {
  margin-inline: -0.13em -0.09em;
}

h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
}

.entry-content h1.wp-block-heading {
  font-size: 56px !important;
  line-height: 1.1;
  text-transform: none;
}

.entry-content h2.wp-block-heading {
  margin-bottom: 8px;
  font-size: 36px !important;
  line-height: 1.2;
  text-transform: uppercase;
}

.entry-content .hc-lead {
  color: var(--text-lead);
  font-size: 18px;
}

.entry-content .hc-eyebrow {
  margin: 0;
  color: var(--link-hover);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
}

body a {
  font-family: inherit;
}

.entry-content p a:not(.wp-element-button),
.entry-content .hc-faq a {
  color: var(--link-hover);
  font-size: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: underline;
}

/* Pages outside the block content, such as 404 */
.main h1 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 56px !important;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.main .wp-element-button {
  border-radius: var(--radius-sm);
  background-color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.main .wp-element-button:hover {
  background-color: var(--ink-hover);
}

/* Sections
========================================================================== */
.entry-content > .qt-section {
  position: relative;
  max-width: none;
  margin: 0;
  padding: var(--section) var(--gutter);
  border: 0;
  background: transparent;
}

/* The parent theme pads the first <section> with a spacing preset this theme
   does not define, which comes out as 0. With a cover hero first, that is the
   section right below the hero. */
.entry-content > .qt-section:not(.has-background):first-of-type {
  padding-top: var(--section);
}

.entry-content > .qt-section > .qt-section__inner {
  max-width: var(--content-width);
  margin-inline: auto;
}

.entry-content > .qt-section.hc-bg-white {
  background: var(--white);
}

.entry-content > .qt-section.hc-bg-pink {
  background: var(--pink-100);
}

.entry-content .qt-section .qt-section {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.entry-content .qt-section .qt-section > .qt-section__inner {
  max-width: none;
}

.main {
  margin-top: 0;
}

.entry-content > .qt-section > .grid-col-1 {
  row-gap: 0;
}

.entry-content > .qt-section[id] {
  scroll-margin-top: 92px;
}

.hc-head {
  max-width: var(--text-width);
  margin-inline: auto;
  margin-bottom: 32px;
  text-align: center;
}

.hc-foot .wp-block-buttons,
.hc-head .wp-block-buttons {
  justify-content: center;
}

.hc-foot {
  margin-top: 32px;
}

/* Buttons
========================================================================== */
.entry-content .wp-block-button .wp-block-button__link,
header .wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm) !important;
  background-color: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-content .wp-block-button .wp-block-button__link:hover,
header .wp-block-button .wp-block-button__link:hover {
  background-color: var(--ink-hover);
  color: var(--white);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: var(--sand-200);
  background-color: var(--white);
  color: var(--ink);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--rose);
  background-color: var(--pink-100);
  color: var(--ink);
}

header .wp-block-button .wp-block-button__link {
  font-size: 14px;
}

.entry-content .hc-cta .wp-block-button .wp-block-button__link {
  padding: 16px 28px;
  border-radius: var(--radius-md) !important;
}

.entry-content .hc-cta .wp-block-button .wp-block-button__link:hover {
  box-shadow: var(--shadow-md);
}

/* Header
========================================================================== */
header.wp-block-template-part,
header .qt-section {
  background: var(--sand-50) !important;
}

header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--sand-200);
}

/* The admin bar scrolls away on narrow screens, so nothing should sit below it there */
@media (max-width: 782px) {
  .admin-bar header.wp-block-template-part {
    top: 0;
  }
}

/* .is-style-header-top beats the 1.5rem padding from theme.css, so the header
   lines up with the page content */
header .qt-section,
header .qt-section.is-style-header-top {
  max-width: none;
  padding-inline: var(--gutter);
}

header .qt-section > .qt-section__inner {
  max-width: var(--content-width);
  margin-inline: auto;
}

#header-search-bar {
  border: 0;
}

#mega-menu > .menu-item > a {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

#mega-menu > .menu-item > a:hover,
#mega-menu > .current-menu-item > a {
  color: var(--link-hover);
}

header .is-style-header-top > .qt-section__inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 24px;
}

.is-style-header-top .qt-container:has(#mega-menu) {
  justify-content: flex-end;
}

#mega-menu > .menu-item > a {
  white-space: nowrap;
}

#mega-menu-mobile a {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.is-style-header-top .qt-container:has(.hc-header-cta) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

/* The empty hamburger wrapper still takes a flex gap, which kept the
   order button 16px short of the content edge */
@media (min-width: 1025px) {
  header .hamburger {
    display: none;
  }
}

/* The container's gap spaces the button from the hamburger, so the parent
   theme's margin-right up to 1100px is not needed */
header .wp-block-buttons.hc-header-cta,
.is-style-header-top .qt-container:has(.hamburger) .wp-block-buttons.hc-header-cta {
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
}

header .hc-header-cta .wp-block-button__link {
  white-space: nowrap;
}

/* The full menu shows from the desktop breakpoint, the parent theme waits until 1101px */
@media (min-width: 1025px) and (max-width: 1100px) {
  .mega-menu:not(.mega-menu-mobile) {
    display: block;
  }

  .mega-menu-mobile,
  .mega-menu-overlay-mobile,
  .hamburger {
    display: none;
  }
}

/* Logo left, hamburger right while the mobile menu is in use. The empty
   desktop-menu container is removed, and the absolutely positioned search
   bar gets no column of its own. */
@media (max-width: 1024px) {
  header .is-style-header-top > .qt-section__inner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .is-style-header-top .qt-container:has(.mega-menu:not(.mega-menu-mobile)) {
    display: none;
  }

  .is-style-header-top .qt-container:has(.hamburger) {
    justify-content: flex-end;
  }

  .is-style-header-top .wp-block-site-logo {
    width: auto;
  }

  /* The 24px icon sits centred in a 40px button. Pull the button 8px out so
     the visible bars end on the gutter, the same distance as the logo. */
  header .hamburger button {
    margin-right: -8px;
  }
}

/* The parent theme's archive and search templates still print breadcrumbs */
.is-style-breadcrumbs {
  display: none;
}

/* Hero
   A core/cover block with the class hc-hero. The image stays behind the text
   at every width; the overlay gradient is set on the block itself.
========================================================================== */
.entry-content > .wp-block-cover.hc-hero {
  min-height: 460px;
  margin-block: 0;
  padding: 64px var(--gutter);
  border: 0;
  color: var(--ink);
}

.entry-content > .wp-block-cover.hc-hero.hc-hero-compact {
  min-height: 280px;
  padding-block: 48px;
}

/* Same width as other sections; .hc-hero is doubled to beat core's content-position rule */
.entry-content > .wp-block-cover.hc-hero.hc-hero > .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}

.hc-hero .wp-block-cover__inner-container > * {
  max-width: 535px;
  margin: 0;
  text-align: left;
}

.entry-content .hc-hero .wp-block-cover__inner-container > p {
  height: auto;
  min-height: 0;
  margin-block: 0;
  padding: 0;
}

.hc-hero .wp-block-buttons {
  gap: 16px;
  margin-top: 8px;
}

/* Trust bar
========================================================================== */
.entry-content > .qt-section.hc-trustbar,
.entry-content > .qt-section.hc-trustbar:first-of-type {
  padding-block: 32px;
  background: var(--white);
}

.hc-trustbar .qt-container {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.entry-content .hc-trustbar .wp-block-image {
  margin: 0;
}

.entry-content .hc-trustbar .wp-block-image img {
  width: 32px;
  height: 32px;
  border-radius: 0;
}

.entry-content .hc-trustbar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

/* Steps
========================================================================== */
.hc-steps-list {
  position: relative;
  counter-reset: step;
}

.hc-steps-list > .qt-section__inner {
  gap: 32px;
}

.hc-steps-list > .qt-section__inner::before {
  content: '';
  position: absolute;
  top: 24px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: var(--rose);
}

/* Five steps (Tårtor "Så beställer du") stay on one row above phone width; the line runs between the first and last circle. */
@media (min-width: 768px) {
  .hc-steps-list > .qt-section__inner.grid-col-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }

  .hc-steps-list > .qt-section__inner.grid-col-5::before {
    right: 10%;
    left: 10%;
  }
}

.hc-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  counter-increment: step;
  text-align: center;
}

.hc-step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--ink);
  font: 600 18px/1 var(--font-display);
  font-variant-numeric: lining-nums;
}

.entry-content .is-style-text-card h3.wp-block-heading {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: inherit;
  text-transform: uppercase;
}

.entry-content .is-style-text-card h3.wp-block-heading strong {
  font-weight: inherit;
}

/* Favourite cards (Tårtor, Cupcakes) use the heading font */
.entry-content .hc-flavours .is-style-text-card h3.wp-block-heading {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
}

.entry-content .hc-step h3.wp-block-heading {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: inherit;
  text-transform: uppercase;
}

.entry-content .hc-step .wp-block-image {
  margin: 0;
}

.entry-content .hc-step .wp-block-image img {
  width: 120px !important;
  height: 120px !important;
  object-fit: contain;
  border-radius: 0 !important;
}

.entry-content .hc-step p {
  max-width: 280px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Flavour cards
========================================================================== */
.entry-content .hc-flavours .grid-col-3 {
  gap: 24px;
}

.entry-content .qt-container.is-style-text-card {
  position: relative;
  display: block;
  padding: 20px 20px 20px 84px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  background: var(--white) !important;
  text-align: left;
  transition: box-shadow 0.2s ease;
}

.entry-content .qt-container.is-style-text-card::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sage-50) url('../images/icons/cake.svg') center / 24px no-repeat;
  transition: background-color 0.2s ease;
}

.entry-content .qt-container.is-style-text-card:hover {
  box-shadow: var(--shadow-md);
}

.entry-content .qt-container.is-style-text-card:hover::before {
  background-color: var(--rose);
}

.entry-content .is-style-text-card p {
  margin: 0;
  color: var(--taupe);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.entry-content .is-style-text-card p:has(a) {
  margin-top: 8px;
  text-align: left !important;
}

.entry-content .is-style-text-card p a {
  color: var(--link);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

/* The whole card opens the favourite */
.entry-content .is-style-text-card p a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.entry-content .is-style-text-card:hover p a {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Pick cards: size guide (Tårtor), boxes (Cupcakes) and products (Hem).
   They reuse the text card; the link covers the whole card.
========================================================================== */
.entry-content .hc-picks .qt-section__inner.grid {
  gap: 24px;
}

.entry-content .hc-picks .is-style-text-card p strong {
  color: var(--ink);
}

@media (min-width: 768px) and (max-width: 1100px) {
  .entry-content .hc-picks--products .grid-col-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-content .hc-picks--five .grid-col-5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1101px) {
  .entry-content .hc-picks--five .grid-col-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  /* Five or four across is narrow: icon on top instead of beside the text */
  .entry-content .hc-picks--products .is-style-text-card,
  .entry-content .hc-picks--five .is-style-text-card {
    padding: 84px 16px 16px;
  }
}

@media (max-width: 767px) {
  .entry-content .hc-picks--two .grid-col-3,
  .entry-content .hc-picks--two .grid-col-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .entry-content .hc-picks--two .is-style-text-card {
    padding: 16px;
  }

  .entry-content .hc-picks--two .is-style-text-card::before {
    display: none;
  }

  .entry-content .hc-picks--products .grid-col-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Menu (Tårtor) */
.entry-content .hc-menu .grid-col-3 {
  gap: 24px;
}

.entry-content .hc-menu-col {
  padding: 24px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.entry-content .hc-menu-col h3.wp-block-heading {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.entry-content .hc-menu-col p {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .entry-content .hc-menu .grid-col-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Small note under a section or CTA */
.entry-content p.hc-note {
  margin-top: 16px;
  color: var(--taupe);
  font-size: 14px;
}

.entry-content .hc-foot p.hc-note {
  margin: 0 0 24px;
  text-align: center;
}

/* Gallery
========================================================================== */
.entry-content .is-style-stacked-boxes > .grid-col-3 {
  gap: 16px;
  padding: 0;
  background: transparent !important;
}

.entry-content .is-style-stacked-boxes .wp-block-image {
  margin: 0;
}

.entry-content .is-style-stacked-boxes .wp-block-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm) !important;
}

/* FAQ
========================================================================== */
.entry-content .hc-faq .faq {
  display: grid;
  gap: 8px;
  max-width: var(--text-width);
  margin-inline: auto;
}

.entry-content .faq .accordion-item {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 16px 24px;
  border: 1px solid var(--sand-200) !important;
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: background-color 0.2s ease;
}

.entry-content .faq .accordion-item:hover,
.entry-content .faq .accordion-item.is-open {
  border-color: var(--pink-100) !important;
  background: var(--pink-100);
}

.entry-content .faq .accordion-item h2.wp-block-heading {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px !important;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
}

.accordion-item__content * {
  font-size: 16px;
  line-height: 1.6;
}

/* Reviews
========================================================================== */
.ti-widget,
.ti-widget * {
  font-family: var(--font-sans) !important;
}

.ti-widget * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.ti-widget .ti-review-item > .ti-inner {
  border: 1px solid var(--sand-200) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--white) !important;
}

.ti-widget .ti-date,
.ti-widget .ti-read-more,
.ti-widget .ti-read-more *,
.ti-widget .ti-read-more-active {
  color: var(--taupe) !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

/* CTA banner
========================================================================== */
.hc-cta > .qt-section__inner {
  grid-template-columns: 3fr 2fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--pink-100);
}

.hc-cta .qt-container:first-child {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  padding: 40px;
}

.hc-cta p,
.hc-cta h2,
.hc-cta .wp-block-buttons {
  margin: 0;
}

.entry-content .hc-cta .wp-block-image {
  height: 100%;
  margin: 0;
}

.entry-content .hc-cta .wp-block-image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  border-radius: 0;
}

/* Cake configurator: the plugin follows the design system, the theme adds the header offsets
========================================================================== */
.entry-content .cc-app {
  --cc-sticky-top: 96px;
  --cc-scroll-offset: 112px;
}

.admin-bar .entry-content .cc-app {
  --cc-sticky-top: 128px;
  --cc-scroll-offset: 144px;
}

/* Footer
========================================================================== */
footer .qt-section {
  max-width: none;
  padding-inline: var(--gutter);
  background: var(--rose) !important;
}

footer .qt-section > .qt-section__inner {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
}

footer .is-style-footer-top {
  padding-top: 48px;
}

footer .is-style-footer-bottom {
  padding-bottom: 48px;
}

footer,
footer p,
footer a {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}

footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

footer .is-style-footer-nav {
  justify-self: end;
}

footer .is-style-footer-nav a {
  display: inline-block;
  padding-block: 4px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

/* theme.css turns these white on hover; keep them ink on the rose footer */
footer .is-style-footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

footer .is-style-footer-nav p {
  margin: 0;
}

footer .wp-block-image img {
  width: 150px !important;
  max-width: 100%;
  height: auto;
}

footer .wp-block-social-links .wp-social-link {
  background: transparent !important;
  color: var(--ink) !important;
}

footer .wp-block-social-links .wp-social-link svg {
  width: 24px;
  height: 24px;
}

footer .wp-block-social-links .wp-block-social-link-anchor {
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* Price cards and packages
========================================================================== */
.entry-content > .hc-prices > .qt-section__inner {
  align-items: start;
  gap: 24px;
}

.hc-pricecard {
  padding: 24px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.entry-content .hc-pricecard h2.wp-block-heading {
  font-size: 20px !important;
  line-height: 1.3;
}

.entry-content .hc-pricecard p {
  margin: 0;
}

.entry-content .hc-pricecard .wp-block-table {
  width: 100%;
  max-width: none;
  margin: 16px 0 0;
  font-size: 16px;
}

.entry-content .hc-pricecard .wp-block-table table {
  width: 100%;
  border: 0;
  border-collapse: collapse;
  background: transparent;
}

.entry-content .hc-pricecard .wp-block-table td {
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--sand-200);
  background: transparent;
  white-space: nowrap;
}

.entry-content .hc-pricecard .wp-block-table td.has-text-align-right {
  text-align: right;
}

.entry-content .hc-pricecard .wp-block-table tr:nth-child(odd) {
  background: transparent;
}

.entry-content .hc-pricecard .wp-block-table tr:last-child td {
  border-bottom: 0;
}

.entry-content .hc-pricecard .wp-block-table tr:first-child td {
  border: 0;
  background: var(--pink-100);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.entry-content .hc-pricecard .wp-block-table tr:first-child td:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.entry-content .hc-pricecard .wp-block-table tr:first-child td:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.entry-content .hc-pricecard .hc-small {
  margin-top: 16px;
  color: var(--taupe);
  font-size: 14px;
  line-height: 1.5;
}

.hc-note {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background: var(--pink-100);
}

.hc-prices .hc-note {
  grid-column: 1 / -1;
}

.entry-content .hc-note p {
  margin: 0;
}

.entry-content .hc-note strong {
  color: var(--ink);
}

.hc-packages .hc-note {
  max-width: var(--text-width);
  margin: 24px auto 0;
  text-align: center;
}

.entry-content .hc-packages .grid-col-3 {
  gap: 24px;
}

.entry-content .qt-container.is-style-package {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  padding: 32px 24px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  text-align: center;
}

.entry-content .is-style-package h3.wp-block-heading {
  margin: 0;
  font-size: 20px !important;
  line-height: 1.3;
  text-transform: uppercase;
}

.entry-content .is-style-package p {
  margin: 0;
  color: var(--taupe);
  font-size: 14px;
  line-height: 1.5;
}

.entry-content .is-style-package .package-price {
  margin-top: 8px;
  color: var(--ink);
  font: 600 36px/1.2 var(--font-display);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}

.entry-content .is-style-package .package-from {
  display: block;
  color: var(--taupe);
  font: 400 14px/1.5 var(--font-sans);
}

.entry-content .is-style-package .package-saving {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--sage-50);
  color: var(--ink);
  font-weight: 600;
}

/* About
========================================================================== */
.entry-content > .hc-about > .qt-section__inner {
  grid-template-columns: 2fr 3fr;
  align-items: start;
  gap: 48px;
}

.entry-content .hc-about .wp-block-image {
  margin: 0;
}

.entry-content .hc-about .wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg) !important;
}

.entry-content .hc-about h2.wp-block-heading {
  margin-bottom: 16px;
  text-transform: none;
}

.entry-content .hc-about p {
  margin: 0 0 16px;
}

.hc-quote {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--pink-100);
}

.entry-content .hc-quote p {
  margin: 0;
  color: var(--ink);
  font: 600 20px/1.3 var(--font-display);
}

.entry-content .hc-quote p + p {
  margin-top: 8px;
  color: var(--text-lead);
  font: 400 14px/1.5 var(--font-sans);
}

.entry-content > .hc-about-short > .qt-section__inner {
  align-items: center;
}

.entry-content .hc-about-short h2.wp-block-heading {
  text-transform: uppercase;
}

/* Contact
========================================================================== */
.entry-content > .hc-contact > .qt-section__inner {
  grid-template-columns: 2fr 3fr;
  align-items: start;
  gap: 32px;
}

.entry-content .hc-contact h2.wp-block-heading {
  margin-bottom: 16px;
}

.entry-content .hc-contact .qt-container > p {
  margin: 0 0 16px;
}

.entry-content .hc-contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-content .hc-contact-list li {
  min-height: 44px;
  margin: 0;
  padding-left: 32px;
  background: left center / 24px no-repeat;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 44px;
  overflow-wrap: anywhere;
}

.entry-content .hc-contact-list a {
  display: block;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  text-decoration: none;
}

.entry-content .hc-contact-list a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.entry-content .hc-contact-list .hc-i-mail { background-image: url('../images/icons/mail.svg'); }
.entry-content .hc-contact-list .hc-i-map-pin { background-image: url('../images/icons/map-pin.svg'); }
.entry-content .hc-contact-list .hc-i-instagram { background-image: url('../images/icons/instagram.svg'); }
.entry-content .hc-contact-list .hc-i-facebook { background-image: url('../images/icons/facebook.svg'); }

.hc-contact.hc-order .qt-container:has(.wpcf7) {
  max-width: none;
  margin: 0;
}

.entry-content > .qt-section.hc-map,
.entry-content > .qt-section.hc-map:first-of-type {
  padding-top: 0;
}

.entry-content .hc-map iframe {
  display: block;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--sand-100);
}

/* Prose
========================================================================== */
.entry-content .hc-prose .qt-container {
  max-width: var(--text-width);
  margin-inline: auto;
}

.entry-content .hc-prose h2.wp-block-heading {
  margin: 32px 0 8px;
  font-size: 20px !important;
  line-height: 1.3;
  text-transform: none;
}

.entry-content .hc-prose p {
  margin: 0 0 16px;
  text-align: left;
}

.entry-content .hc-prose ul {
  margin: 0 0 16px;
  padding-left: 24px;
  list-style: disc;
}

.entry-content .hc-prose li {
  margin: 0 0 4px;
}

.entry-content .hc-prose strong {
  color: var(--ink);
}

.entry-content .hc-prose a {
  color: var(--link-hover);
  font: inherit;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* Order form (Contact Form 7)
========================================================================== */
.hc-order .qt-container:has(.wpcf7) {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: 40px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.hc-order .wpcf7-form {
  gap: 16px;
}

.hc-order .wpcf7-form p {
  margin: 0;
  font-size: 16px;
}

.hc-order .wpcf7-form [data-class='wpcf7cf_group']:not(.wpcf7cf-hidden) {
  display: grid;
  gap: 16px;
}

.hc-order .wpcf7-form-control-wrap {
  gap: 8px;
  margin: 0;
}

.hc-order .wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.hc-order .wpcf7-form input:not([type='submit'], [type='radio'], [type='checkbox'], [type='file']),
.hc-order .wpcf7-form select,
.hc-order .wpcf7-form textarea {
  width: 100%;
  height: auto;
  padding: 14px 16px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-sans);
  letter-spacing: 0;
  text-transform: none;
}

.hc-order .wpcf7-form ::placeholder {
  color: var(--taupe);
  opacity: 1;
}

.hc-order .wpcf7-form input:not([type='submit'], [type='radio'], [type='checkbox'], [type='file']):focus,
.hc-order .wpcf7-form select:focus,
.hc-order .wpcf7-form textarea:focus {
  border-color: var(--rose) !important;
  box-shadow: 0 0 0 2px var(--focus-ring);
  outline: 0;
}

.hc-order .wpcf7-form input[aria-invalid='true'],
.hc-order .wpcf7-form select[aria-invalid='true'],
.hc-order .wpcf7-form textarea[aria-invalid='true'] {
  border-color: #e74c3c;
}

.hc-order .wpcf7-not-valid-tip {
  color: var(--danger-text);
  font-size: 14px;
  line-height: 1.5;
}

.hc-order .wpcf7-radio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hc-order [data-name='order-type-radio'] .wpcf7-radio {
  display: grid;
}

.hc-order .wpcf7-list-item {
  margin: 0 !important;
}

.hc-order .wpcf7-radio label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  font-weight: 400;
  cursor: pointer;
}

.hc-order .wpcf7-radio label:hover {
  border-color: var(--rose);
  background: var(--pink-100);
}

.hc-order .wpcf7-radio label:has(input:checked) {
  border-color: var(--ink);
  font-weight: 600;
}

.hc-order .wpcf7-form input[type='radio'],
.hc-order .wpcf7-form input[type='checkbox'] {
  flex: none;
  min-width: 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--taupe);
  background-color: var(--white);
}

.hc-order .wpcf7-form input[type='checkbox'] {
  border-radius: 4px;
}

.hc-order .wpcf7-acceptance a {
  color: var(--link-hover);
  font: inherit;
}

.hc-order .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.hc-order .wpcf7-form input[type='file'] {
  height: auto;
  font-size: 14px;
  font-weight: 400;
}

.hc-order .wpcf7-form input[type='file']::file-selector-button {
  margin-right: 16px;
  padding: 12px 22px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: 600 14px/1 var(--font-sans);
  cursor: pointer;
}

.hc-order .wpcf7-form input[type='file']::file-selector-button:hover {
  border-color: var(--rose);
  background: var(--pink-100);
}

.hc-order .wpcf7-form .disclaimer p {
  margin: 0;
  color: var(--taupe);
  font-size: 14px;
  line-height: 1.5;
}

.entry-content .hc-order .wpcf7-form input[type='submit'] {
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--white);
  font: 600 16px/1 var(--font-sans);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
}

.entry-content .hc-order .wpcf7-form input[type='submit']:not(:disabled):hover {
  background: var(--ink-hover);
  color: var(--white);
}

.entry-content .hc-order .wpcf7-form input[type='submit']:disabled {
  background: var(--rose);
  color: var(--ink);
  opacity: 1;
  cursor: not-allowed;
}

.hc-submit-hint {
  margin-top: 8px !important;
  color: var(--taupe);
  font-size: 14px !important;
}

.hc-submit-hint[hidden] {
  display: none;
}

.modal-content {
  border-radius: var(--radius-lg);
  font-family: var(--font-sans);
}

.modal-content h2 {
  color: var(--ink);
  font-family: var(--font-display);
}

/* Order bar on phones
========================================================================== */
.hc-orderbar {
  display: none;
}

/* Order pages and quick size choice
========================================================================== */
.hc-order-header {
  align-items: center;
  padding: 12px var(--gutter);
  background: var(--white);
}

.hc-order-header p {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  text-align: right;
}

.hc-order-header p a {
  display: block;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: anywhere;
}

.hc-order-page {
  min-height: 100vh;
  background: var(--pink-100);
}

.entry-content > .qt-section.hc-order:first-child {
  padding-top: var(--section);
}

.hc-order-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px var(--gutter) 0;
  background: var(--pink-100);
}

.hc-order-switch a {
  flex: 0 1 140px;
  padding: 11px 12px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hc-order-switch a:hover {
  border-color: var(--rose);
  background: var(--pink-100);
}

.hc-order-switch a[aria-current='page'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.hc-order-switch + .wp-block-post-content > .qt-section.hc-order:first-child {
  padding-top: 24px;
}

.entry-content .hc-order-trust {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
}

.hc-quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.hc-quick a {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: inherit;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  transition: box-shadow 0.2s ease;
}

.hc-quick a:hover {
  box-shadow: var(--shadow-md);
}

.hc-quick strong {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
}

.hc-quick span {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
}

.hc-choice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

/* Tablet
========================================================================== */
@media (max-width: 1024px) {
  .entry-content .hc-flavours .grid-col-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-content > .hc-prices > .qt-section__inner,
  .entry-content > .hc-about > .qt-section__inner,
  .entry-content > .hc-contact > .qt-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-content .hc-about .wp-block-image {
    max-width: 360px;
  }
}

/* Phone
========================================================================== */
@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  /* A little larger at 767px, shrinking to 32px / 24px at 450px and below */
  .entry-content h1.wp-block-heading,
  .main h1 {
    font-size: clamp(32px, calc(32px + (100vw - 450px) * 8 / 317), 40px) !important;
  }

  .entry-content h2.wp-block-heading,
  .modal-content h2 {
    font-size: clamp(24px, calc(24px + (100vw - 450px) * 6 / 317), 30px) !important;
  }

  .entry-content .hc-lead {
    font-size: 16px;
  }

  .entry-content .wp-block-button .wp-block-button__link {
    font-size: 15px;
  }

  .entry-content > .wp-block-cover.hc-hero {
    min-height: 360px;
    padding: 40px var(--gutter);
  }

  .entry-content > .wp-block-cover.hc-hero.hc-hero-compact {
    min-height: 220px;
    padding-block: 32px;
  }

  /* The image stays behind the text, so the overlay washes the whole hero */
  .hc-hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgb(246 231 230 / 92%) 0%, rgb(246 231 230 / 72%) 100%) !important;
  }

  .entry-content > .wp-block-cover.hc-hero.hc-hero > .wp-block-cover__inner-container {
    align-items: stretch;
    gap: 8px;
  }

  .hc-hero .wp-block-cover__inner-container > * {
    max-width: none;
  }

  .hc-hero .wp-block-buttons {
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
  }

  .hc-hero .wp-block-button,
  .hc-hero .wp-block-button__link {
    width: 100%;
  }

  /* The order bar at the bottom carries the same buttons on phones */
  body:has(.hc-orderbar) .hc-hero .wp-block-buttons {
    display: none;
  }

  .hc-trustbar > .qt-section__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .hc-steps-list > .qt-section__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hc-steps-list > .qt-section__inner::before {
    top: 24px;
    right: auto;
    bottom: 24px;
    left: 24px;
    width: 1px;
    height: auto;
  }

  .hc-step {
    grid-template-columns: 48px minmax(0, 1fr);
    justify-items: start;
    column-gap: 16px;
    row-gap: 4px;
    text-align: left;
  }

  .hc-step::before {
    grid-row: span 2;
    margin: 0;
  }

  .hc-step p {
    grid-column: 2;
  }

  .entry-content .hc-step .wp-block-image {
    display: none;
  }

  .hc-order .qt-container:has(.wpcf7) {
    padding: 24px 16px;
  }

  .hc-order .wpcf7-radio {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-content .hc-flavours .grid-col-3 {
    display: flex;
    gap: 16px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .entry-content .hc-flavours .grid-col-3 > * {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  .entry-content .is-style-stacked-boxes > .grid-col-3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .entry-content .hc-packages .grid-col-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Three photos on two columns: the last takes the full width */
  .hc-gallery-short .qt-container:last-child {
    grid-column: 1 / -1;
  }

  .entry-content .hc-gallery-short .qt-container:last-child img {
    aspect-ratio: 3 / 2 !important;
  }

  .entry-content .hc-pricecard .wp-block-table td {
    padding: 12px 8px;
  }

  .entry-content .hc-pricecard .wp-block-table tr:first-child td {
    font-size: 13px;
  }

  .hc-cta > .qt-section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-cta .qt-container:first-child {
    padding: 24px;
  }

  .entry-content .hc-cta .wp-block-image img {
    height: 180px;
    min-height: 180px;
  }

  .entry-content .cc-app,
  .admin-bar .entry-content .cc-app {
    --cc-sticky-top: 72px;
    --cc-scroll-offset: 84px;
  }

  .hc-orderbar {
    position: fixed;
    z-index: 20;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px var(--gutter);
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    box-shadow: var(--shadow-lg);
  }

  .hc-orderbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--ink);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
  }

  .hc-orderbar a.is-secondary {
    background: var(--white);
    color: var(--ink);
  }

  body:has(.hc-orderbar) {
    padding-bottom: 76px;
  }

  /* Keeps "Beställ cupcakes" on one line down to 360px */
  @media (max-width: 374px) {
    .hc-orderbar a {
      padding-inline: 2px;
      font-size: 13px;
    }
  }

  /* Below that the labels wrap and the bar grows */
  @media (max-width: 359px) {
    body:has(.hc-orderbar) {
      padding-bottom: 92px;
    }
  }

  footer .is-style-footer-nav {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}

@media screen and (max-width: 600px) {
    #CookiebotWidget:not(.CookiebotWidget-inactive) {
        bottom: 76px!important;
        left: 15px!Important;
    }
}