/*
Theme Name: OceanWP Child
Theme URI:  https://www.wpserveur.net
Author:     WPServeur
Author URI: https://www.wpserveur.net
Template:   oceanwp
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* Asterisco que marca una caraterística como obligatoria en la ficha del producto a la hora de seleccionar opciones */

.wapo-addon-title span.required {
	color: white;
	font-size: 1em;
	top: 0;
}

/* Para que el botón de ver carrito cuando haces una compra aparezca en la parte de abajo de la botonera */
.single-product .e-atc-qty-button-holder {
	flex-wrap: wrap !important;
	row-gap: 20px;
}

/* Cambio tamaño de la tabla con los totales en la ficha de producto */

.single-product #wapo-total-price-table table.hide_options {
    width: 100%;
	font-size: 1.1em;
}

.single-product #wapo-total-price-table table.hide_options td {
    text-align: right;
}

.single-product #wapo-total-price-table table.hide_options td,
.single-product #wapo-total-price-table table.hide_options th {
	font-weight: bold;
}

/* Ajustes de las migas de pan en la ficha de producto */ 

.single-product #migas-pan-woocommerce .woocommerce-breadcrumbs {
	position: static;
	max-width: 100%;
	height: auto;
	margin: 0;
	font-size: 0.9em;
}

/* Ajustamos el tamaño de las <a> para que tengan el mismo tamaño de fuente que su contendor 
 * Así podemos igualar el tamaño de la fuente de todo el camino de migas. 
*/

.single-product #migas-pan-woocommerce .woocommerce-breadcrumbs a {
	font-size: 100%;
}


/* Ajustes en el filtro lateral de las categorías */

#oceanwp-off-canvas-sidebar-wrap * {
	font-family: "Heebo", Sans-serif;
}

/*-> Cambios en la label de la caja de búsqueda  */

#oceanwp-off-canvas-sidebar-wrap .sidebar-box form .wp-block-search__label {
	display: inline-block;
	margin-bottom: 5px;
}


/*-> Cambios en el color del botón de la caja de búsqueda  */

#oceanwp-off-canvas-sidebar-wrap .sidebar-box form .wp-block-search__inside-wrapper button {
	background-image: linear-gradient(0deg, var(--e-global-color-primary) 0%, var(--e-global-color-7b43ce1) 100%);
	transition: all 0.8s ease;
}

#oceanwp-off-canvas-sidebar-wrap .sidebar-box form .wp-block-search__inside-wrapper button:hover {
	background-image: linear-gradient(180deg, var(--e-global-color-accent) 0%, var(--e-global-color-secondary) 100%);
}

/*-> Ajustes en el Título del widget Filtrar por precio */

#oceanwp-off-canvas-sidebar-wrap .sidebar-box .wp-block-heading {
}


/*-> Ajustes en el carrito flotante */ 

.woocommerce-mini-cart__total .woocommerce-Price-amount.amount > bdi {
	font-size: 1.3em;
	font-weight: bold;
	letter-spacing: 0.5px;
}

.woocommerce-mini-cart__total .tax_label {
	float: right;
	margin-right: 0.3em;
	width: 100%;
	text-align: right;
	margin: 0;
}

.woocommerce-mini-cart__buttons .button {
	min-height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.woocommerce-mini-cart__buttons .button.checkout {
	background-image: linear-gradient(0deg, var(--e-global-color-primary) 0%, var(--e-global-color-7b43ce1) 100%);
	color: white;
	transition: 'background-image' 0.8s ease;
}

.woocommerce-mini-cart__buttons .button.checkout:hover {
	background-image: linear-gradient(180deg, var(--e-global-color-accent) 0%, var(--e-global-color-secondary) 100%);
}


/*-> Ajustes página de checkout */

.woocommerce-cart .product-name .variation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	text-align: left;
}

.woocommerce-cart .woocommerce-cart-form table.cart img {
	max-width: 150px;
}

.woocommerce-cart .woocommerce-cart-form td.product-name a {
	color: var(--e-global-color-primary);
	font-weight: bold;
}
/* Ampliamos la fuente del Total del Carrito */
.woocommerce-cart .cart_totals .order-total th {
	font-size: 1.5em;
}

.woocommerce-cart .woocommerce-cart-form button[type="submit"],
.woocommerce-cart .wc-proceed-to-checkout a
{
	background-image: linear-gradient(0deg, var(--e-global-color-primary) 0%, var(--e-global-color-7b43ce1) 100%);
}

.woocommerce-cart .woocommerce-cart-form button[type="submit"]:hover,
.woocommerce-cart .wc-proceed-to-checkout a:hover {
	background-image: linear-gradient(180deg, var(--e-global-color-accent) 0%, var(--e-global-color-secondary) 100%);
}

/*-> Ajustes Sección Cross Sells */

.woocommerce-cart .cross-sells .products {
	display: flex;
}

.woocommerce-cart .cross-sells .products .product-inner,
.woocommerce-cart .cross-sells .products .product-inner .woo-entry-inner
{
	height: 100%;
}

.woocommerce-cart .cross-sells .products .product-inner .woo-entry-inner {
	display: flex;
	flex-direction: column;
}

.woocommerce-cart .cross-sells .products .product-inner {
	border: 1px solid #cbcbcb;
}

.woocommerce-cart .cross-sells .products .product-inner:hover {
	border: 1px solid var(--e-global-color-primary);
}

.woocommerce-cart .cross-sells .products .product-inner .title h2 {
	letter-spacing: -0.8px;
	text-transform: none;
	min-height: 50px;
	padding-inline: 0.5em;
}

.woocommerce-cart .cross-sells .products .product-inner .btn-wrap {
	margin-top: auto;
}

.woocommerce-cart .cross-sells .products .product-inner .btn-wrap a {
	width: 100%;
	border: none;
	background-image: linear-gradient(0deg, var(--e-global-color-primary) 0%, var(--e-global-color-7b43ce1) 100%);
	color: white !important;
	padding: 1.2em;
	text-transform: uppercase;
	letter-spacing: 1px !important;
}

.woocommerce-cart .cross-sells .products .product-inner .btn-wrap a:hover {
	background-image: linear-gradient(180deg, var(--e-global-color-accent) 0%, var(--e-global-color-secondary) 100%);
}


/* Final Ajustes de la pagina de Checkout */

/* Ajustes Pagina Finalizar Compra */ 

/* Eliminamos la barra lateral */
.woocommerce-checkout aside {
	display: none;
}

/* Contenedor principal centrado y ancho completo */
.woocommerce-checkout #content-wrap #primary {
	width: 100%;
	border-right: 0px;
	padding-left: 10px;
	padding-right: 10px;
	margin-left: auto;
	margin-right: auto;
}

/* Cambiamos estilo al nombre del producto */
.woocommerce-checkout #content-wrap #primary .cart_item .product-name {
	color: var(--e-global-color-primary);
	font-weight: bold;
}

/* Estilos de las caractersticas del producto */
.woocommerce-checkout #content-wrap #primary .cart_item .product-name .variation {
	color: #4a4a4a;
	font-weight: 400;
	font-size: 95%;
}

/* Alineación del precio en la parte de arriba */
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-total {
	vertical-align: top;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-total .tax_label,
.woocommerce-checkout .woocommerce-checkout-review-order-table .cart-subtotal .tax_label {
	display: block;
}

/* Fondo de las filas de Subtotal y Total */
.woocommerce-checkout .cart-subtotal,
.woocommerce-checkout .order-total
{
	background-color: #f7f7f7;
}

/*-> Ajustes de la fuente de los totales del carrito en carrito y checkout */
.order-total .woocommerce-Price-amount bdi:not(.includes_tax bdi),
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th {
	font-size: 1.8em;
}

.order-total .includes_tax {
	display: block;
}




/*-> Ajustes Botón Realizar Pedido */
.woocommerce-checkout .place-order button[type="submit"] {
	background-image: linear-gradient(0deg, var(--e-global-color-primary) 0%, var(--e-global-color-7b43ce1) 100%);
}

.woocommerce-checkout .place-order button[type="submit"]:hover {
	background-image: linear-gradient(180deg, var(--e-global-color-accent) 0%, var(--e-global-color-secondary) 100%);
}


/* Mensaje de Error cuando falta algo por rellenar */

.woocommerce-NoticeGroup .woocommerce-error li:not(:last-child) {
	margin-bottom: 10px;
}

.woocommerce-NoticeGroup .woocommerce-error li a {
	float: none;
	display: inline-block;
	background-color: transparent;
}

/* FIN Ajustes Finalizar Compra */



/* Ajustes de la caja de opciones en la ficha de producto para que salga bien en el móvil */

@media screen and (max-width: 480px) {
	.per-row-5 {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
	
	.single-product .yith-wapo-option.selection-multiple.square {
		margin: 0px;
	}
	
	.single-product .yith-wapo-option.selection-multiple.square div.label div.color-container {
		width: 100%;
	}
	
	/* Ajustes del listado de valoraciones en la ficha de producto */
	
	.single-product .woocommerce-Tabs-panel #reviews #comments .commentlist .review .comment_container {
		display: flex;
		flex-direction: column;
		padding-left: 0;
		row-gap: 10px;
	}
	
	.single-product .woocommerce-Tabs-panel #reviews #comments .commentlist .review .comment_container img {
		position: static
	}
	 
	.single-product .woocommerce-Tabs-panel #reviews #comments .commentlist .review .comment_container .comment-text {
		
	}
	
}