/* Ocultar inicialmente el contenedor del campo de fecha de fin */
.date-time-picker.rnb-component-wrapper:has(#dropoff-date) {
    display: none;
}

/* Ocultar inicialmente los extras (casco, gps, etc.) */
.rnb-custom-field-option.type-radio {
    display: none;
}

div.rnb-custom-field-option:has(select[name=select-medio-dia]) div.text-price.rnb-custom-field-option-price {
    display: none;
}

/* Fix para evitar que el contenedor de fecha colapse y se superponga con CANTIDAD */
.date-time-picker.rnb-component-wrapper {
    clear: both;
    width: 100%;
    margin-bottom: 15px; /* Un poco de aire por debajo para que respire */
}

/* Clearfix clásico para obligar al contenedor a envolver a los inputs flotados */
.date-time-picker.rnb-component-wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Opcional: Asegurarnos de que el bloque de Cantidad (o extras) también baje a una nueva línea limpia */
.payable-inventory.rnb-component-wrapper,
.rnb-custom-field-option.type-radio {
    clear: both;
}


/* Añadido por Dani */

.rnb-custom-field-option:has(#select-medio-dia) {
    border-top: 0px;
}

.xdsoft_datetimepicker {
    z-index: 1000000 !important;
}


/* Resumen del carrito */
form.woocommerce-cart-form dt.variation-DuracindelareservaOnetime { display: none !important; }
form.woocommerce-cart-form dd.variation-DuracindelareservaOnetime span { display: none !important; }

form.woocommerce-cart-form dt.variation-AlforjasOnetime { display: none !important; }
form.woocommerce-cart-form dt.variation-CascoOnetime { display: none !important; }
form.woocommerce-cart-form dt.variation-GPSOnetime { display: none !important; }
form.woocommerce-cart-form dt.variation-PortabultosOnetime { display: none !important; }
form.woocommerce-cart-form dt.variation-SillaportabebsOnetime { display: none !important; }


div.quantity-changer.rnb-custom-field-option-quantity-changer, 
div.text-price.rnb-custom-field-option-price {
    display: none !important; 
}

div.redq-quantity.rnb-select-wrapper.rnb-component-wrapper {
    display: none !important; 
}

.cart.rnb-cart #resourcePreview {
    display: none !important; 
}

div.rnb-shopping-page div.et_pb_wc_price span.woocommerce-Price-amount.amount:before {
    content: ' ';
}

/* Route posts without a GPX: hide the download block (includes/route-template.php) */
body.carma-route-no-gpx #rutadescarga { display: none; }
body.carma-route-no-photos #rutafotos { display: none; }

/* Aviso de producto descatalogado (bajo el título del producto) */
.linkate-discontinued-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 8px 14px;
    background: #fff4f4;
    border-left: 4px solid #d63638;
    border-radius: 4px;
    color: #a12122;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.linkate-discontinued-notice__icon {
    font-size: 17px;
}

/* Bloom and Monarch use the site font (includes/bloom-monarch-site-font.php removes their Open Sans stylesheet).
   Only text elements are targeted: the icon fonts (.et_bloom_icon, the Bloom close button, Monarch's .et_social_icon
   and its :before/:after icons) keep their own font-family. The stack is the site's body font. */
.et_bloom .et_bloom_form_container :is(h1, h2, h3, h4, h5, p, li, strong, em, a, label, input, select, textarea, button, span):not(.et_bloom_icon):not([class*="close"]),
.et_monarch :is(.et_social_networks, .et_social_sidebar_networks, .et_social_sidebar_networks_mobile, .et_social_mobile, .et_social_mobile_button, .et_social_heading),
.et_monarch :is(.et_social_networks, .et_social_sidebar_networks, .et_social_sidebar_networks_mobile, .et_social_popup, .et_social_flyin, .et_social_locked, .et_social_pinterest_window) :is(h3, p, span, a, li, ul, div):not(.et_social_icon):not([class*="close"]) {
    font-family: Lato, Helvetica, Arial, Lucida, sans-serif !important;
}

/* Accessibility (includes/accessibility.php): text contrast of at least 4.5:1 (3:1 for large text) and tap targets of at
   least 24 px. Colors keep the hue of the original ones and only get darker. */
.price del,
.price del * {
    color: #767676 !important;
    opacity: 1 !important;
}

p.stock.in-stock {
    color: #7f7908 !important;
}

.woocommerce .quantity input.qty,
.woocommerce .quantity .qty {
    color: #6e6e6e !important;
}

/* Divi contact form and Divi Ajax Filter fields use #999 text on white or light gray. */
.et_pb_contact_form input,
.et_pb_contact_form textarea,
.et_pb_contact_form select,
.et_pb_contact input,
.et_pb_contact select,
.et_pb_contact_field input.input,
.divi-acf.et_pb_contact_select {
    color: #6c6c6c !important;
}

.et_pb_contact_form ::placeholder,
.et_pb_contact ::placeholder {
    color: #6c6c6c;
    opacity: 1;
}

/* Orange booking buttons (inline styles written in the page content): white text needs a darker orange. */
[style*="background: rgb(227, 82, 5)"],
[style*="background: rgb(232, 89, 12)"],
[style*="background:#e8590c"],
[style*="background:#e35205"] {
    background: #cb4e0a !important;
}

/* Titles in post loops are links of about 20 px: give them a 24 px target. */
.et_pb_post .entry-title a,
.entry-title a {
    display: inline-block;
    min-height: 24px;
    padding-block: 2px;
}
