/* Founder Network 5.6.2. Size the host before hiding the gallery or loading JS.
   An auto-sized flex child otherwise collapses to the iframe's 300px intrinsic width. */
/* Avada text/code elements may themselves be auto-sized flex children. Only
   expand shortcode hosts containing this plugin, not other page columns. */
body :is(.fusion-text, .fusion-code-block, .wp-block-shortcode):has(.lemonade-feed-wrapper) {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; align-self: stretch;
}
body .lemonade-feed-wrapper {
  display: block; width: 100% !important; max-width: 100% !important;
  min-width: 0; box-sizing: border-box; align-self: stretch;
}
body .lemonade-feed-wrapper.is-network-view { padding: 0; background: transparent; }
.lemonade-feed-wrapper .lemonade-network-view,
.lemonade-feed-wrapper .lemonade-shop-view,
.lemonade-feed-wrapper .lemonade-network-embed-shell,
.lemonade-feed-wrapper .lemonade-network-iframe {
  box-sizing: border-box; width: 100% !important; max-width: 100% !important; min-width: 0;
}
.lemonade-feed-wrapper .lemonade-network-view[hidden],
.lemonade-feed-wrapper .lemonade-shop-view[hidden] { display: none !important; }
.lemonade-feed-wrapper .lemonade-network-switcher {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-content: center; gap: 6px; width: min(460px, calc(100% - 32px));
  max-width: calc(100% - 32px); box-sizing: border-box;
  margin: 12px auto 20px; margin-inline: auto !important; float: none; align-self: center; padding: 5px; background: #f0edf9;
  border: 1px solid #dcd5ef; border-radius: var(--radius-control, 8px);
  font-family: 'Nunito', system-ui, sans-serif;
}
.lemonade-feed-wrapper .lemonade-network-switch {
  appearance: none; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; min-width: 0; min-height: 56px; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-control, 8px); box-sizing: border-box; margin: 0;
  font: 800 18px/1.4 'Nunito', system-ui, sans-serif; color: #4d426e;
  cursor: pointer; white-space: normal; text-transform: none;
}
.lemonade-feed-wrapper .lemonade-network-switch[aria-selected="true"] {
  background: #ffde59; color: #242038; box-shadow: 0 2px 5px #5141841a;
}
.lemonade-feed-wrapper .lemonade-network-switch:hover { color: #242038; }
.lemonade-feed-wrapper .lemonade-network-switch:focus-visible { outline: 3px solid #6651a8; outline-offset: 3px; }
.lemonade-feed-wrapper .lemonade-network-embed-shell {
  position: relative; min-height: 320px; background: #fff; border-radius: var(--radius-card, 12px); overflow: hidden;
}
.lemonade-feed-wrapper .lemonade-network-iframe {
  display: block; height: 980px; border: 0; background: #fff; opacity: 1;
}
.lemonade-feed-wrapper .lemonade-gallery-status { grid-column: 1 / -1; padding: 24px; }
.lemonade-feed-wrapper .lemonade-network-window-actions {
  display: flex; flex: 0 0 auto; justify-content: flex-end; box-sizing: border-box;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  background: #fff;
}
.lemonade-feed-wrapper .lemonade-network-expand {
  display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px;
  padding: 0; margin: 0; border: 1px solid #dcd5ef; border-radius: var(--radius-control, 8px);
  color: #242038; background: #fff; cursor: pointer; touch-action: manipulation;
}
.lemonade-feed-wrapper .lemonade-network-expand:hover { background: #fff5ca; }
.lemonade-feed-wrapper .lemonade-network-expand:focus-visible { outline: 3px solid #6651a8; outline-offset: 2px; }
body .lemonade-feed-wrapper .lemonade-network-embed-shell[data-network-expanded='true'] {
  display: flex; flex-direction: column; position: fixed !important; inset: 0 !important;
  margin: 0 !important; padding: 0; width: 100% !important; max-width: none !important;
  height: 100vh; height: 100dvh; max-height: none; min-height: 0; border: 0; border-radius: 0;
  z-index: 2147483000; background: #fff; overflow: hidden;
}
.lemonade-feed-wrapper .lemonade-network-embed-shell[data-network-expanded='true'] .lemonade-network-iframe {
  flex: 1 1 0; height: 0 !important; min-height: 0; padding-bottom: env(safe-area-inset-bottom);
}
/* Fixed-position fallback for browsers without the top-layer Popover API. */
.lemonade-network-expanded-host {
  transform: none !important; filter: none !important; perspective: none !important;
  contain: none !important; will-change: auto !important; content-visibility: visible !important;
  overflow: visible !important; clip-path: none !important; isolation: auto !important; z-index: auto !important;
}
@media (max-width: 700px) {
  .lemonade-feed-wrapper .lemonade-network-switcher {
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); width: calc(100% - 24px); gap: 4px; margin: 12px auto 12px;
  }
  .lemonade-feed-wrapper .lemonade-network-switch { width: 100%; min-width: 0; padding: 10px 8px; min-height: 56px; gap: 6px; font-size: 17px; overflow-wrap: anywhere; }
  .lemonade-feed-wrapper .lemonade-network-embed-shell { border-radius: var(--radius-card, 12px); }
  .lemonade-feed-wrapper .lemonade-network-iframe { height: 1120px; }
  body .lemonade-feed-wrapper:not(.is-network-view) { padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .lemonade-feed-wrapper .lemonade-network-iframe { transition: none; }
}



.lemonade-feed-wrapper .lemonade-network-switch::before {
  content: ''; width: 22px; height: 22px; flex: 0 0 22px; background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m3 5 6-2 6 2 6-2v16l-6 2-6-2-6 2V5Zm6-2v16m6-14v16'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lemonade-feed-wrapper .lemonade-network-switch + .lemonade-network-switch::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}
/* Match the app's control corners in the founder card gallery as well. */
.lemonade-feed-wrapper :is(.lemonade-save-btn, .lemonade-btn, .lemonade-feed-more, .filter-pill) { border-radius: var(--radius-control, 8px); }
