/* EvelynChick.com: rules for the pre-built site only.
   The page styles come from the design file. This file replaces what the
   design runtime did in JavaScript: switching header layouts, open/close states and hover effects. */

/* Header: desktop nav vs Menu button */
@media (max-width: 859px) { html.ec-static .ec-only-d { display: none !important; } }
@media (min-width: 860px) { html.ec-static .ec-only-m { display: none !important; } }

/* Mobile menu and Resources dropdown are closed until opened */
html.ec-static [data-ec-menu] { display: none !important; }
html.ec-static.ec-menu-open [data-ec-menu] { display: flex !important; }
html.ec-static.ec-menu-open { overflow: hidden; }
html.ec-static [data-ec-drop-panel] { display: none !important; }
html.ec-static [data-ec-drop].ec-open [data-ec-drop-panel] { display: flex !important; }

/* Hover and focus effects on the homepage and shop tiles */
html.ec-static [data-ec-tile]:hover [data-ec-tileimg]:not([data-ec-tileimg="false"]),
html.ec-static [data-ec-tile]:focus-visible [data-ec-tileimg]:not([data-ec-tileimg="false"]),
html.ec-static [data-ec-tile]:focus-within [data-ec-tileimg]:not([data-ec-tileimg="false"]) { opacity: .4 !important; }
html.ec-static [data-ec-tile]:hover [data-ec-tileph="true"],
html.ec-static [data-ec-tile]:focus-within [data-ec-tileph="true"] { opacity: 1 !important; }
html.ec-static [data-ec-wm]:hover [data-ec-wmtext],
html.ec-static [data-ec-wm]:focus-visible [data-ec-wmtext] { transform: translateX(-4cqw) !important; color: #F4F0E8 !important; }

/* Status and error messages stay hidden until there is something to say */
html.ec-static [data-ec-status]:not(.ec-show),
html.ec-static [data-ec-errors]:not(.ec-show),
html.ec-static [data-ec-empty]:not(.ec-show) { display: none !important; }
html.ec-static [data-ec-item].ec-hidden { display: none !important; }

/* Calculator rows: labels on phones, column headings on desktop */
html.ec-static [data-ec-rowlabel] { display: none !important; }
@media (max-width: 859px) {
  html.ec-static [data-ec-rowlabel] { display: block !important; }
  html.ec-static [data-ec-rowheads] { display: none !important; }
  html.ec-static .ec-rows { margin-top: 16px !important; }
  html.ec-static .ec-calcrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  html.ec-static .ec-calcname { grid-column: 1 / -1 !important; }
  html.ec-static .ec-calcline { text-align: left !important; }
  /* Recipe photo, Not to Miss map */
  html.ec-static .ec-photo { aspect-ratio: 3 / 2 !important; }
  html.ec-static .ec-list { order: 2 !important; }
  html.ec-static .ec-mapbox { order: 1 !important; position: relative !important; height: 320px !important; }
}

/* Leaflet map pins (same as the design file) and the blocked-tiles note */
.ec-map-note { position: absolute; left: 12px; right: 12px; bottom: 32px; z-index: 500; margin: 0; font: 400 13px/1.45 'Instrument Sans', sans-serif; background: #F4F0E8; color: #361610; border: 1px dashed #361610; padding: 8px 10px; border-radius: 2px; }

/* Form buttons while sending */
html.ec-static button[disabled] { opacity: .6; cursor: progress; }
