/* Scheduled Events plugin styles - all selectors are prefixed "eventz" to stay isolated from core Zen Cart styles */

.eventzPage {
    margin-bottom: 2rem;
}

.eventzPageTitle {
    margin-bottom: 0.5rem;
    text-align: center;
}

.eventzHr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid #ccc;
}

.eventzHeader {
    margin-bottom: 0;
    margin-left: 1rem;
    /* The sidebox carousel deep-links to a specific event (#eventz-event-N).
       Without this, the browser scrolls that heading flush to the very top of
       the viewport, putting it underneath any fixed/sticky navbar the template
       has (e.g. ZCA Bootstrap's "fixed-top" navbar) and leaving no context
       above it. Templates with no fixed header simply get some breathing room
       above the heading instead, so this is safe either way. */
    scroll-margin-top: 5rem;
}

.eventzNoEvents {
    font-weight: normal;
    margin-bottom: 0;
}

.eventzNoEventsSubtext {
    margin-top: 0.75rem;
}

.eventzDetails {
    margin: 0 0 2rem 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid #ddd;
}

.eventzField {
    margin-bottom: 0.5rem;
}

.eventzField strong {
    margin-right: 0.35rem;
}

.eventzEventInformation a,
.eventzDrivingDirections a {
    white-space: nowrap;
}

/* Get Directions (when it opens a map pop-up) is a link like the event's others, so
   the template's link colors and hover effects reach it too. */
.eventzDirectionsTrigger {
    text-decoration: underline;
    white-space: nowrap;
    cursor: pointer;
}

/* One look for the plugin's own areas, whatever the template or a site stylesheet
   adds: every link in an event's lines (Booth Location, Event Information, Get
   Directions, and add-ons' lines) keeps the same weight, size and underline at rest
   and on hover, so none of them changes width or looks different from the others,
   and the labels stay bold. The selectors start at .eventzPage so they outrank both
   template-wide rules (a:hover) and rules written for the plugin's own class names.
   Colors are not set here: the store's choices under Configuration > Scheduled
   Events are added to the page (EventzService::colorCss), and a blank choice leaves
   the template's own color. */
.eventzPage .eventzDetails .eventzField {
    margin-bottom: 0.5rem;
}

/* Weights carry !important throughout: a site rule such as
   a:hover {font-weight: normal !important} can be outranked no other way. */
.eventzPage .eventzDetails .eventzField > strong {
    font-weight: 700 !important;
    margin-right: 0.35rem;
}

.eventzPage .eventzDetails .eventzField a,
.eventzPage .eventzDetails .eventzField a:hover,
.eventzPage .eventzDetails .eventzField a:focus,
.eventzPage .eventzDetails .eventzDirectionsTrigger,
.eventzPage .eventzDetails .eventzDirectionsTrigger:hover,
.eventzPage .eventzDetails .eventzDirectionsTrigger:focus {
    font-weight: inherit !important;
    font-style: inherit;
    font-size: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
}

/* Events sidebox: the same weight at rest and on hover (the name stays bold), and no
   text shadow: a template's hover shadow (a:hover {text-shadow: ...}) makes the bold
   names in a narrow column look as if they jump. The color still changes on hover.
   !important on the weight and shadow: a site rule such as
   a:hover {text-shadow: ... !important} can be outranked no other way. */
.eventzCarousel .eventzCarouselLink,
.eventzCarousel .eventzCarouselLink:hover,
.eventzCarousel .eventzCarouselLink:focus {
    font-weight: inherit !important;
    letter-spacing: inherit;
    text-shadow: none !important;
}

.eventzCarousel .eventzCarouselLink .eventzCarouselName {
    font-weight: 700 !important;
}

/* The Events sidebox's heading link (drawn by the template's box frame, with the
   id eventz-leftBoxHeading or eventz-rightBoxHeading): the heading's own weight at
   rest and on hover, so a template rule like a:hover {font-weight: normal} can't
   shrink it. */
#eventz-leftBoxHeading a,
#eventz-leftBoxHeading a:hover,
#eventz-leftBoxHeading a:focus,
#eventz-rightBoxHeading a,
#eventz-rightBoxHeading a:hover,
#eventz-rightBoxHeading a:focus {
    font-weight: inherit !important;
    letter-spacing: inherit;
}

/* Driving directions map popup */
.eventzModalOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.eventzModalOverlay.eventzModalOpen {
    display: flex;
}

.eventzModalContent {
    position: relative;
    background: #fff;
    width: 640px;
    max-width: 90vw;
    padding: 2rem 1rem 1rem;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.eventzModalIframe {
    display: block;
    width: 100%;
    height: 450px;
    max-height: 70vh;
    border: 0;
}

.eventzModalClose {
    position: absolute;
    top: 0.25rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #333;
    padding: 0.25rem 0.5rem;
}

/* Full-screen popup on phones/tablets, per plugin requirements */
@media (max-width: 1024px) {
    .eventzModalContent {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        padding: 2.5rem 0.5rem 0.5rem;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .eventzModalIframe {
        flex: 1 1 auto;
        height: auto;
        max-height: none;
    }
}

/* Sidebox: scrolling mode (requires a Bootstrap-based template). Spacing and
   header theming are left to Bootstrap's own "mb-3"/"card-header" classes
   and this template's stylesheet_zca_colors.css (see sideboxes/eventz.php)
   rather than set here, so the box matches core sideboxes (e.g. Information,
   Bestsellers) and reacts the same way to this store's color theme. */

/* Applied by the relocation script (sideboxes/eventz.php) when the box is
   moved out of its normally-hidden-on-mobile column into the main content
   row as a full-width column. */
.eventzSideboxMobile {
    margin-top: 1rem;
}

.eventzCarouselEmpty {
    padding: 0.75rem 1rem;
}

.eventzCarouselItem {
    padding: 0.75rem 1rem;
}

.eventzCarouselLink {
    width: 100%;
    text-decoration: none;
    display: block;
}

.eventzCarouselName {
    width: 100%;
    font-weight: bold;
}

/* Full link color, no fading: at this size a faded date fell below 4.5:1
   contrast on responsive_classic. The bold name already sets it apart. */
.eventzCarouselStartDate,
.eventzCarouselStopDate {
    width: 100%;
    font-size: 0.85em;
}

/* List mode: added by the sidebox's script when the template has no
   Bootstrap carousel (e.g. responsive_classic). Every event shows, one under
   another, and the Previous/Next buttons are hidden. The extra class keeps
   these rules ahead of Bootstrap's own .carousel-item/.carousel-fade rules
   when its stylesheet is present without its script. */
.eventzNoCarousel .eventzCarousel .eventzCarouselItem {
    display: block;
    float: none;
    margin-right: 0;
    opacity: 1;
    transform: none;
    transition: none;
}

.eventzNoCarousel .eventzCarousel .eventzCarouselItem + .eventzCarouselItem {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.eventzNoCarousel .eventzCarouselPrev,
.eventzNoCarousel .eventzCarouselNext {
    display: none;
}
