/**
Theme Name: Astra Child
Author: CF
Author URI: https://creativecfo.com/
Description: Our mission is to build the world’s best finance teams. Teams of great professionals, using and developing the best technology, to help businesses plan, structure, invest and grow.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

body {
    background: #fff !important;
}

/* single event */
body #tribe-events-pg-template {
    background-color: var(--tec-color-background-events);
    max-width: 100%;
    margin: 0px;
    min-width: 100%;
    padding: 0px;
}

/* ticket modal */
.tribe-tickets__attendee-tickets-footer .tribe-tickets__attendee-tickets-footer-cart-button,
.tribe-tickets__attendee-tickets-footer .tribe-tickets__attendee-tickets-footer-cart-button+span {
    display: none !important;
}

/* event listing */
body .tribe-common-l-container {
    padding-top: 40px !important;
}

body .tribe-common-l-container header,
body .tribe-common-l-container .tribe-events-c-subscribe-dropdown__container {
    display: none !important;
}



/* attendee registration */
body.page-tribe-attendee-registration .event-tickets .tribe-tickets__registration-actions,
body.page-tribe-attendee-registration .tribe-common .tribe-tickets__registration-actions {
    margin: 0px !important
}

body.page-tribe-attendee-registration .event-tickets .tribe-tickets__registration-grid,
body.page-tribe-attendee-registration .tribe-common .tribe-tickets__registration-grid {
    padding-top: 0px !important;
}


/* Menu / Header*/

/*  */
.ast-header-html-2 .ast-builder-html-element>p {
    display: none;
}

.login-icon,
.ast-header-woo-cart,
.account-icon {
    display: none
}

body.loaded .login-icon,
body.loaded .ast-header-woo-cart,
body.loaded .account-icon {
    display: flex;
}

body .site-header-section>* {
    padding: 0 5px;
}


body .ast-site-header-cart .ast-woo-header-cart-info-wrap{
    display: none!important;
}

@media only screen and (max-width: 480px) {
    body .content-align-flex-start .ast-builder-layout-element {
        justify-content: center;
    }

    body .ast-builder-menu-mobile .main-navigation .menu-item.current-menu-item>.menu-link,
    body .ast-builder-menu-mobile .main-navigation .main-header-menu .menu-item>.menu-link {
        text-align: center !important;
    }
/* 
    body .ast-site-header-cart .ast-woo-header-cart-info-wrap {
        display: block;
    } */

    .woocommerce .ast-header-woo-cart .ast-site-header-cart .ast-addon-cart-wrap,
    .ast-header-woo-cart .ast-site-header-cart .ast-addon-cart-wrap {
        margin-left: 0px;
    }
}

/* Events Grid {} */

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 2fr));
    gap: 20px;
    margin: 20px 0;
}

@media only screen and (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

}


.events-grid .event-item {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
    position: relative;
    padding: 0;
}

.events-grid .event-image {
    flex-grow: 1;
    overflow: hidden;
    margin-bottom: 10px;
    /* Added margin to separate the image from the title */
}

.events-grid .event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.events-grid .event-title {
    font-size: 18px;
    margin: 10px 0;
    padding: 0 10px;
    text-decoration: none;
    /* Removes underline from the title */
}

.events-grid .event-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.events-grid .event-button {
    background-color: #000000;
    color: #fff;
    text-decoration: none;
    border-radius: 0px 0px 4px 4px;
    padding: 10px 0;
    text-align: center;
    position: relative;
    margin: 0;
    width: 100%;
    bottom: 0;
}

.events-grid .event-button:hover {
    background-color: #373737;
}

.events-grid .event-item:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    /* Adds a hover effect to the entire event block */
}




/* Order Recived */

body.woocommerce-order-received .woocommerce-order-details h2,
body.woocommerce-order-received .woocommerce-order-details table thead,
body.woocommerce-order-received .woocommerce-order-details table tfoot,
body.woocommerce-order-received .woocommerce-order-details table .woocommerce-table__product-total,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received .flux-element {
    display: none;
}

body.woocommerce-order-received .woocommerce-order {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

@media only screen and (max-width: 480px) {
    body.woocommerce-order-received .woocommerce-order {
        grid-template-columns: 1fr;
    }

    body .tribe-common .tec-tickets__attendees-list-item-attendee-details {
        align-self: start;
    }

    body.woocommerce-order-received .woocommerce-order ul>li:nth-child(1),
    body.woocommerce-order-received .woocommerce-order ul>li:nth-child(2) {
        margin-bottom: 10px;
    }

    body.woocommerce-order-received .woocommerce-order table.shop_table tr.order_item {
        padding-bottom: 20px;
        display: block;
    }


}

body.woocommerce-order-received .woocommerce-order p,
body.woocommerce-order-received .woocommerce-order ul {
    grid-column: -1/1;
}

body.woocommerce-order-received .woocommerce-order ul {
    padding: 20px;
    background: #efefef;
    margin: 0px;
    margin-top: -30px;
    margin-bottom: 0px !important;
}

body.woocommerce-order-received .woocommerce-order-details table .woocommerce-table__product-name,
body.woocommerce-order-received .woocommerce-order-details table {
    border: 0px;
}

body.woocommerce-order-received .woocommerce-order-details table {
    padding: 10px;
}

body.woocommerce-order-received .woocommerce-order table.shop_table td {
    padding: 0px !important;
}

body.woocommerce-order-received .woocommerce-order table.shop_table .event-title {
    margin: 0px !important;
}

body.woocommerce-order-received .woocommerce-order p {
    order: 1
}

body.woocommerce-order-received .woocommerce-order ul {
    order: 2
}

body.woocommerce-order-received .woocommerce-order .tribe-common {
    order: 3
}

body.woocommerce-order-received .woocommerce-order .woocommerce-order-details {
    order: 4
}



/* Mini cart */
.woocommerce-mini-cart-item {
    padding-left: 0px !important;
}

.woocommerce-mini-cart-item img {
    display: none;
}

.ast-mini-cart-empty {
    display: none;
}

.elementor-menu-cart__container {
    z-index: 999999999;
}
body .tippy-popper{
    z-index: 9999;;
}

body .elementor-menu-cart__product {
    grid-template-columns: 0% auto;
}




/* admin bar logged in user */

#wpadminbar #wp-admin-bar-wp-logo,
#wpadminbar #wp-admin-bar-customize,
#wpadminbar #wp-admin-bar-comments,
#wpadminbar #wp-admin-bar-new-content,
#wpadminbar #wp-admin-bar-elementor_edit_page {
    display: none;
}

/* Event Template Container */
body.single-tribe_events #content .ast-container {
    max-width: 100%;
    padding: 0px;
}


/* Register */
.ur-frontend-form .ur-button-container {
    justify-content: center;
    display: flex;
    gap: 10px;
}

form.register {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body .ur-frontend-form .ur-button-container .ur-submit-button {
    margin-left: inherit;
}

body .ur-frontend-form .ur-form-row .ur-form-grid .ur-field-item {
    margin-bottom: 0px;
}

body .ur-form-row {
    margin-bottom: 0px;
}

/* Orders */
body .woocommerce-orders-table .woocommerce-button {
    text-decoration: none;
}

body .user-registration-message {
    display: flex;
}

body .woocommerce-MyAccount-navigation-link--edit-address,
body .woocommerce-MyAccount-navigation-link--downloads {
    display: none;
}