/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
:root {
    --spaces-width: 90px;
}

.main-btn, .button#place_order, .woocommerce-button, .woocommerce-Button{
    border-radius: 99px !important;
    background-color: var(--fs-color-primary) !important;
    font-size: 1.15em !important;
    width: fit-content !important;
    color: #fff !important;
}
.main-btn:hover,  .button#place_order, .woocommerce-button, .woocommerce-Button {
    background-color: var(--fs-color-primary);
    border-color: var(--fs-color-primary);
    color: #fff;
}


.wc-proceed-to-checkout{
    width: fit-content;
}

.em-tickets {
    table-layout: fixed;         
    width: 100%;   
    border-collapse: collapse;
}


.em-bookings-ticket-table-spaces {
    width: var(--spaces-width) !important;
    min-width: 80px;
    max-width: 110px;
    text-align: center;
}

.em-ticket-select {
    width: 100% !important; 
    max-width: 90px !important;
    box-sizing: border-box;    
}


.em-booking-form-section-tickets{
    max-width:80%
}

.em-tickets-row {
    display: grid;
    grid-template-columns: auto auto  calc(var(--spaces-width) - 6px);
    width: 100%;

}
.booking-baby-chair input.baby-chair-input {
    height:32px;
}

.em-booking-form-section-details, .comments-area, .return-to-shop{
    display: none !important;
}

.em-bs-row-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05em;
    gap:7px;
}



.wc-block-cart-item__prices,
.wc-block-components-quantity-selector {
    display: none !important;
}

.wc-block-components-order-summary-item__image,.wc-block-components-order-summary-item__individual-prices {
    display: none !important;
}

.woocommerce-order {
    padding-left: 30px;
    padding-right: 30px;
}

dl.variation dt.variation-tickets {
    display: none !important;
}

.em-item-image-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}


.em.em-item.em-item-single .em-item-header {
    flex-direction: column-reverse !important;
}

.em-event-when h3 {
    display: none;
}
/*________________Events page ______________________*/
.em-events-list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr); 
    grid-gap: 10px !important; 
    align-items: start;
}
.em-events-list .event {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
}

.em-item-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.em-item-image-wrapper {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

.em-item-image-wrapper img {
    width: 100% !important;
    display: block;
}

.em-item-status-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    z-index: 10;
}

.em-item-image-wrapper {
    position: relative;
    display: block; 
    width: 100%;
    overflow: hidden;
}


.em-item-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;

    font-size: clamp(20px, 4vw, 40px) !important; 
    font-weight: 800;
    
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    pointer-events: none;
    border-radius: 4px;
}

.em-event-meta.em-item-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}


.em-item-meta-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.em-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1em;
}

.em-event-tickets {
    margin-top: 0px;
}

.em-event-tickets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-info .item-title a{
    color: var(--fs-color-primary) !important;
    letter-spacing: .02em;
    text-transform: uppercase;
    font-size: 16px !important;
}

.em-event-date {
    text-transform: capitalize;
}


/*************** ADD MOBILE ONLY CSS HERE  ***************/

@media (max-width: 992px) {
    .em-events-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .em-events-list {
        grid-template-columns: 1fr;
    }
}
