/* 3.19.10 — The Diario's typography and editorial finish across the existing site.
   Keep the Diario content styles as the reference; leave layouts, photos and commerce intact. */
.mgx-shop:not(.mgx-diary-page),
.mgx-cart-drawer,
dialog.mgx-quickview,
dialog.mgx-media-viewer {
  --mgx-display: 'Libre Baskerville', Baskerville, Georgia, serif;
  --mgx-stencil: 'Libre Baskerville', Baskerville, Georgia, serif;
  --mgx-sans: 'Libre Baskerville', Baskerville, Georgia, serif;
  --mgx-commerce-serif: 'Libre Baskerville', Baskerville, Georgia, serif;
  --mgx-ink: #0b2b3d;
  --mgx-paper: #fffaf5;
  --mgx-text: #29434e;
  --mgx-quiet: #4c626b;
  --mgx-accent-text: #9d4433;
  --mgx-salmon-dark: #9d4433;
  --mgx-diary-line: rgba(11,43,61,.15);
  font-family: var(--mgx-display);
}
/* Checkout's existing !important font rules resolve this shared family token. */
body.mgx-checkout-page { --mgx-co-ui: 'Libre Baskerville', Baskerville, Georgia, serif; }
.mgx-shop.mgx-home-brochure { --mgx-premium-space: clamp(48px,5.5vw,72px); }

/* Same normal-weight serif hierarchy; never apply typography resets to icon spans. */
.mgx-shop:not(.mgx-diary-page) :is(h1,h2,h3,h4),
.mgx-cart-drawer :is(h2,h3),
dialog.mgx-quickview .mgx-quickview__title,
dialog.mgx-media-viewer .mgx-media-viewer__header h2 {
  font-family: var(--mgx-display);
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.mgx-shop:not(.mgx-diary-page) :is(h1,h2,h3,h4) em {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.mgx-shop:not(.mgx-diary-page) :is(.mgx-kicker,.mgx-home-v4-kicker,.mgx-regala-kicker,.mgx-gift-opening__kicker),
.mgx-cart-drawer .mgx-cd-kicker {
  font-family: var(--mgx-display);
  font-weight: 400;
  letter-spacing: .065em;
  line-height: 1.65;
}

/* Hero and section scale taken from the journal, within their original layouts. */
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero h1,
.mgx-shop.mgx-bottega-3190 .mgx-bottega-3190__heading h1 {
  font-size: clamp(34px,4vw,55px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-transform: none;
}
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero h1 { max-width: 16ch; }
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero h1 em { font-size: inherit; line-height: inherit; }
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero .mgx-home-v4-kicker {
  margin-bottom: 20px;
  font-size: 13px !important; /* Earlier hero rules mark this font size important. */
  font-weight: 400;
  letter-spacing: .065em;
}
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero blockquote {
  margin-block: 24px 28px;
  max-width: 43ch;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.75;
}
.mgx-shop.mgx-bottega-3190 .mgx-bottega-3190__heading { padding-block: 32px; }
.mgx-shop .mgx-bottega-intro > p { color: #29434e; }
.mgx-shop.mgx-home-brochure :is(.mgx-home-v4-section-heading,.mgx-home-rules,.mgx-home-brochure-gift,.mgx-home-v4-story,.mgx-home-care,.mgx-home-recipes-feature,.mgx-home-v4-faq) h2,
.mgx-shop .mgx-bottega-gifting :is(.mgx-bottega-gift-guide > header,.mgx-regala-builder-heading) h2 {
  font-size: clamp(30px,3.5vw,46px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.04em;
  text-transform: none;
}
.mgx-shop.mgx-home-brochure :is(.mgx-home-rules__grid,.mgx-home-care) h3 {
  font-family: var(--mgx-display);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -.025em;
}
.mgx-shop.mgx-home-brochure .mgx-home-recipes-feature__visual-copy strong {
  font-weight: 400;
  letter-spacing: -.035em;
}
.mgx-shop.mgx-home-brochure :is(.mgx-home-v4-text-link,.mgx-home-creation-card__copy > strong) { font-weight: 400; }

/* Paper surfaces, fine borders and the calm controls already used by the Diario. */
.mgx-shop.mgx-home-brochure .mgx-home-brochure-hero {
  border: 1px solid var(--mgx-diary-line);
  border-radius: 20px;
  box-shadow: none;
}
.mgx-shop.mgx-bottega-3190 .mgx-gift-opening--3192,
.mgx-shop .mgx-bottega-gifting .mgx-bottega-gift-guide,
.mgx-shop .mgx-bottega-gifting .mgx-bottega-gift-guide__card {
  border-radius: 20px;
  box-shadow: none;
}
.mgx-shop .mgx-gift-opening--3192 h2,
.mgx-shop .mgx-gift-opening--3192.is-single h2 {
  max-width: 22ch;
  font-size: clamp(27px,2.7vw,36px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.035em;
  text-transform: none;
}
.mgx-shop.mgx-catalogue-3190 .mgx-product { border-radius: 20px; }
.mgx-shop.mgx-catalogue-3190 .mgx-product__info h4 { letter-spacing: -.035em; }
.mgx-shop.mgx-catalogue-3190 :is(.mgx-category-lead,.mgx-category-story p,.mgx-creation__description) { color: #29434e; }
.mgx-shop.mgx-catalogue-3190 .mgx-product__buy .mgx-add,
.mgx-shop.mgx-catalogue-3190 .mgx-filters button,
.mgx-shop.mgx-catalogue-3190 .mgx-product .mgx-quickview-trigger,
.mgx-shop.mgx-home-brochure .mgx-home-v4-button,
.mgx-shop .mgx-bottega-gifting .mgx-bottega-gift-guide__purchase > a,
.mgx-shop .mgx-product-experience .mgx-product-order > form.cart > button[type="submit"],
.mgx-shop .mgx-product-experience .mgx-product-native-form .single_add_to_cart_button,
.mgx-shop .mgx-cart-modern .mgx-cm-cta {
  font-family: var(--mgx-display);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* The gift remains a composition first, with legible, quiet editing controls. */
.mgx-shop .mgx-bottega-gifting .mgx-regala-builder-heading > p:last-child,
.mgx-shop .mgx-bottega-gifting .mgx-bottega-gift-guide > header > p { color: #29434e; line-height: 1.75; }
.mgx-shop .mgx-gift-proposal-heading h3 { font-weight: 400; line-height: 1.35; }
.mgx-shop .mgx-regala [data-gift-studio].mgx-gift-studio--visual :is(.mgx-gift-stage,.mgx-gift-receipt) { border-radius: 20px; }
.mgx-shop .mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-stage__heading h3 {
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.035em;
  text-transform: none;
}
.mgx-shop .mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-eyebrow { font-weight: 400; letter-spacing: .065em; }
.mgx-shop .mgx-regala [data-gift-studio].mgx-gift-studio--visual :is(.mgx-gift-accordion > summary strong,.mgx-gift-receipt > h3) {
  font-family: var(--mgx-display);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.025em;
  text-transform: none;
}
.mgx-shop .mgx-regala [data-gift-studio].mgx-gift-studio--visual :is(.mgx-gift-next,.mgx-gift-submit,.mgx-gift-stage-actions button:not([hidden])) {
  border-radius: 10px;
  font-family: var(--mgx-display);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}
.mgx-shop .mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-message { font-weight: 400; }

/* Preserve ivory and salmon contrast in the navy editorial and gift sections. */
.mgx-shop.mgx-home-brochure .mgx-home-brochure-gift h2,
.mgx-shop.mgx-recipes-page .mgx-recipes__intro h2,
.mgx-shop.mgx-recipe-single .mgx-recipe-single__body h2 { color: #fffaf5; }
.mgx-shop.mgx-home-brochure .mgx-home-brochure-gift :is(.mgx-kicker,.mgx-home-v4-kicker,h2 em),
.mgx-shop.mgx-recipes-page .mgx-recipes__intro :is(.mgx-kicker,h2 em),
.mgx-shop.mgx-recipe-single .mgx-recipe-single__body .mgx-kicker { color: #f0b7a6; }
.mgx-shop .mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-receipt h3 { color: #fffaf5; }

/* Product and cart retain their already refined dimensions and purchase flow. */
.mgx-shop .mgx-product-experience .mgx-product-purchase-v2 > h1 { line-height: 1.18; letter-spacing: -.04em; }
.mgx-shop .mgx-product-experience :is(.mgx-product-description,.mgx-product-copy-details > div) { color: #29434e; line-height: 1.8; }
.mgx-shop .mgx-product-experience .mgx-product-overline { font-weight: 400; letter-spacing: .065em; }
.mgx-shop .mgx-product-experience .mgx-product-gift-link { font-weight: 400; }
.mgx-shop .mgx-cart-modern .mgx-cm-card { border-radius: 20px; }
.mgx-shop .mgx-cart-modern .mgx-cm-title h1 { letter-spacing: -.04em; line-height: 1.18; }
.mgx-shop .mgx-cart-modern :is(.mgx-cm-totals,.mgx-cm-delivery) h2 { letter-spacing: -.035em; }
.mgx-cart-drawer { background: #fffaf5; }
.mgx-cart-drawer .mgx-cd-head h2 { font-size: 28px; line-height: 1.3; }
.mgx-cart-drawer .mgx-cd-line-body strong { font-weight: 400; line-height: 1.5; }
.mgx-cart-drawer :is(.mgx-cd-ship-copy,.mgx-cd-tag,.mgx-cd-note) { line-height: 1.65; }
.mgx-cart-drawer .mgx-cd-cta { font-weight: 400; letter-spacing: 0; text-transform: none; }

/* Native dialogs share the editorial card and button treatment. */
dialog.mgx-quickview,
dialog.mgx-media-viewer { border-radius: 20px; }
dialog.mgx-quickview .mgx-quickview__family,
dialog.mgx-media-viewer .mgx-media-viewer__header p { color: #9d4433; font-weight: 400; letter-spacing: .065em; }
dialog.mgx-quickview .mgx-quickview__visual .mgx-product__placeholder b { font-family: var(--mgx-display); }
dialog.mgx-quickview :is(.mgx-quickview__formats button,.mgx-quickview__buy) { border-radius: 10px; }
dialog.mgx-quickview .mgx-quickview__buy:hover { background: #173d4f; border-color: #173d4f; }
dialog.mgx-quickview :is(.mgx-quickview__description,.mgx-quickview__name,.mgx-quickview__status) { color: #29434e; }

/* Shell text follows the reference; icon sizes and menu behavior remain untouched. */
.mgx-shop .mgx-module-header :is(.mgx-module-brand strong,nav > a,.mgx-module-help,.mgx-module-cart),
.mgx-shop .mgx-module-footer :is(.mgx-footer-brand strong,.mgx-footer-assistance > div > strong,.mgx-footer-column h3) {
  font-family: var(--mgx-display);
  font-weight: 400;
  text-transform: none;
}

/* Only typography changes at checkout: preserve shipping, payment and gateway layouts. */
body.mgx-checkout-page .mgx-co .mgx-co-head h1 { letter-spacing: -.04em !important; }
body.mgx-checkout-page .mgx-co :is(.mgx-co-kicker,.mgx-live-review-heading span) {
  font-weight: 400 !important;
  letter-spacing: .065em !important;
}
body.mgx-checkout-page .mgx-co :is(.mgx-live-review-product strong,.mgx-live-review-product strong a) { font-weight: 400 !important; }
body.mgx-checkout-page .mgx-co #place_order { font-weight: 400 !important; }

@media (max-width: 900px) {
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero :is(h1,blockquote) { color: #0b2b3d; }
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero h1 em,
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero .mgx-home-v4-kicker { color: #9d4433; }
}
@media (max-width: 540px) {
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero h1,
  .mgx-shop.mgx-bottega-3190 .mgx-bottega-3190__heading h1 { font-size: clamp(32px,8.5vw,40px); }
  .mgx-shop.mgx-home-brochure .mgx-home-brochure-hero blockquote { font-size: 16px; line-height: 1.85; }
  .mgx-shop .mgx-bottega-gifting :is(.mgx-bottega-gift-guide > header,.mgx-regala-builder-heading) h2 { font-size: 32px; }
  .mgx-shop .mgx-regala [data-gift-studio].mgx-gift-studio--visual .mgx-gift-accordion > summary strong { font-size: 21px; }
}
