/*
Theme Name:     Coope 9 DE 2
Theme URI:      
Description:    Twentytwentyone child theme.
Author:         Me
Author URI:     
Template:       twentytwentyone
Version:        0.1.0
*/

.site-header {
	padding-bottom: 0 !important;
}

.primary-navigation .menu-item > a {
	border-bottom: 3px solid transparent;

}
.primary-navigation .current-menu-item > a {
	color: #000 !important;
	text-decoration: none !important;
	border-bottom: 3px solid black;
	background: rgba(255,255,255,.2);
}



aside.widget-area {
	display: none !important;
}

dl.variation dt:first-of-type {
        display: none;
}

dl.variation dd:first-of-type {
	font-weight: bold;
	padding-left: 0;
}

dl.variation dd {
	text-align: left;
}

.wp-block-button__link {
	color: inherit !important;
	text-decoration: underline !important;
	text-decoration-thickness: 2px !important;
	background-color: rgba(255,255,255,.5) !important;
}

#main .wp-block-button__link:hover,
#main .wp-block-button__link:focus {
	background: #fff !important;
	box-shadow: 0 0 10px 0px #fff;
	color: #000;
	text-decoration-skip-ink: all;
}

#payment .woocommerce-terms-and-conditions-wrapper,
.payment_box.payment_method_woo-mercado-pago-basic,
.single-product .summary p.price,
#tab-description h2:first-of-type,
#tab-description:has(details)>p:first-of-type, /* Texto oculto para MP en el description https://i.imgur.com/tOmrzh5.png  */
nav.woocommerce-breadcrumb,
.single-product .product_meta,
.woocommerce-result-count,
form.woocommerce-ordering {
	display: none !important;
}

.product-subtotal del {
	display: none;
}

.cart_item del {
	opacity: .7;
}
.cart_item ins {
	text-decoration: none;
}
.cart_item .product-name {
	text-align: left;
}
.woocommerce-checkout .entry-content {
	max-width: var(--responsive--alignwide-width);
}

.woocommerce-checkout-review-order-table del {
	display: none;
}

.woocommerce-product-details__short-description p,
.woocommerce-product-details__short-description ul,
#tab-description p {
	margin-bottom: 1em;
}

.entry-title {
	hyphens: auto;
}

details summary {
	font-weight: bold;
	margin-bottom: 1em;
	cursor: pointer;
}

.woocommerce-tabs .panel ul {
	list-style: square !important;
	border-bottom: none !important;
}

.woocommerce-tabs .panel li {
	display: list-item !important;
	margin-left: 2em;
	font-size: 100% !important;
}

.woocommerce-tabs .panel details ol,
.woocommerce-tabs .panel details ul {
	padding-left: 1em;
}
.woocommerce-tabs .panel details li {
	margin-left: 0;
}

.postid-3001 .woocommerce-tabs {
	display: none;
}

details h3 {
	font-size: 1em;
	margin-bottom: 1em;
	font-weight: bold;
}

a.restore-item,
a.showlogin,
.woocommerce-message a {
	color: #000;
	font-weight: bold;
}

.ppom-wrapper label {
    margin-bottom: 0.2rem !important;
}

.woocommerce-account main#main .woocommerce {
	max-width: var(--responsive--alignwide-width);
}

table.pool-ranking {
	border-top: 3px solid var(--global--color-border);
}

table.pool-ranking td {
	border: none;
	border-bottom: 1px solid;
}

table.pool-ranking tr.currentuser {
	background-color: #fff;
}

table.pool-ranking a {
	text-decoration: underline dotted rgba(0,0,0,.5);
	display: block;
}
table.pool-ranking a:hover {
	text-decoration: underline solid black 2px;
}

.fp-icon:has(.pie-chart-icon) a:before {
	content: "Ver todos";
	font-size: 75%;
	white-space: nowrap;
}
.fp-icon:nth-child(3),
.fp-icon:has(.pie-chart-icon) img {
	display: none;
}

/*
input#nombre {
    width: 99%;
    max-width: 400px;
}*/

.woocommerce-cart-form input.qty {
    max-width: 100px;
}

@media (max-width: 500px){

	.woocommerce-error li, .woocommerce-info, .woocommerce-message {
		padding: 1.5rem 1rem .5rem;
	}

	.woocommerce-page .woocommerce-message .button { 
		float: none;
		margin-bottom: 1em;
		word-break: normal !important;
	}
}
@media only screen and (max-width: 768px){

	header#masthead {
		min-height: 3em;
	}
	
	#main .product-type-simple {
		margin-top: 0;
	}
	
	.woocommerce table.shop_table_responsive tr:nth-child(2n+1) td, 
	.woocommerce-page table.shop_table_responsive tr:nth-child(2n+1) td {
		background: none;
		-webkit-filter: none;
		filter: none;
	}
	.woocommerce table.shop_table_responsive tr, 
	.woocommerce-page table.shop_table_responsive tr {
		margin-bottom: 4rem;
	}
	.woocommerce table.shop_table_responsive tr td:last-child, 
	.woocommerce-page table.shop_table_responsive tr td:last-child {
		border-bottom-width: 2px;
	}
}

.woocommerce table.shop_table_responsive tr td.product-name::before, 
.woocommerce-page table.shop_table_responsive tr td.product-name::before {
	font-weight: normal;
}

/* No mostrar 'Agregar otro' en el /checkout del Prode, que no pasa por /cart */
.woocommerce-checkout .wc-forward[href*="/prode"]{
	display: none;
}

.let-the-games-begin {
	background: #eee;
	padding: 30px;
	border-top: 3px solid #28303d;
	font-size: 120%;
}

/* Ocultar items de navegación de Woo cuenta */
.woocommerce-MyAccount-navigation-link--dashboard,
.woocommerce-MyAccount-navigation-link--downloads,
.woocommerce-MyAccount-navigation-link--edit-address  {
	display: none;
}

.woocommerce-error {
	border-top: 6px solid #ff0000;
}

.woocommerce-notices-wrapper:has(ul)~.let-the-games-begin {
	display: none;
}

.woocommerce .woocommerce-error li {
	display: block;
}

#main .woocommerce-error a {
	color: #000;
	text-decoration-thickness: 2px;
}



.woocommerce form .woocommerce-form-row  {
    padding-bottom: 1.5em;
}
.woocommerce form.woocommerce-ResetPassword .form-row-last {
    float: none;
}

/* Hijes */
.acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.-plus, 
.acf-repeater .acf-row:hover > .acf-row-handle .acf-icon.-collapse {
	display: none;
}

.acf-repeater .acf-row-handle .acf-icon.-minus {
	display: block;
}

.acf-fields .acf-field.acf-field-repeater {
	padding: 0;
}

.acf-field-repeater input, 
.acf-field-repeater select {
	font-size: 16px !important; /* Evitar zoom en iOS */
}

.acf-repeater .acf-row td {
    border-bottom: 2em solid #d1e4dd;
}

@media (max-width: 600px){
	.woocommerce-hijes .acf-form-submit,
	.woocommerce-hijes .acf-repeater .acf-actions {
		text-align: center;
	}
	.woocommerce-hijes .acf-repeater .acf-actions .acf-button {
		float: none;
	}
	.acf-fields .acf-field.acf-field-repeater {
		margin-bottom: 2em;
	}	
}

a.reset_variations,
.woocommerce-variation.single_variation {
	display: none !important;
}
table.variations,
table.variations th,
table.variations td {
	display:block;
	padding: 0;
	border: none;
}

.postid-624 .qty,
.postid-1098 .qty,
.postid-1096 .qty,
.postid-3001 .qty,
.postid-20 .qty {
	display: none;
}

select.qty {
	min-width: 5em;	
} 

.wpcot-tips .wpcot-tip .wpcot-tip-values .wpcot-tip-value, 
.wpcot-tips .wpcot-tip .wpcot-tip-values .wpcot-tip-value-custom {
	border: var(--form--border-width) solid transparent;
}

.wpcot-tips .wpcot-tip .wpcot-tip-values .wpcot-tip-value > span,
.wpcot-tips .wpcot-tip .wpcot-tip-values .wpcot-tip-value-custom > span {
	height: 40px;
	line-height: 40px;
}

p.backtocart {
	float: right;
	margin-top: -1.7em;
	margin-right: 1em;
}

.product-remove .remove {
    width: 30px;
    height: 30px;
    line-height: 28px;
}

.tiene-hijes .ppom-wrapper {
	display: none;
}

p.out-of-stock {
	background: var(--global--color-red);
	padding: 10px 20px;
	font-weight: bold;
}


/* FIXME: no mostrar deb aut si hay otro prod que no sea Cuota.
Debería ser por PHP. */
.woocommerce-checkout-review-order:has(.variation) .wc_payment_method.payment_method_cheque {
	display:  none !important;
}