/* Eligenda customer pages: the checkout's look, shared by every page restyled so far (body.er-pg).
   Tokens are the same as in eligenda-checkout/checkout.css. */
@font-face { font-family: "ECk Bodoni"; src: url(/wp-content/mu-plugins/eligenda-cart/bodoni.ttf); font-weight: 500; font-display: swap; }

body.er-pg {
  --er-blue: #052531; --er-blue-hover: #0d3a4c; --er-ivory: #f7f4ef; --er-white: #fffefc;
  --er-line: rgba(5, 37, 49, .15); --er-line-strong: rgba(5, 37, 49, .32);
  --er-ink: #1c2e36; --er-muted: #5d6c73; --er-faint: #8a979c; --er-error: #9b2c2c;
  --er-serif: "ECk Bodoni", "Bodoni Moda", Georgia, serif; --er-sans: Raleway, "Helvetica Neue", Arial, sans-serif;
  --er-tint: #e3eff6; --er-tint-line: #b6d0dc;
  --er-ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--er-ivory) !important;
}
body.er-pg #page, body.er-pg #main, body.er-pg #main .elementor-section, body.er-pg #main .e-con { background-color: transparent !important; }
body.er-pg #main .woocommerce { font: 400 15px/1.55 var(--er-sans); color: var(--er-ink); font-variant-numeric: lining-nums; }
body.er-pg #main .woocommerce *, body.er-pg #main .woocommerce *::before, body.er-pg #main .woocommerce *::after { box-sizing: border-box; }
body.er-pg #main :focus-visible { outline: 2px solid var(--er-blue); outline-offset: 2px; }

/* Page frame: the same width and breathing room as the checkout. */
body.er-pg #main { padding: 44px 0 72px !important; }
body.er-pg #main > .wf-wrap { max-width: 1240px; }
body.er-pg #content .elementor-section { margin-top: 0 !important; margin-bottom: 0 !important; }
body.er-pg #content .elementor-widget-wrap.elementor-element-populated { padding-top: 0 !important; padding-bottom: 0 !important; }
body.er-pg #main .woocommerce { max-width: 1180px; margin: 0 auto; }

/* Shop messages: see messages.css, loaded with this file. */

/* Dropdown lists (country, province). WooCommerce draws them at the end of the page, outside the content area. */
body.er-pg .select2-container--open .select2-dropdown { margin-top: 6px; border: 1px solid var(--er-line-strong) !important; border-radius: 12px !important; background: var(--er-white) !important;
  box-shadow: 0 14px 34px rgba(5, 37, 49, .16) !important; overflow: hidden; font: 400 15px/1.35 var(--er-sans); color: var(--er-ink); }
body.er-pg .select2-container--open .select2-dropdown--above { margin-top: -6px; }
body.er-pg .select2-dropdown .select2-search--dropdown { display: block; padding: 10px 10px 4px !important; }
body.er-pg .select2-dropdown .select2-search__field { width: 100% !important; height: 42px !important; margin: 0 !important; padding: 0 12px !important; border: 1px solid var(--er-line-strong) !important; border-radius: 8px !important;
  background: var(--er-white) !important; box-shadow: none !important; outline: none !important; font: 500 15px/1.2 var(--er-sans) !important; color: var(--er-ink) !important; -webkit-text-fill-color: var(--er-ink); caret-color: var(--er-blue); }
body.er-pg .select2-dropdown .select2-search__field:focus { border-color: var(--er-blue) !important; box-shadow: 0 0 0 3px rgba(5, 37, 49, .12) !important; }
body.er-pg .select2-dropdown .select2-results__options { max-height: 264px !important; margin: 0 !important; padding: 6px !important; }
body.er-pg .select2-dropdown .select2-results__option { margin: 0 !important; padding: 10px 12px !important; border-radius: 8px; background: transparent !important; color: var(--er-ink) !important;
  font: 400 15px/1.35 var(--er-sans) !important; outline: none !important; cursor: pointer; }
body.er-pg .select2-dropdown .select2-results__option[aria-selected=true], body.er-pg .select2-dropdown .select2-results__option[data-selected=true] { font-weight: 600 !important; color: var(--er-blue) !important; }
body.er-pg .select2-dropdown .select2-results__option.select2-results__option--highlighted { background: var(--er-tint) !important; color: var(--er-blue) !important; }
body.er-pg .select2-dropdown .select2-results__message { color: var(--er-muted) !important; cursor: default; }

@media (max-width: 980px) {
  body.er-pg #main { padding: 24px 0 44px !important; }
  body.er-pg .select2-dropdown .select2-search__field { font-size: 16px !important; }
  body.er-pg .select2-dropdown .select2-results__options { max-height: 216px !important; }   /* shorter on a phone: at 264px a list opening upwards from mid-screen lost its top edge above the screen (found on the checkout, 18 Nov) */
}
@media (prefers-reduced-motion: reduce) { body.er-pg #main * { transition: none !important; animation: none !important; } }
