/* =========================================================
   GOOUTLY – MASTER CUSTOM CSS
   Mobile-first, consolidated, de-duplicated.
   Sections:
     1.  Design tokens
     2.  Primary CTA button
     3.  Venue dashboard (messages, form, list)
     4.  Events filter bar (mobile-first grid)
     5.  Events listing (row cards)
     6.  Single event page
     7.  Checkout page
     8.  Event submission form + single event cleanup
     9.  Mobile centring (max 599px)
     10. Back To Events button (single event page)
     11. Public Venues Directory [gooutly_venues_directory]
     12. Your Events (dashboard) + dashboard spacing
     15. Duplicate Event modal
     16. My Account — Become a Venue panel
     17A. Single event disclaimer block
     17B. Social share buttons (single event page)
========================================================= */

/* =========================================================
   1. DESIGN TOKENS
========================================================= */
:root {
  --go-blue:      #005ca9;
  --go-blue-dark: #003f75;
  --go-radius:    12px;
  --go-border:    rgba(0, 0, 0, .15);
  --go-shadow:    0 6px 18px rgba(0, 0, 0, .06);
  --go-input-h:   52px;
  --go-gap:       14px;
}

/* =========================================================
   2. PRIMARY CTA BUTTON
========================================================= */
.gooutly-cta-primary {
  display: inline-block;
  background: var(--go-blue);
  color: #fff !important;
  padding: 14px 22px;
  border-radius: var(--go-radius);
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s ease, transform .2s ease;
}
.gooutly-cta-primary:hover {
  background: var(--go-blue-dark);
  transform: translateY(-2px);
}

.gooutly-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--go-blue);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
}
.gooutly-link-btn:hover { color: var(--go-blue-dark); }

/* =========================================================
   3. VENUE DASHBOARD
========================================================= */
.gooutly-msg {
  padding: 12px 14px;
  border-radius: var(--go-radius);
  margin: 12px 0;
  border: 1px solid var(--go-border);
}
.gooutly-msg ul          { margin: 0; padding-left: 18px; }
.gooutly-msg--success    { border-color: rgba(60, 180, 90, .35); }
.gooutly-msg--error      { border-color: rgba(220, 80, 80, .35); }

.gooutly-venue-form input[type="text"],
.gooutly-venue-form textarea {
  display: block;
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  border-radius: var(--go-radius);
  border: 1px solid var(--go-border);
  font: inherit;
  box-sizing: border-box;
}

.gooutly-venue-list          { padding-left: 0; list-style: none; }
.gooutly-venue-list li {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  background: #fff;
}

/* Dashboard spacing */
.gooutly-venues         { padding: 20px 0; }
.gooutly-venue-form p   { margin-bottom: 16px; }
.gooutly-venue-form p:last-child { margin-bottom: 0; }

/* =========================================================
   4. EVENTS FILTER BAR
   
   WPEM renders this DOM structure:
     .search-form-container
       .wpem-row  — Keywords | [Category col, hidden] | Date Range
       .wpem-row  — Event Type (Chosen widget, its own row)
       .wpem-row  — [our] Postcode + Radius pair

   Strategy: CSS Grid on the outer container with explicit
   grid-column placement on each .wpem-col. We avoid
   display:contents (category ghost col problem) by making
   each .wpem-row display:contents AND hiding the category
   col via both :has() and a direct ID-based rule.

   Desktop target (1024px+):
     col 1        col 2        col 3
     Keywords     Date Range   Event Type
     Postcode+Radius (spans cols 1-2)

   Mobile: all fields full-width, stacked.
========================================================= */
.wpem-event-filter-wrapper        { margin: 10px 0 32px; }
.wpem-event-filter-wrapper .wpem-form-label  { display: none !important; }
.wpem-event-filter-wrapper .wpem-form-group  { margin-bottom: 0 !important; }

/* Hide Category — belt AND braces */
select#search_categories,
#search_categories_chosen,
#search_categories_chosen *                              { display: none !important; }
.wpem-event-filter-wrapper .wpem-col:has(#search_categories),
.wpem-event-filter-wrapper .wpem-col:has(#search_categories_chosen) { display: none !important; }
/* Fallback: hide by col index if :has() fails (category is always col 2 in WPEM's first row) */
.wpem-event-filter-wrapper .search_events.search-form-container > .wpem-row:first-child > .wpem-col:nth-child(2) {
  display: none !important;
}

/* Hide search summary */
.wpem-main .search-summary,
.search-summary                                          { display: none !important; }

/* ── Mobile base: simple block stack ── */
.wpem-event-filter-wrapper .search_events.search-form-container {
  display: block !important;
}
.wpem-event-filter-wrapper .search_events.search-form-container .wpem-row {
  display: block !important;
  width: 100% !important;
  margin: 0 0 var(--go-gap) 0 !important;
  padding: 0 !important;
}
.wpem-event-filter-wrapper .search_events.search-form-container .wpem-col {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 0 var(--go-gap) 0 !important;
}
.wpem-event-filter-wrapper .search_events.search-form-container .wpem-col:last-child {
  margin-bottom: 0 !important;
}

/* Postcode + Radius — always side-by-side at all sizes */
.gooutly-location-col  { width: 100% !important; margin-bottom: 0 !important; }
.gooutly-location-pair {
  display: flex !important;
  gap: var(--go-gap);
  align-items: stretch;
}
.gooutly-postcode-group { flex: 1 1 0; min-width: 0; }
.gooutly-radius-group   { flex: 0 0 130px; }

/* ── Use My Location + Reset wrap ──
   Hidden on desktop. Shown on mobile only.
   Centred with flex and justified centrally.
   Status message drops to its own line via flex-wrap. */
.gooutly-uselocation-wrap {
  display: none;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Use My Location button */
.gooutly-uselocation-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--go-radius);
  border: 1px solid var(--go-blue);
  background: #fff;
  color: var(--go-blue);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
}
.gooutly-uselocation-btn:hover:not(:disabled) {
  background: var(--go-blue);
  color: #fff;
}
.gooutly-uselocation-btn:disabled {
  opacity: .6;
  cursor: default;
}

/* Mobile Reset button */
.gooutly-mobilereset-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--go-radius);
  border: 1px solid var(--go-border);
  background: #f5f5f5;
  color: #333;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .2s ease;
  white-space: nowrap;
}
.gooutly-mobilereset-btn:hover { background: #e9e9e9; color: #333; }

/* Location status message */
.gooutly-location-status {
  font-size: .9em;
  line-height: 1.4;
  width: 100%;
  text-align: center;
}
.gooutly-location-status--error { color: #c0392b; }
.gooutly-location-status--ok    { color: #27ae60; }

@media (max-width: 768px) {
  .gooutly-uselocation-wrap { display: flex; }
}

/* ── Desktop (1024px+): CSS Grid, 3 equal columns ── */
@media (min-width: 1024px) {
  .wpem-event-filter-wrapper .search_events.search-form-container {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    gap: var(--go-gap) !important;
    align-items: end !important;
  }

  /* Flatten each .wpem-row so its .wpem-col children become direct grid items */
  .wpem-event-filter-wrapper .search_events.search-form-container .wpem-row {
    display: contents !important;
    margin: 0 !important;
  }

  /* Reset col margins in grid context */
  .wpem-event-filter-wrapper .search_events.search-form-container .wpem-col {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* Row 1, col 1: Keywords */
  .wpem-event-filter-wrapper .search_events.search-form-container > .wpem-row:nth-child(1) > .wpem-col:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  /* Row 1, col 2: Category — hidden */
  .wpem-event-filter-wrapper .search_events.search-form-container > .wpem-row:nth-child(1) > .wpem-col:nth-child(2) {
    display: none !important;
  }
  /* Row 1, col 3: Date Range */
  .wpem-event-filter-wrapper .search_events.search-form-container > .wpem-row:nth-child(1) > .wpem-col:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
  /* Row 2: Event Type — col 3 */
  .wpem-event-filter-wrapper .search_events.search-form-container > .wpem-row:nth-child(2) > .wpem-col:nth-child(1) {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
  /* Row 3 (our location row): spans cols 1-2, row 2 */
  .wpem-event-filter-wrapper .search_events.search-form-container > .wpem-row:nth-child(3) > .wpem-col:nth-child(1) {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
  }
  /* Row 3 col 2: Desktop Reset button — col 3 row 2 */
  .wpem-event-filter-wrapper .search_events.search-form-container > .wpem-row:nth-child(3) > .wpem-col:nth-child(2) {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }
}

/* Shared field styles */
.wpem-event-filter-wrapper input[type="text"],
.wpem-event-filter-wrapper select,
#gooutly_postcode,
#gooutly_radius,
.wpem-event-filter-wrapper .comiseo-daterangepicker-triggerbutton {
  height: var(--go-input-h) !important;
  width: 100% !important;
  border-radius: var(--go-radius) !important;
  border: 1px solid var(--go-border) !important;
  background: #fff !important;
  font-size: 16px !important;
  box-shadow: none !important;
  box-sizing: border-box;
  padding: 0 16px !important;
  line-height: var(--go-input-h) !important;
}
.wpem-event-filter-wrapper input[type="text"]:hover,
.wpem-event-filter-wrapper select:hover,
.wpem-event-filter-wrapper .comiseo-daterangepicker-triggerbutton:hover {
  border-color: var(--go-blue) !important;
}
.wpem-event-filter-wrapper input[type="text"]:focus,
.wpem-event-filter-wrapper select:focus {
  border-color: var(--go-blue) !important;
  outline: none;
}

/* Chosen (Event Type) */
#search_event_types_chosen                         { height: var(--go-input-h) !important; width: 100% !important; }
#search_event_types_chosen .chosen-single {
  height: var(--go-input-h) !important;
  line-height: var(--go-input-h) !important;
  border-radius: var(--go-radius) !important;
  border: 1px solid var(--go-border) !important;
  background: #fff !important;
  padding: 0 40px 0 16px !important;
  box-shadow: none !important;
}
#search_event_types_chosen.chosen-container-active .chosen-single { border-color: var(--go-blue) !important; }
#search_event_types_chosen .chosen-single div                      { top: 12px !important; }
#search_event_types_chosen .chosen-single span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-right: 0 !important;
}
#search_event_types_chosen .chosen-drop {
  border-radius: var(--go-radius);
  border: 1px solid var(--go-border);
  box-shadow: var(--go-shadow);
  padding-top: 0 !important;
}
#search_event_types_chosen .chosen-search          { display: none !important; }
#search_event_types_chosen .chosen-results li      { padding: 10px 14px; font-size: 15px; }
#search_event_types_chosen .chosen-results li.highlighted { background: var(--go-blue); color: #fff; }

/* Date-range button */
.wpem-event-filter-wrapper .comiseo-daterangepicker-triggerbutton {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  line-height: normal !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}
.wpem-event-filter-wrapper .comiseo-daterangepicker-triggerbutton .ui-icon {
  flex: 0 0 auto !important;
  margin-left: 12px !important;
}

/* No-results alert */
.wpem-alert.wpem-alert-danger {
  border-radius: var(--go-radius);
  border: 1px solid rgba(220, 80, 80, .20);
}

/* =========================================================
   Date-range calendar — month title clickable hint
========================================================= */
.ui-datepicker-title {
  cursor: pointer;
  user-select: none;
}
.ui-datepicker-title:hover .ui-datepicker-month {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

/* =========================================================
   Date-range calendar — mobile full-screen overlay
   Body gets class gooutly-picker-open added by JS Section 51
   when the trigger button is clicked on mobile (<=768px).
   A real #gooutly-picker-backdrop div is injected by JS.
========================================================= */
#gooutly-picker-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

@media (max-width: 768px) {

  /* ── Mobile date picker ──────────────────────────────────────
     CSS only applies when JS adds .gooutly-picker-open to body.
     This prevents the picker showing on page load before comiseo
     has set display:none on it. Container is display:block so
     jQuery UI dialog (Apply/Clear/Cancel) is never broken.     */

  body.gooutly-picker-open .comiseo-daterangepicker {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 10px 10px 100px !important;
    box-sizing: border-box !important;
    transform: none !important;
    margin: 0 !important;
    display: block !important;
  }

  /* Admin bar */
  body.admin-bar.gooutly-picker-open .comiseo-daterangepicker {
    top: 46px !important;
    height: calc(100vh - 46px) !important;
  }

  /* Months: force stacked (JS also does this via setProperty) */
  body.gooutly-picker-open [class*="ui-datepicker-group"] {
    float: none !important;
    width: 100% !important;
    clear: both !important;
    display: block !important;
  }
  body.gooutly-picker-open [class*="ui-datepicker-multi"] {
    width: 100% !important;
    float: none !important;
  }
  body.gooutly-picker-open .ui-datepicker table {
    width: 100% !important;
    table-layout: fixed !important;
    font-size: 12px !important;
  }
  body.gooutly-picker-open .ui-datepicker td,
  body.gooutly-picker-open .ui-datepicker th {
    padding: 2px !important;
    font-size: 12px !important;
  }

  /* Presets: style the links, clip overflow so text doesn't bleed into calendar */
  body.gooutly-picker-open .comiseo-daterangepicker-presets {
    overflow: hidden !important;
  }
  body.gooutly-picker-open .comiseo-daterangepicker-presets li a,
  body.gooutly-picker-open .comiseo-daterangepicker-presets li .ui-menu-item-wrapper {
    display: block !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    background: #f9f9f9 !important;
    font-size: 12px !important;
    text-align: center !important;
    white-space: normal !important;
    padding: 8px 4px !important;
  }
  body.gooutly-picker-open .comiseo-daterangepicker-presets li a.ui-state-active {
    background: var(--go-blue) !important;
    color: #fff !important;
    border-color: var(--go-blue) !important;
  }

  /* Backdrop */
  #gooutly-picker-backdrop { display: none; }

  /* Hide desktop Reset on mobile */
  #gooutly-desktop-reset,
  .gooutly-desktop-reset-col {
    display: none !important;
  }
}


/* Desktop reset col — hidden on mobile via the max-width:768px block above */
.gooutly-desktop-reset-col {
  display: none;
}
@media (min-width: 1024px) {
  .gooutly-desktop-reset-col {
    display: block !important;
  }
}

/* ── Reset Filters button (desktop) ── */
#gooutly-desktop-reset,
.gooutly-reset-filters {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--go-input-h) !important;
  width: auto !important;
  padding: 0 20px !important;
  border-radius: var(--go-radius) !important;
  border: 1px solid var(--go-border) !important;
  background: #f5f5f5 !important;
  color: #444 !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  transition: background .2s ease, border-color .2s ease !important;
  text-decoration: none !important;
}
#gooutly-desktop-reset:hover,
.gooutly-reset-filters:hover {
  background: #ebebeb !important;
  border-color: #bbb !important;
  color: #222 !important;
}

/* =========================================================
   5. EVENTS LISTING – card grid
   ─────────────────────────────────────────────────────
   We use :has(> li.gooutly-event-row) to find the actual
   parent of our event cards — whatever element WPEM uses —
   and turn it into a CSS grid. This avoids any dependency on
   WPEM’s class names (event_listings, wpem-event-listings, etc).
   The JS in Section 52 uses firstItem.parentElement for the
   same reason, then forces styles via setProperty('important').
========================================================= */

/* ── 1. Collapse WPEM’s outer row/col layout to a vertical stack ──
   Uses > direct child combinator so this ONLY targets the outer wrapper
   rows (.wpem-main > .wpem-row), NOT the rows inside the filter form.
   Without >, the filter bar’s own .wpem-row elements were also collapsed,
   which corrupted the Search/Date Range/Event Type/Postcode layout. ── */
.wpem-main:has(.wpem-event-filter-wrapper) > .wpem-row {
  display: block !important;
  float: none !important;
  width: 100% !important;
}
.wpem-main:has(.wpem-event-filter-wrapper) > .wpem-row > [class*="wpem-col"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* ── 1B. Restore single event page two-column layout ──
   Explicitly set flexbox so the Date/Time/Share sidebar sits
   correctly to the right of the main content. ── */
.single-event_listing .wpem-single-event-body > .wpem-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 24px !important;
  width: 100% !important;
  float: none !important;
}
.single-event_listing .wpem-single-event-left-content {
  flex: 1 1 60% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
}
.single-event_listing .wpem-single-event-right-content {
  flex: 0 0 280px !important;
  width: auto !important;
  max-width: 320px !important;
  float: none !important;
}
@media (max-width: 640px) {
  .single-event_listing .wpem-single-event-body > .wpem-row { flex-direction: column !important; }
  .single-event_listing .wpem-single-event-right-content { flex: 1 1 100% !important; max-width: 100% !important; }
}

/* ── 2. Constrain and centre the whole block ── */
.wpem-main { max-width: 1100px; margin: 0 auto; }

/* ── 3. Target the actual parent of our event cards ── */
/* :has() finds whatever element contains li.gooutly-event-row,
   regardless of what WPEM calls it (ul, div, etc.) */
*:has(> li.gooutly-event-row) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 20px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 20px 0 0 !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 3 columns on tablet and PC */
@media (min-width: 768px) {
  *:has(> li.gooutly-event-row) {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ── 4. Each event card row ── */
li.gooutly-event-row {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  list-style: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Card fills full cell height */
li.gooutly-event-row .gooutly-latest-events__card {
  flex: 1 1 auto;
}

/* Event type badge — shared by listing cards and single event page */
.gooutly-event-type-badge {
  display: inline-block;
  background: var(--go-blue);
  color: #fff;
  font-size: .78em;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: .01em;
}

/* =========================================================
   5B. LOAD MORE BUTTON + END OF RESULTS
========================================================= */

/* WPEM's Load More button wrapper */
.wpem-load-more-event-listings,
.load_more_events {
  text-align: center;
  margin: 28px 0 12px;
}

/* The button itself — matches primary CTA style */
.wpem-load-more-event-listings a,
.wpem-load-more-event-listings button,
a.load_more_event_listing,
button.load_more_event_listing {
  display: inline-block;
  background: #fff !important;
  color: var(--go-blue) !important;
  border: 2px solid var(--go-blue) !important;
  padding: 12px 32px !important;
  border-radius: var(--go-radius) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  box-shadow: none !important;
}
.wpem-load-more-event-listings a:hover,
.wpem-load-more-event-listings button:hover,
a.load_more_event_listing:hover,
button.load_more_event_listing:hover {
  background: var(--go-blue) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Loading spinner state */
.wpem-load-more-event-listings a.loading,
.wpem-load-more-event-listings button.loading,
a.load_more_event_listing.loading,
button.load_more_event_listing.loading {
  opacity: .65;
  cursor: default;
  pointer-events: none;
}

/* "No more events" end-of-results message */
.wpem-event-listings + p,
.gooutly-no-more-events,
p.no-more-events {
  text-align: center;
  color: #888;
  font-size: .92em;
  margin: 20px 0 32px;
  padding: 10px 0;
  border-top: 1px solid var(--go-border);
}

/* =========================================================
   6. SINGLE EVENT PAGE
========================================================= */

/* Venue block */
.gooutly-event-venue {
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  background: #fff;
}
.gooutly-event-venue__addr          { margin-top: 6px; opacity: .85; }
.single-event_listing .gooutly-single-venue-line { margin: 8px 0 14px; font-weight: 650; opacity: .92; }

/* Remove register button */
.single-event_listing button.registration_button.wpem-theme-button { display: none !important; }

/* Remove sidebar */
.single-event_listing #sidebar,
.single-event_listing .et_right_sidebar #sidebar,
.single-event_listing .et_left_sidebar #sidebar,
.single-event_listing .wpem-single-event-sidebar,
.single-event_listing .wpem-event-sidebar,
.single-event_listing .event_listing_sidebar,
.single-event_listing .event_listing-sidebar,
.single-event_listing .wpem-sidebar,
.single-event_listing aside                        { display: none !important; }

.single-event_listing.et_right_sidebar #main-content .container::before,
.single-event_listing.et_left_sidebar  #main-content .container::before { display: none !important; }

.single-event_listing.et_right_sidebar #left-area,
.single-event_listing.et_left_sidebar  #left-area  { width: 100% !important; padding-right: 0 !important; }

/* Full-width content */
.single-event_listing .wpem-single-event-content,
.single-event_listing .wpem-event-content,
.single-event_listing .event_listing_content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin-right: 0 !important;
  padding-right: 0 !important;
}

/* WPEM banner image — full width, rounded corners */
.single-event_listing .wpem-single-event-banner img,
.single-event_listing .wpem-event-banner img,
.single-event_listing .event-banner img,
.single-event_listing img.wpem-event-banner-image,
.single-event_listing img.wpem-single-event-banner-image {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--go-radius);
}
/* Hide broken/empty banner images and no-image variants */
.single-event_listing .wpem-single-event-banner.wpem-no-image,
.single-event_listing .wpem-event-banner.wpem-no-image     { display: none !important; }
.single-event_listing img[src=""],
.single-event_listing img:not([src])                       { display: none !important; }

/* Hide Divi featured image + all post thumbnail placeholders.
   wp_insert_post (used by admin event form) creates posts without
   a featured image, causing Divi to render a large grey placeholder.
   We suppress every known variant unconditionally on event pages. */
.single-event_listing .et_post_meta_wrapper .wp-post-image,
.single-event_listing .et_post_meta_wrapper img,
.single-event_listing .et_featured_image,
.single-event_listing .et_featured_image img,
.single-event_listing .et_pb_post .et_pb_image_container,
.single-event_listing .et_pb_post .et_pb_image_container img,
.single-event_listing .single-post-thumbnail,
.single-event_listing .single-post-thumbnail img,
.single-event_listing .post-thumbnail,
.single-event_listing .post-thumbnail img,
.single-event_listing figure.wp-block-post-featured-image,
.single-event_listing figure.wp-block-post-featured-image img,
.single-event_listing .et_pb_image_container,
.single-event_listing .et_pb_image_container img,
.single-event_listing .wp-post-image,
.single-event_listing img.wp-post-image                    { display: none !important; }

.single-event_listing .et_featured_image,
.single-event_listing .et_pb_image_container               { background-image: none !important; }

/* Hide Divi post meta + WPEM organiser */
.single-event_listing .et_post_meta_wrapper .post-meta    { display: none !important; }
.single-event_listing .wpem-event-organizer                { display: none !important; }

/* =========================================================
   7. CHECKOUT PAGE
========================================================= */

/* Hide the WC "Your order" plain-text h3 — Divi renders its own */
.woocommerce-checkout h3#order_review_heading      { display: none !important; }

/* Ensure order review table renders */
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order,
.woocommerce-checkout .woocommerce-checkout-review-order-table,
.woocommerce-checkout table.shop_table,
.woocommerce-checkout table.shop_table tbody,
.woocommerce-checkout table.shop_table tr,
.woocommerce-checkout table.shop_table td,
.woocommerce-checkout table.shop_table th {
  display: revert !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  overflow: visible !important;
}

/* Ensure account creation block renders */
.woocommerce-checkout .create-account,
.woocommerce-checkout #createaccount,
.woocommerce-checkout .woocommerce-account-fields,
.woocommerce-checkout .woocommerce-account-fields * {
  display: revert !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
}

/* Hide address fields */
.woocommerce-checkout .woocommerce-billing-fields #billing_address_1_field,
.woocommerce-checkout .woocommerce-billing-fields #billing_address_2_field,
.woocommerce-checkout .woocommerce-billing-fields #billing_city_field,
.woocommerce-checkout .woocommerce-billing-fields #billing_state_field,
.woocommerce-checkout .woocommerce-billing-fields #billing_phone_field,
.woocommerce-checkout .woocommerce-billing-fields #billing_company_field {
  display: none !important;
}

/* =========================================================
   8. EVENT SUBMISSION FORM + SINGLE EVENT CLEANUP
========================================================= */

/* Quota counter shown to event owner on their listing page */
.gooutly-quota-counter {
  margin: 16px 0;
  padding: 10px 14px;
  border-radius: var(--go-radius);
  border: 1px solid var(--go-border);
  background: #f9f9f9;
  font-size: .95em;
  opacity: .85;
}

/* Hide WPEM account bar on submit form */
.woocommerce-MyAccount-content .wpem-account-bar,
.wpem-event-form .wpem-account-bar,
#submit-event-form .wpem-account-bar,
.wpem-account-message                              { display: none !important; }

/* Hide Registration email/URL field */
.wpem-event-form .field-registration,
.wpem-event-form [id*="registration"],
.wpem-event-form .wpem-form-group:has(input[name*="registration"]) { display: none !important; }

/* WPEM Event Preview page layout */
.wpem-event-preview-block .wpem-event-detail-location,
.wpem-event-preview-block .wpem-location-container,
.wpem-event-preview-block .wpem-event-online,
.wpem-event-preview-block li.wpem-event-online          { display: none !important; }

.wpem-event-preview-block .wpem-event-views,
.wpem-event-preview-block .wpem-view-count              { display: none !important; }

.wpem-event-preview-block {
  border: 1px solid var(--go-border) !important;
  border-radius: var(--go-radius) !important;
  box-shadow: var(--go-shadow) !important;
}

/* All known location/online-event class variants */
.wpem-location-container,
.wpem-form-group.wpem-location-container,
.wpem-event-detail-location,
.wpem-event-location,
.wpem-event-online,
li.wpem-event-online,
.wpem-single-event-sidebar-info .wpem-event-detail-location { display: none !important; }

.wpem-single-event-sidebar-info > div:has(> h3.wpem-heading-text:first-of-type ~ .wpem-location-container),
.wpem-single-event-sidebar-info > div:has(> .wpem-location-container),
.wpem-single-event-sidebar-info > div:has(> .wpem-event-detail-location) { display: none !important; }

.single-event_listing h3.wpem-heading-text:has(+ .wpem-location-container),
.single-event_listing h3.wpem-heading-text:has(+ .wpem-event-detail-location) { display: none !important; }

.single-event_listing .wpem-event-detail li.wpem-event-online,
.single-event_listing ul.wpem-event-detail li:has(.wpem-event-online) { display: none !important; }

/* Hide register for event section */
.wpem-event-registration,
.event_listing_registration,
.event_registration.registration,
.wpem-register-event                              { display: none !important; }

/* Hide sidebar widgets (Recent Posts etc.) */
.single-event_listing .widget-area,
.single-event_listing #secondary,
.single-event_listing .sidebar                    { display: none !important; }

/* =========================================================
   9. MOBILE CENTRING (max 599px)
========================================================= */
@media (max-width: 599px) {

  .gooutly-venues,
  .gooutly-event-venue,
  .gooutly-msg,
  .gooutly-venue-list li,
  .wpem-event-listings,
  .wpem-main,
  .single-event_listing .wpem-single-event-content,
  .single-event_listing .wpem-event-content         { text-align: center; }

  .gooutly-cta-primary {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .gooutly-venue-form input[type="text"],
  .gooutly-venue-form textarea                       { max-width: 100%; text-align: left; }

  .gooutly-venue-list                                { text-align: center; }
  .gooutly-event-venue__name,
  .gooutly-event-venue__addr                         { text-align: center; }

  .wpem-event-filter-wrapper input[type="text"],
  .wpem-event-filter-wrapper select,
  #gooutly_postcode,
  #gooutly_radius                                    { text-align: left; }

  .wpem-event-filter-wrapper                         { margin-bottom: 24px; }
}

/* =========================================================
   10. BACK TO EVENTS BUTTON (single event page)
========================================================= */
.gooutly-back-wrap {
  margin-bottom: 12px;
}
.gooutly-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--go-radius);
  border: 1px solid var(--go-border);
  background: #f5f5f5;
  color: #333 !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s ease, transform .15s ease;
}
.gooutly-back-btn:hover {
  background: #e9e9e9;
  transform: translateX(-2px);
}

/* =========================================================
   11. PUBLIC VENUES DIRECTORY [gooutly_venues_directory]
       Includes venue list, search filter, and events panel.
========================================================= */

/* ── Search field ── */
.gooutly-venues-dir__search-wrap {
  margin-bottom: 20px;
}
.gooutly-venues-dir__search {
  display: block;
  width: 100%;
  max-width: 480px;
  height: var(--go-input-h);
  padding: 0 16px;
  border-radius: var(--go-radius);
  border: 1px solid var(--go-border);
  font: inherit;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.gooutly-venues-dir__search:focus {
  border-color: var(--go-blue);
  outline: none;
}

/* ── Venue list ── */
.gooutly-venues-dir__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gooutly-venues-dir__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  background: #fff;
  margin-bottom: 10px;
  transition: box-shadow .15s ease;
}
.gooutly-venues-dir__item:hover {
  box-shadow: var(--go-shadow);
}

/* Venue name — clickable button */
.gooutly-venues-dir__name-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 1.05em;
  font-weight: 700;
  color: var(--go-blue);
  cursor: pointer;
  text-decoration: underline;
  text-align: left;
  line-height: 1.4;
}
.gooutly-venues-dir__name-btn:hover {
  color: var(--go-blue-dark);
}

.gooutly-venues-dir__addr {
  font-size: .9em;
  opacity: .8;
}
.gooutly-venues-dir__no-results {
  opacity: .7;
  font-style: italic;
}

/* ── Back To Venues button ── */
.gooutly-venues-dir__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--go-radius);
  border: 1px solid var(--go-border);
  background: #f5f5f5;
  color: #333;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 22px;
  transition: background .2s ease, transform .15s ease;
}
.gooutly-venues-dir__back-btn:hover {
  background: #e9e9e9;
  transform: translateX(-2px);
}

/* ── Events panel heading ── */
.gooutly-venues-dir__events-title {
  font-size: 1.4em;
  margin: 0 0 6px;
  color: var(--go-blue-dark);
}

/* ── Venue address below the panel title ── */
.gooutly-venues-dir__events-addr {
  font-size: .95em;
  opacity: .75;
  margin: 0 0 24px;
}

/* ── Loading / empty states ── */
.gooutly-venues-dir__loading,
.gooutly-venues-dir__no-events {
  opacity: .7;
  font-style: italic;
  margin: 0;
}

/* ── Card grid in the venue events panel ── */
/* Reuses all .gooutly-latest-events grid and card styles from Section 18. */
.gooutly-venues-dir__event-grid {
  margin-top: 0 !important;
}


/* =========================================================
   12. YOUR EVENTS (dashboard) + STATUS BADGES
========================================================= */
.gooutly-your-events {
  margin-top: 36px;
  padding-top: 4px;
}
.gooutly-your-events h3 {
  margin-bottom: 16px;
}

.gooutly-your-events__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gooutly-your-events__item {
  padding: 14px 16px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  background: #fff;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gooutly-your-events__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gooutly-your-events__venue {
  font-size: .88em;
  opacity: .7;
}
.gooutly-your-events__title {
  font-weight: 700;
  font-size: 1.05em;
  color: var(--go-blue) !important;
  text-decoration: none !important;
}
.gooutly-your-events__title:hover {
  text-decoration: underline !important;
}
.gooutly-your-events__date {
  font-size: .9em;
  opacity: .75;
}

/* Venue slots count — sits below upgrade button */
.gooutly-venue-slots {
  text-align: left;
  margin: 6px 0 0;
  font-size: .9em;
  opacity: .75;
}

/* Quota note — sits below submit button, matches venue slots style */
.gooutly-quota-note {
  margin: 6px 0 0;
  font-size: .9em;
  opacity: .75;
}

/* Your Venues heading — breathing room above */
.gooutly-your-venues-heading {
  margin-top: 32px;
  margin-bottom: 16px;
}

/* Your Events heading — centred on mobile only */
@media (max-width: 599px) {
  .gooutly-your-venues-heading,
  .gooutly-your-events h3 {
    text-align: center;
  }
}

/* Status badges */
.gooutly-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.6;
}
.gooutly-badge--live    { background: #e6f9ee; color: #1a7a3c; border: 1px solid #a8e6bf; }
.gooutly-badge--pending { background: #fff8e1; color: #7a5200; border: 1px solid #ffe082; }
.gooutly-badge--draft   { background: #f0f0f0; color: #555;    border: 1px solid #ddd;   }
/* =========================================================
   13. ADMIN VENUE CLAIMING (Section 40)
========================================================= */

/* ── Claim CTA block on single event pages ── */
.gooutly-claim-cta {
  margin: 24px 0 8px;
  padding: 20px 22px;
  border: 1px dashed var(--go-blue);
  border-radius: var(--go-radius);
  background: #f0f6ff;
}
.gooutly-claim-cta__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.gooutly-claim-cta__icon {
  font-size: 1.8em;
  line-height: 1;
  flex: 0 0 auto;
  margin-top: 2px;
}
.gooutly-claim-cta__body {
  flex: 1;
}
.gooutly-claim-cta__heading {
  display: block;
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--go-blue);
}
.gooutly-claim-cta__text {
  margin: 0 0 14px;
  font-size: .95em;
  line-height: 1.5;
  opacity: .9;
}
.gooutly-claim-cta__btn {
  display: inline-block;
}

/* ── Claim confirmation panel on dashboard ── */
.gooutly-claim-confirm {
  margin: 0 0 32px;
  padding: 22px 22px 20px;
  border: 1px solid var(--go-blue);
  border-radius: var(--go-radius);
  background: #f0f6ff;
}
.gooutly-claim-confirm__heading {
  margin: 0 0 16px;
  font-size: 1.15em;
  color: var(--go-blue);
}
.gooutly-claim-confirm__venue-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  background: #fff;
  margin-bottom: 14px;
}
.gooutly-claim-confirm__venue-name { font-size: 1.05em; }
.gooutly-claim-confirm__venue-addr { font-size: .9em; opacity: .8; }
.gooutly-claim-confirm__info {
  margin: 0 0 14px;
  font-size: .92em;
  opacity: .85;
  line-height: 1.5;
}
.gooutly-claim-confirm__form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Unclaimed venues browse panel on dashboard ── */
.gooutly-unclaimed-venues {
  margin: 32px 0 20px;
  padding-top: 4px;
  border-top: 1px solid var(--go-border);
}
.gooutly-unclaimed-venues__heading {
  margin: 0 0 8px;
  font-size: 1.1em;
}
.gooutly-unclaimed-venues__intro {
  margin: 0 0 16px;
  font-size: .92em;
  opacity: .8;
  line-height: 1.5;
}

.gooutly-unclaimed-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.gooutly-unclaimed-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  background: #fff;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.gooutly-unclaimed-list__details {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.gooutly-unclaimed-list__name { font-size: 1em; font-weight: 700; }
.gooutly-unclaimed-list__addr { font-size: .88em; opacity: .75; }
.gooutly-unclaimed-list__btn {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--go-radius);
  background: var(--go-blue);
  color: #fff !important;
  font-size: .9em;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s ease;
  flex: 0 0 auto;
}
.gooutly-unclaimed-list__btn:hover { background: var(--go-blue-dark); }

/* Pending claim badge in the browse list */
.gooutly-unclaimed-list__pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: var(--go-radius);
  background: #fff8e1;
  color: #7a5200;
  border: 1px solid #ffe082;
  font-size: .85em;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Success notice */
.gooutly-claim-success {
  border-color: rgba(60, 180, 90, .35) !important;
  background: #f0fff4;
}

/* Pending / info notice */
.gooutly-msg--info {
  border-color: rgba(33, 150, 243, .35) !important;
  background: #e8f4fd;
  color: #0d47a1;
}
.gooutly-claim-pending-msg {
  border-color: rgba(255, 193, 7, .45) !important;
  background: #fff8e1;
  color: #7a5200;
}

/* Mobile adjustments */
@media (max-width: 599px) {
  .gooutly-claim-cta__inner { flex-direction: column; gap: 10px; }
  .gooutly-claim-cta__icon  { display: none; }
  .gooutly-unclaimed-list__item { flex-direction: column; align-items: flex-start; }
  .gooutly-unclaimed-list__btn  { width: 100%; text-align: center; box-sizing: border-box; }
  .gooutly-unclaimed-list__pending-badge { width: 100%; justify-content: center; box-sizing: border-box; }
  .gooutly-claim-confirm__form  { flex-direction: column; align-items: flex-start; }
}
/* =========================================================
   14. ADMIN EVENT FORM [gooutly_admin_event_form]
========================================================= */
.gooutly-aef {
  max-width: 680px;
  margin: 0 auto;
}

.gooutly-aef__step {
  padding: 24px 0 8px;
}

.gooutly-aef__heading {
  margin: 0 0 20px;
  font-size: 1.2em;
}

.gooutly-aef__subheading {
  margin: 0 0 14px;
  font-size: 1em;
  font-weight: 700;
}

.gooutly-aef__field {
  margin-bottom: 16px;
}

.gooutly-aef__label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: .95em;
}

.gooutly-aef__req  { color: #c0392b; }
.gooutly-aef__note { font-weight: 400; opacity: .65; font-size: .9em; }

.gooutly-aef__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  font: inherit;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.gooutly-aef__input:focus {
  border-color: var(--go-blue);
  outline: none;
}

.gooutly-aef__textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}

/* Side-by-side date + time */
.gooutly-aef__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--go-gap);
}
@media (max-width: 480px) {
  .gooutly-aef__row { grid-template-columns: 1fr; }
}

/* Venue suggestions dropdown */
.gooutly-aef__suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--go-border);
  border-top: none;
  border-radius: 0 0 var(--go-radius) var(--go-radius);
  background: #fff;
  box-shadow: var(--go-shadow);
  max-height: 260px;
  overflow-y: auto;
  position: relative;
  z-index: 100;
}
.gooutly-aef__suggestion {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--go-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .15s ease;
}
.gooutly-aef__suggestion:last-child { border-bottom: none; }
.gooutly-aef__suggestion:hover      { background: #f0f6ff; }
.gooutly-aef__suggestion strong     { font-size: .95em; }
.gooutly-aef__suggestion span       { font-size: .85em; opacity: .7; }

/* Hint text (no results) */
.gooutly-aef__hint {
  margin: 6px 0 0;
  font-size: .9em;
  opacity: .75;
  font-style: italic;
}

/* Selected venue pill */
.gooutly-aef__selected-venue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #e8f3ff;
  border: 1px solid var(--go-blue);
  border-radius: 30px;
  font-size: .95em;
  font-weight: 600;
  color: var(--go-blue);
  margin: 8px 0 12px;
}

.gooutly-aef__clear-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 1em;
  color: var(--go-blue);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: .7;
}
.gooutly-aef__clear-btn:hover { opacity: 1; }

/* New venue panel */
.gooutly-aef__panel {
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px dashed var(--go-border);
  border-radius: var(--go-radius);
  background: #fafafa;
}

.gooutly-aef__new-venue-wrap {
  margin: 8px 0 4px;
}

/* Link-style buttons */
.gooutly-aef__link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .95em;
  color: var(--go-blue);
  cursor: pointer;
  text-decoration: underline;
}
.gooutly-aef__link-btn:hover { color: var(--go-blue-dark); }

/* Error message */
.gooutly-aef__error {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: #fff0f0;
  border: 1px solid rgba(220,80,80,.3);
  border-radius: var(--go-radius);
  font-size: .93em;
  color: #c0392b;
}

/* Step nav */
.gooutly-aef__step-nav {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Venue recap line on step 2 */
.gooutly-aef__venue-recap {
  margin: 0 0 20px;
  font-size: .95em;
  opacity: .85;
}

/* Banner preview */
.gooutly-aef__banner-preview {
  margin-top: 10px;
}
.gooutly-aef__banner-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--go-radius);
  object-fit: cover;
  display: block;
}

/* Success screen */
.gooutly-aef__success {
  text-align: center;
  padding: 32px 20px;
}
.gooutly-aef__success-icon {
  font-size: 3em;
  margin-bottom: 12px;
}
.gooutly-aef__success-actions {
  margin: 20px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
/* =========================================================
   14. ADMIN EVENT FORM [gooutly_admin_event_form]
========================================================= */
.gooutly-aef {
  max-width: 680px;
  margin: 0 auto;
}
.gooutly-aef__step       { padding: 24px 0 8px; }
.gooutly-aef__heading    { margin: 0 0 20px; font-size: 1.2em; }
.gooutly-aef__subheading { margin: 0 0 14px; font-size: 1em; font-weight: 700; }
.gooutly-aef__field      { margin-bottom: 16px; }
.gooutly-aef__label      { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95em; }
.gooutly-aef__req        { color: #c0392b; }
.gooutly-aef__note       { font-weight: 400; opacity: .65; font-size: .9em; }

.gooutly-aef__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  font: inherit;
  font-size: 15px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .2s ease;
}
.gooutly-aef__input:focus { border-color: var(--go-blue); outline: none; }
.gooutly-aef__textarea    { height: auto; padding: 12px 14px; resize: vertical; }

/* Side-by-side date + time */
.gooutly-aef__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--go-gap); }
@media (max-width: 480px) { .gooutly-aef__row { grid-template-columns: 1fr; } }

/* Venue suggestions dropdown */
.gooutly-aef__suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--go-border);
  border-top: none;
  border-radius: 0 0 var(--go-radius) var(--go-radius);
  background: #fff;
  box-shadow: var(--go-shadow);
  max-height: 260px;
  overflow-y: auto;
  position: relative;
  z-index: 100;
}
.gooutly-aef__suggestion {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--go-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .15s ease;
}
.gooutly-aef__suggestion:last-child { border-bottom: none; }
.gooutly-aef__suggestion:hover      { background: #f0f6ff; }
.gooutly-aef__suggestion strong     { font-size: .95em; }
.gooutly-aef__suggestion span       { font-size: .85em; opacity: .7; }

.gooutly-aef__hint { margin: 6px 0 0; font-size: .9em; opacity: .75; font-style: italic; }

/* Selected venue pill */
.gooutly-aef__selected-venue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #e8f3ff;
  border: 1px solid var(--go-blue);
  border-radius: 30px;
  font-size: .95em;
  font-weight: 600;
  color: var(--go-blue);
  margin: 8px 0 12px;
}
.gooutly-aef__clear-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 1em;
  color: var(--go-blue);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: .7;
}
.gooutly-aef__clear-btn:hover { opacity: 1; }

/* New venue panel */
.gooutly-aef__panel {
  margin: 16px 0;
  padding: 18px 20px;
  border: 1px dashed var(--go-border);
  border-radius: var(--go-radius);
  background: #fafafa;
}
.gooutly-aef__new-venue-wrap { margin: 8px 0 4px; }

/* Link-style buttons */
.gooutly-aef__link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: .95em;
  color: var(--go-blue);
  cursor: pointer;
  text-decoration: underline;
}
.gooutly-aef__link-btn:hover { color: var(--go-blue-dark); }

/* Error message */
.gooutly-aef__error {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: #fff0f0;
  border: 1px solid rgba(220,80,80,.3);
  border-radius: var(--go-radius);
  font-size: .93em;
  color: #c0392b;
}

/* Step nav */
.gooutly-aef__step-nav {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.gooutly-aef__venue-recap { margin: 0 0 20px; font-size: .95em; opacity: .85; }

/* ── Banner file upload ── */
.gooutly-aef__upload-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gooutly-aef__upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  background: #f5f5f5;
  font: inherit;
  font-size: .95em;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.gooutly-aef__upload-btn:hover { background: #e9e9e9; border-color: var(--go-blue); }

.gooutly-aef__upload-filename {
  font-size: .9em;
  opacity: .75;
  word-break: break-all;
}

/* "or paste a URL" divider */
.gooutly-aef__banner-or {
  margin: 12px 0 0;
  font-size: .85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .45;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gooutly-aef__banner-or::before,
.gooutly-aef__banner-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--go-border);
}

/* Banner preview */
.gooutly-aef__banner-preview     { margin-top: 10px; }
.gooutly-aef__banner-preview img {
  max-width: 100%;
  max-height: 180px;
  border-radius: var(--go-radius);
  object-fit: cover;
  display: block;
}

/* Success screen */
.gooutly-aef__success        { text-align: center; padding: 32px 20px; }
.gooutly-aef__success-icon   { font-size: 3em; margin-bottom: 12px; }
.gooutly-aef__success-actions {
  margin: 20px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
/* =========================================================
   16. MY ACCOUNT — BECOME A VENUE PANEL
   Our panel is injected via woocommerce_register_form hook
   at priority 5, before WC's own fields. CSS hides the
   native register heading, fields, privacy text and button
   so only our panel shows in the right column.
========================================================= */

/* Hide native register form elements — keep our panel visible */
.woocommerce-account .u-column2 h2,
.woocommerce-account .u-column2 .woocommerce-form-register .woocommerce-form__label,
.woocommerce-account .u-column2 .woocommerce-form-register .woocommerce-form__input,
.woocommerce-account .u-column2 .woocommerce-form-register .woocommerce-form-row,
.woocommerce-account .u-column2 .woocommerce-form-register .woocommerce-privacy-policy-text,
.woocommerce-account .u-column2 .woocommerce-form-register .woocommerce-form__label-checkbox,
.woocommerce-account .u-column2 .woocommerce-form-register .button[name="register"],
.woocommerce-account .u-column2 .woocommerce-form-register > p:not(:has(.gooutly-become-venue)) {
  display: none !important;
}

/* Our panel */
.woocommerce-page.woocommerce-account .gooutly-become-venue,
.gooutly-become-venue {
  background: #f4f8ff;
  border: 1px solid rgba(0, 92, 169, .18);
  border-radius: var(--go-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* "New to GoOutly?" badge */
.gooutly-become-venue__badge {
  display: inline-block;
  background: var(--go-blue);
  color: #fff;
  font-size: .78em;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
}

.gooutly-become-venue__heading {
  margin: 0;
  font-size: 1.25em;
  color: #1a1a1a;
  line-height: 1.3;
}

.gooutly-become-venue__body {
  margin: 0;
  font-size: .95em;
  line-height: 1.6;
  color: #444;
}

.gooutly-become-venue__cta {
  align-self: flex-start;
  margin-top: 4px;
}

.gooutly-become-venue__footnote {
  margin: 0;
  font-size: .85em;
  color: #777;
  line-height: 1.5;
}

@media (max-width: 599px) {
  .gooutly-become-venue {
    padding: 24px 18px;
  }
  .gooutly-become-venue__cta {
    align-self: stretch;
    text-align: center;
  }
}

/* =========================================================
   15. DUPLICATE EVENT MODAL
========================================================= */

/* Duplicate button row below each event card */
.gooutly-your-events__actions {
  margin-top: 4px;
}

.gooutly-dup-trigger {
  font-size: .88em;
  color: var(--go-blue);
  opacity: .85;
  transition: opacity .15s ease;
}
.gooutly-dup-trigger:hover { opacity: 1; }

/* Full-viewport overlay */
.gooutly-dup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

/* Modal card */
.gooutly-dup-modal {
  background: #fff;
  border-radius: var(--go-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
}

/* Close button */
.gooutly-dup-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.15em;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 5px 7px;
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.gooutly-dup-modal__close:hover { background: #f0f0f0; color: #333; }

.gooutly-dup-modal__heading {
  margin: 0 0 4px;
  font-size: 1.2em;
}
.gooutly-dup-modal__intro {
  margin: 0 0 20px;
  font-size: .92em;
  opacity: .7;
  line-height: 1.5;
}

/* Form layout */
.gooutly-dup-form  { display: flex; flex-direction: column; gap: 14px; }
.gooutly-dup-field { display: flex; flex-direction: column; gap: 5px; }

.gooutly-dup-label {
  font-size: .88em;
  font-weight: 700;
  color: #333;
}
.gooutly-dup-optional {
  font-weight: 400;
  opacity: .6;
}

/* All inputs, selects, textarea in modal */
.gooutly-dup-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--go-border);
  border-radius: 8px;
  font: inherit;
  font-size: .95em;
  box-sizing: border-box;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: auto;
}
.gooutly-dup-input:focus {
  outline: none;
  border-color: var(--go-blue);
  box-shadow: 0 0 0 3px rgba(0, 92, 169, .12);
}
input[readonly].gooutly-dup-input {
  background: #f7f7f7;
  color: #666;
  cursor: default;
}

.gooutly-dup-textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

/* Two-column date/time rows */
.gooutly-dup-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Action buttons */
.gooutly-dup-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Success message links */
.gooutly-dup-modal .gooutly-msg--success a {
  color: #1a7a3c;
  font-weight: 600;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .gooutly-dup-row   { grid-template-columns: 1fr; }
  .gooutly-dup-modal { padding: 24px 18px 20px; }
}
/* =========================================================
   17A. SINGLE EVENT — DISCLAIMER
========================================================= */
.gooutly-event-disclaimer {
  margin: 28px 0 8px;
  padding: 14px 18px;
  border: 1px solid var(--go-border);
  border-left: 4px solid var(--go-blue);
  border-radius: var(--go-radius);
  background: #f5f9ff;
}

.gooutly-event-disclaimer__text {
  margin: 0;
  font-size: .88em;
  line-height: 1.6;
  color: #444;
}

.gooutly-event-disclaimer__text strong {
  color: var(--go-blue);
  display: block;
  margin-bottom: 4px;
}
/* =========================================================
   17B. Social share buttons (single event page)
   Icon circles — Facebook, X, WhatsApp, Copy link
   Designed for the narrow sidebar.
========================================================= */

/* Heading */
.gooutly-share-heading {
  margin-top: 8px !important;
  margin-bottom: 10px !important;
  font-size: .8em !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  opacity: .6 !important;
  padding-bottom: 0 !important;
}

/* Row of circles */
.gooutly-share-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  align-items: center !important;
}

/* Base circle — shared by a tags and buttons */
.gooutly-share-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50% !important;
  border: none !important;
  outline: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform .15s ease, filter .15s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.18) !important;
  position: relative !important;
  flex-shrink: 0 !important;
}

.gooutly-share-circle:hover {
  transform: translateY(-2px) scale(1.08) !important;
  filter: brightness(1.1) !important;
  padding: 0 !important;
  border: none !important;
}

/* Brand colours */
.gooutly-share-fb   { background: #1877f2 !important; color: #fff !important; }
.gooutly-share-x    { background: #000    !important; color: #fff !important; }
.gooutly-share-wa   { background: #25d366 !important; color: #fff !important; }
.gooutly-share-copy { background: #f0f0f0 !important; color: #333 !important; }
.gooutly-share-copy:disabled { opacity: .7 !important; cursor: default !important; transform: none !important; }
.gooutly-share-copy--copied  { background: #27ae60 !important; color: #fff !important; }

/* SVG inside circles — beat all Divi resets */
.gooutly-share-circle svg {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  position: static !important;
  overflow: visible !important;
  fill: currentColor !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
}

.gooutly-share-copy svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
}
.gooutly-share-copy--copied svg {
  stroke: #fff !important;
}

/* Tooltip — shows on hover above the button */
.gooutly-copy-tooltip {
  position: absolute !important;
  bottom: calc(100% + 6px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(0,0,0,.75) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity .15s ease !important;
  z-index: 10 !important;
}
.gooutly-share-copy:hover .gooutly-copy-tooltip,
.gooutly-share-copy--copied .gooutly-copy-tooltip {
  opacity: 1 !important;
}

/* Hide old WPEM share wrappers to prevent conflicts */
.wpem-share-this-event:not(.gooutly-share-block) { display: none !important; }

/* wpem-social-icon wrapper divs inside our share block —
   display:contents makes them invisible to the flex layout
   so the circles sit directly in the flex row */
.gooutly-share-block .wpem-social-icon {
  display: contents !important;
}

/* =========================================================
   WOOCOMMERCE SHOP PAGE — full-width layout + product grid
   ─────────────────────────────────────────────────────────
   Mobile layout (≤980px) is handled entirely by the
   wp_head injection in functions.php Section 49, which
   fires at priority 999 and always overrides Divi inline
   styles. The rules below apply at all screen sizes.
========================================================= */

/* Hide WooCommerce sidebar globally — shop has no sidebar */
.woocommerce-page #secondary,
.woocommerce-page aside.widget-area {
    display: none !important;
}

/* Desktop (981px+): ensure products ul is full-width in its column */
@media (min-width: 981px) {
    .woocommerce-page ul.products,
    .woocommerce-page ul.products[class*="columns-"] {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .woocommerce-page ul.products li.product {
        box-sizing: border-box !important;
    }
}

/* ── Product cards: 75% wide, centred ── */
@media (max-width: 980px) {
    .woocommerce-page ul.products li.product {
        width: 75% !important;
        max-width: 75% !important;
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Images inside the card: full width of the card */
    .woocommerce-page ul.products li.product a img,
    .woocommerce-page ul.products li.product .woocommerce-loop-product__link img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

/* =========================================================
   18. LATEST EVENTS CARDS [gooutly_latest_events]
========================================================= */

/* Grid wrapper — mobile-first: single column */
.gooutly-latest-events {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0 auto;
  padding: 0;
}

/* 3-column layout on desktop */
@media (min-width: 768px) {
  .gooutly-latest-events {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.gooutly-latest-events__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--go-border);
  border-radius: var(--go-radius);
  background: #fff;
  text-decoration: none !important;
  color: inherit !important;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gooutly-latest-events__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--go-shadow);
}

/* Banner image — 16:9 ratio, covers the area */
.gooutly-latest-events__banner {
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #e8edf2;
  flex-shrink: 0;
}

/* Body — grows to fill remaining height */
.gooutly-latest-events__body {
  flex: 1 1 auto;
  padding: 14px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.gooutly-latest-events__body .gooutly-event-type-badge {
  align-self: flex-start;
  margin-bottom: 2px;
}

.gooutly-latest-events__title {
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.35;
  color: var(--go-blue);
}

.gooutly-latest-events__venue {
  font-weight: 600;
  font-size: .95em;
  margin-top: 4px;
}

.gooutly-latest-events__addr {
  font-size: .875em;
  opacity: .75;
}

.gooutly-latest-events__date {
  font-size: .875em;
  opacity: .85;
  margin-top: 6px;
}

/* Footer strip — "View event →" call to action */
.gooutly-latest-events__footer {
  flex-shrink: 0;
  padding: 10px 16px 14px;
  border-top: 1px solid var(--go-border);
}

.gooutly-latest-events__cta {
  font-size: .875em;
  font-weight: 600;
  color: var(--go-blue);
}
.gooutly-latest-events__card:hover .gooutly-latest-events__cta {
  color: var(--go-blue-dark);
}

/* Empty state */
.gooutly-latest-events__empty {
  opacity: .6;
  font-style: italic;
}

/* =========================================================
   19. AREA EVENTS PAGE [gooutly_area_events]
   ─────────────────────────────────────────────────────────
   Cards reuse all Section 18 (.gooutly-latest-events) styles.
   Only the intro paragraph and wrapper need their own rules.
========================================================= */
.gooutly-area-events__intro {
  font-size: 1.05em;
  line-height: 1.7;
  margin: 0 0 36px;
  max-width: 780px;
}

.gooutly-area-events__grid {
  margin-top: 8px;
}

.gooutly-area-events__empty,
.gooutly-area-events__error {
  opacity: .65;
  font-style: italic;
  margin: 24px 0;
}
