/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
.elementor-menu-cart__toggle .elementor-button {
    padding: 0 !important;
    margin-top: 15px;
}

span.price {
    float: left;
}

.woocommerce-descuento {
    color: #FF8C42;
    text-align: center;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    float: right;
    line-height: 25px;
}

.descuento-producto {
    color: #FF8C42;
    text-align: center;
    font-size: 25px;
    font-style: normal;
    font-weight: 400;
    float: right;
    line-height: 1.5;
}

.wc-product-image {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 20px;
}

.elementor-products-grid:not(.elementor-show-pagination-border-yes) nav.woocommerce-pagination ul li {
    margin: 5px;
}

a.checkout-button.button.alt.wc-forward,
a.checkout-button.button.alt.wc-forward:hover,
.single_add_to_cart_button.button.alt.wc-variation-selection-needed,
.single_add_to_cart_button.button.alt.wc-variation-selection-needed:hover,
.single_add_to_cart_button.button.alt,
.single_add_to_cart_button.button.alt:hover,
button#wc_bis_send_form {
    background: linear-gradient(90deg, #FF8C42 -3.64%, #FFE9DA 108.96%);
    color: #000;
    border: 1px solid #FF8C42;
    border-radius: 8px;
    font-weight: 700;
}

li.woocommerce-MyAccount-navigation-link {
    border-bottom: 1px solid #fff;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    vertical-align: baseline;
}

.modal_content_billing input[type="text"],
.shipping_modal_content input[type="text"],
.modal_content_billing input[type="email"],
.shipping_modal_content input[type="email"],
.modal_content_billing input[type="url"],
.shipping_modal_content input[type="url"],
.modal_content_billing input[type="password"],
.shipping_modal_content input[type="password"],
.modal_content_billing input[type="search"],
.shipping_modal_content input[type="search"],
.modal_content_billing input[type="tel"],
.shipping_modal_content input[type="tel"],
.modal_content_billing input[type="number"],
.shipping_modal_content input[type="number"],
.modal_content_billing textarea,
.shipping_modal_content textarea,
.modal_content_billing select,
.shipping_modal_content select,
.modal_content_billing option,
.shipping_modal_content option {
    color: #000 !important;
}

ul.billing_edit,
ul.billing_edit h3,
.table_back h5,
.viewlables1 {
    color: #fff !important;
}

.table_back {
    width: 100% !important;
    background: #051518;
    border: 1px solid #FF8C42;
    color: #FF8C42;
    border-radius: 8px;
}

.action_buttons_style.duplicate_billing_front,
.action_buttons_style.duplicate_shipping_front,
.billing_edit_front.action_buttons_style,
.shipping_edit_front.action_buttons_style,
.action_buttons_style.delete_address_billing_front,
.action_buttons_style.delete_address_shipping_front,
button#place_order,
.woocommerce-button.button.woocommerce-form-login__submit,
.woocommerce-button.button.woocommerce-form-login__submit:hover,
.woocommerce-Button.woocommerce-button.button.woocommerce-form-register__submit.email_verification_popup,
.woocommerce-Button.woocommerce-button.button.woocommerce-form-register__submit.email_verification_popup:hover {
   /* background: linear-gradient(90deg, #FF8C42 -3.64%, #FFE9DA 108.96%);*/
    background: #FF8C42 !important;
    color: #000;
    border: 1px solid #FF8C42;
    border-radius: 8px;
}

.table_back h5 {
    display: ruby;
}

.table_back p:first-child {
    display: flex;
}

li.table_back br {
    display: none;
}

.ywpar_myaccount_entry_info > div,
div#share_points {
    background-color: #051518 !important;
    color: #fff;
    border: 1px solid #FF8C42;
    border-radius: 8px !important;
}

.ywpar_tabs_header ul li.active {
    color: #ffffff !important;
    border-bottom: 8px outset #FF8C42 !important;
}

#wc_bis_product_form #wc_bis_send_form {
    text-align: center;
    width: 100%;
}

span.availability_date {
    color: #FF8C42;
}

.type-product.product .yith-par-message-variation, .type-product.product .yith-par-message {
    width: 100% !important;
    text-align: center !important;
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-range, .woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #FF8C42 !important;
}

.wc-proceed-to-checkout br,
th.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-number br {
    display: none;
}
.woocommerce table.shop_table td a,
.woocommerce table.shop_table td a:hover {
     color: #FF8C42;
 }


.adfy_order_edit button,
.adfy_order_edit html input[type="button"],
.adfy_order_edit input[type="reset"],
.adfy_order_edit input[type="submit"],
.adfy_order_edit a.button,
.adfy_order_edit a.wp-block-button__link:not(.has-background) {
    color: #ffffff;
    background-color: #FF8C42;
}

.popup-modal-box h3,
.popup-modal-content h4 {
    color: #000;
}

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
    color: #000 !important;
    background-color: #ffffff !important;
}

.close_popup {
    color: #FF8C42;
}

.close_popup:hover, .close_popup:focus, .close_popup:active {
    color: white;
    background-color: #FF8C42;
}

.list-attendee,
span.ticket-name {
    color: #000000;
    font-weight: 400;
}

#tribe-events-pg-template {
    margin: 0 auto;
    max-width: 1400px;
    width: 1400px;
    padding: var(--tec-spacer-8) var(--tec-spacer-4) var(--tec-spacer-4);
}

/*Efecto desenfocado en tarjetas*/
.product-box {
    position: relative;
    overflow: hidden; /* necesario para que el ::before no se desborde */
}


.product-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* capa oscura visible */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5; /* asegúrate de que esté por encima del fondo */
    pointer-events: none;
}

/* Aplica la opacidad solo a las cajas que NO están activas */
.product-box.dimmed::before {
    opacity: 1 !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Asegura que el contenido real esté por encima de ::before */
.product-box * {
    position: relative;
    z-index: 10;
}
/*Fin Efecto desenfocado en tarjetas*/
a.button.product_type_variable,
a.button.product_type_variable.add_to_cart_button {
    border-radius: 8px !important;
}

.button.product_type_simple.add_to_cart_button.ajax_add_to_cart,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button,
.woocommerce a.button:hover,
button.button:hover {
    /*background: linear-gradient(90deg, #FF8C42 -3.64%, #FFE9DA 108.96%) !important;*/
    background: #FF8C42 !important;
    color: #000 !important;
    border: 1px solid #FF8C42 !important;
    border-radius: 8px !important;
}

/* Asegurar que cada ficha tenga altura igual */
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
    height: 100%;
}

/* Hacer que el enlace principal y la imagen ocupen todo el espacio disponible */
ul.products li.product .woocommerce-loop-product__link {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Asegurar que el botón quede al final de la ficha */
ul.products li.product > a.button {
    margin-top: auto;
    align-self: stretch;
    text-align: center;
}

.woocommerce a.button.added::after,
.woocommerce button.button.added::after,
.woocommerce input.button.added::after,
.woocommerce #respond input#submit.added::after {
    content: "" !important;
}

.coupon {
    width: 60%;
}

input#coupon_code {
    float: left;
    width: 50% !important;
    border-radius: 8px;
}

.coupon button.button {
    float: right;
    width: 40% !important;
}

.woocommerce-info {
    background-color: #E4F6F3 !important;
    color: #000000 !important;
}

div.woocommerce-info a.button, div.woocommerce-info a.button:focus, div.woocommerce-info a.button:hover, div.woocommerce-info a, div.woocommerce-info a:focus, div.woocommerce-info a:hover {
    color: #000000 !important;
}

.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
    font-size: 100% !important;
}

.woocommerce-variation-availability p.stock.out-of-stock {
    padding: 10px;
    background: #a00 !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
}

span.onsale {
    padding: 8px !important;
    border-radius: 8px !important;
    background-color: #a00 !important;
}

input#wc_bis_email {
    width: 100%;
    border-radius: 8px;
    margin: 10px;
}

.woocommerce div.product .woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(5n+1) {
    clear: left !important;
}

span.wcc-revisit-help-text {
    color: #000;
}

li.menu-item-58.menu-item.menu-item-type-taxonomy.menu-item-object-product_cat.menu-item-4876 {
    font-size: 13px;
}

.noUi-connects {
    border-radius: 8px !important;
}

.noUi-connect {
    background: #ff8c42 !important;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
	color: #66b520;
	margin-bottom:0px;
}

.woocommerce-variation.single_variation{
	display: flex;
    color: #66b520;
    background: #fff;
    padding: 7px;
    border-radius: 8px;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
	margin-bottom:10px;
}

.badge-agotado {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 6px !important;
    border-radius: 8px !important;
    background-color: #000 !important;
    color: #fff;
    font-size: 80%;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 10;
    line-height: 16px;
}
.woocommerce ul.products li.product {
    position: relative;
}

@media screen and (max-width: 768px) {
    #tribe-events-pg-template {
        margin: 0 ;
        max-width: 1048px;
        padding: 20px;
    }

    .coupon {
        width: 100%;
    }

    input#coupon_code {
        width: 100% !important;
        border-radius: 8px;
    }

    .coupon button.button {
        width: 100% !important;
        margin-top: 10px !important;
        font-size: 20px !important;
    }

    .woocommerce #content table.cart .product-thumbnail,
    .woocommerce table.cart .product-thumbnail,
    .woocommerce-page #content table.cart .product-thumbnail,
    .woocommerce-page table.cart .product-thumbnail {
        display: block;
    }

    #add_payment_method table.cart img,
    .woocommerce-cart table.cart img,
    .woocommerce-checkout table.cart img {
        width: 50%;
        box-shadow: none;
    }

}
