/* BOTÓN FLOTANTE IR A CARRITO */

.go-to-cart-button {
	position: fixed;
}

.go-to-cart-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #000;
	color: #fff;
	padding: 12px 18px;
	border-radius: 50px;
	font-weight: bold;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
	z-index: 9999;
	transition: background .2s ease-in-out;
}

.go-to-cart-button:hover {
	background: #666;
}

.go-to-cart-button i {
	padding-right: 5px;
}

/* ---------------------------------------------------------------------------------------------------- */

#wpwoolabs-amdm-notes-wrapper {
    margin: 2em 0 1em 0;
}

/* --- AMDM Note Wrapper Styles --- */
.amdm-pdm-note-wrapper {
    margin-top: 0.7em;
    margin-bottom: 0.5em;
    border: 1px solid #eee;
    padding: 0.5em;
    border-radius: 4px;
    background-color: #FFF;
}

.amdm-note-label {
    display: flex; /* Aligns text and button */
    justify-content: space-between; /* Pushes button to the right */
    align-items: center; /* Vertically centers items */
    font-weight: bold;
    cursor: pointer; /* Indicates it's interactive */
    padding-bottom: 5px; /* Space above input container */
}

/* --- Toggle Button Styles --- */
.amdm-toggle-note-btn {
    background: #fff;
    border: 1px solid #ccc;
    color: #555;
    font-size: 1.2em; /* Larger icon */
    line-height: 1;
    padding: 5px 10px;
    border-radius: 50%; /* Makes it circular */
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    display: flex; /* To center the plus/minus icon */
    align-items: center;
    justify-content: center;
    width: 30px; /* Fixed width for circular button */
    height: 30px; /* Fixed height for circular button */
}

.amdm-toggle-note-btn:hover,
.amdm-toggle-note-btn:focus {
    background-color: #e0e0e0;
    border-color: #999;
    outline: none;
}

.red {
	background-color: red;
}

.amdm-toggle-note-btn .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- Hidden Container and Textarea Styles --- */
.amdm-note-input-container {
    overflow: hidden; /* Important for smooth height transition */
    max-height: 0; /* Starts hidden */
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.amdm-note-input-container.active {
    max-height: 200px; /* Adjust this value to be greater than the textarea's height */
    opacity: 1;
    margin-top: 10px; /* Space between label and textarea when active */
}

.amdm-note-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
    font-size: 0.9em;
    resize: vertical; /* Allow vertical resizing by user */
}

/* Icon rotation for "minus" state */
.amdm-toggle-note-btn[aria-expanded="true"] .amdm-toggle-icon {
    transform: rotate(45deg); /* Rotates the '+' into an 'x' or can be changed to a '-' */
}







/* ---------------------------------------------------------------------------------------------------- */

/* BONOS GLOBAL */

.amdm-bonos-wrapper .amdm-bonos-content fieldset {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.amdm-bonos-wrapper .amdm-bonos-content input[type="radio"] {
	accent-color: #4f4f4f;
	transform: scale(1.1);
	margin-right: 0.5em;
}

.amdm-bonos-wrapper .amdm-bonos-content fieldset label {
	display: block;
	font-size: 0.85rem;
	cursor: pointer;
	color: #4f4f4f;
}

/* .wpwoolabs-bonos-summary {
	background-color: red;
} */

.checkout.woocommerce-checkout  .wpwoolabs-bono-content {
    border: none;
	margin: 0.5em 1em;
    gap: 5px;
    background: #dcd7e2;
    padding: 10px;
}

/* .wpwoolabs-bono-summary {
    padding: 15px;
    background-color: gold;
} */

.cart_totals.calculated_shipping .wpwoolabs-bono-content p {

    color: #fff;

}

.cart_totals.calculated_shipping .wpwoolabs-bonos-summary h5 {

    margin: 1em 0 0 0;
    padding: 0;
    color: #fff;

}

.cart_totals.calculated_shipping .wpwoolabs-bonos-summary h5 span {

    font-size: 0.8em;

}

.checkout.woocommerce-checkout .wpwoolabs-bonos-summary h5 {
  margin-bottom: 0rem !important;
  padding-bottom: 0rem !important;
  padding-left: 0.7em;
  padding-top: 0.7em;
}

.checkout.woocommerce-checkout .wpwoolabs-bonos-summary h5 span {
  font-size: 0.8em;
}

/* ---------------------------------------------------------------------------------------------------- */
/* BONOS CART FORM */

.cart_totals.calculated_shipping .amdm-bonos-wrapper {
    margin-bottom: 1em;
    margin-top: 1.5em;
	padding: 1.5em;
	background-color: #A4A386;
    border-radius: 5px;
    text-align: left;
}

.cart_totals.calculated_shipping .amdm-bonos-wrapper h4 {
    margin-bottom: 0.6em;
}

.cart_totals.calculated_shipping .amdm-bonos-wrapper h4,
.cart_totals.calculated_shipping .amdm-bonos-content fieldset label span:first-of-type  {
    color: #FFF;
}

/* ---------------------------------------------------------------------------------------------------- */
/* NEW HTML CHECKOUT FORM */

.checkout.woocommerce-checkout .amdm-bonos-wrapper h4 {
    margin-bottom: 0rem !important;
	padding-bottom: 0rem !important;
	padding-left: 0.7em;
	padding-top: 0.7em;
}

.checkout.woocommerce-checkout .amdm-bonos-content fieldset {
    border: none;
	padding: 0;
	margin: 1em;
    gap: 5px;
    background: #dcd7e2;
    padding: 15px 15px 0 15px;
}

.checkout.woocommerce-checkout .amdm-bonos-content fieldset label:last-child {
	margin-bottom: 0.6rem;
}

/* ---------------------------------------------------------------------------------------------------- */

/* ADD-TO-CART Auto Message */
.added_to_cart.wc-forward {
	display: none !important;
}

/* .et_pb_wc_checkout_shipping .woocommerce-additional-fields input[name^="notes_daily_menu"],
.et_pb_wc_checkout_shipping .woocommerce-additional-fields textarea[name^="notes_daily_menu"] {
  display: none !important;
}

.et_pb_wc_checkout_shipping .woocommerce-additional-fields input[name^="notes_daily_menu"] {
  pointer-events: none;
} */

/* Deshabilitarlos en runtime para que el navegador no los incluya */


/*
 * FUERZA LA VISIBILIDAD DE LA SECCIÓN DE NOTAS ADICIONALES DE WOOCOMMERCE
 * Esto anula las reglas agresivas de Divi que ocultan el área de campos.
 */
/* .et_pb_wc_checkout_shipping .woocommerce-additional-fields {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
} */

/* También puede que esté ocultando la capa interna si está vacía */
/* .woocommerce-additional-fields__field-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
} */

/* Reglas para tus campos personalizados, en caso de que Divi los afecte directamente */
/* .amdm-note-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 15px; 
}
 */

.et_pb_wc_checkout_payment_info form .amdm-visible-notes-wrapper .form-row {
    margin: 0.5em 0 0 !important;
}

.et_pb_wc_checkout_payment_info form .amdm-visible-notes-wrapper  {
    padding: 1em;
}

.et_pb_wc_checkout_payment_info form .amdm-visible-notes-wrapper h4 {
    padding-bottom: 0px;
}

.woocommerce table.shop_table_responsive tr.cart-group-header td::before, .woocommerce-page table.shop_table_responsive tr.cart-group-header td::before {
  content: attr(data-title) "" !important;
}

.cart_totals.calculated_shipping .dialy-menu-summary {
    padding: 0.3em;
    margin-bottom: 1em;
}

#order_review .dialy-menu-summary {
    padding: 1em;    
}

.hidden_field_custom {
    display: none !important;
}