/* Específico de product.tpl */
.top-image {
  z-index: 2;
  overflow: hidden;
  position: absolute;
  width: calc(100% - 30px);
	align-items: flex-start;
}

.top-image > .product-flags {
	position: relative;
	flex: 1;
	left: inherit;
	top: inherit;
}
.top-image > .btn-transparent {
	font-size: 2rem;
}
.product-images .splide__slide.is-active.is-visible a {
	border: 2px solid;
}
.js-splide-product-images .splide__arrow--prev {
	left: 0rem;
}
.js-splide-product-images .splide__arrow--next {
	right: 0rem;
}

.product-prices {
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 15px;
	margin-bottom: 15px;
}
.product-prices .product-price {
	border-right: 1px solid var(--border-color);
	padding-right: 15px;
	min-height: 50px;
}

.product-prices .promo-dto {
	padding: 4px 8px;
	margin: 8px 0;
}
@media(min-width: 992px) {
	.desktop-sticky {
		position: sticky;
		z-index: 1;
		top: 126px;
		box-shadow: 4px -1px 8px rgba(0,0,0,.09);
	}
	.product-prices .promo-dto {
	  position: absolute;
	  top: 10px;
	  left: 170px;
	}
	.product-prices .product-price {
		min-width: 130px;
	}
}

.product-prices .current-price-value{
    font-size: 32px;
    display: inline-block;
    line-height: 28px;
		color: var(--black-font);
		letter-spacing: -2px;
		font-weight: 700;
}

.product-prices > .extra-info-price {
  flex: 1;
  max-width: 100%;
  text-align: right;
}
.product-manufacturer {
	font-size: var(--font-size-sm);
	
	text-transform: uppercase;
}
.brand-badge {
  background-color: #e8e8e7;
  padding: 4px 8px;
  border-radius: 15px;
  font-weight: 700;
  display: inline-block;
}
.brand-badge:hover {
	opacity: 0.7;
}
.product-info-grid {
	grid-template-columns: 1fr 3fr;
	display: grid;
  font-size: var(--font-size-sm);
	align-items: start;
  grid-gap:4px;
}
@media(max-width: 600px) {
	.product-info-grid {
		grid-template-columns: 1fr;
	}
	.product-info-grid > .var {
		display: none;
	}
}

.product-info-grid > div {
	padding: 2px;
	font-size: 14px;
}
.product-info-grid > .var {
	font-size: 14px;
	font-weight: 700;
}
 #product-availability {
	font-weight: 400;
	font-size: 14px;

}

.status-available {
	background-color: #f0f6df;
}
.status-unavailable {
	background-color: #FFEAF1;
}
/* variantes producto */
.product-variants {
	grid-template-columns: 1fr 3fr;
	display: grid;
	grid-gap:4px;
}
.product-variants {
	grid-template-columns: 1fr 3fr;
	display: grid;
	grid-gap:4px;
	margin-top: 4px;
}
@media(max-width: 600px) {
	.product-variants {
		grid-template-columns: 1fr;
	}
}
.attribute_radio {
	display: none;
}
.attrimg label {
  display: inline-block;
  margin-top: 0;
  font-weight: 700;
  padding-top: 5px;
  display: inline-block;
  margin-bottom: 0;
  margin-right: 4px;
}
.attrimg label span {
  display: block;
  border: 2px solid transparent;
  padding: 0;
  background-color: #f0efec;
  font-weight: normal;
  cursor: pointer;
  width: 100%;
  border-radius: 1px;
  font-size: 12px;
}
.text-radio {
  height: auto;
  line-height: 1;
  padding: 10px 8px !important;

  text-align: center;
  min-width: 80px;
}
.attribute_radio:checked + span {
  border-color: #94c11f;
  opacity: 1;
  background-color: #fff;
}
/* color */
.attrimg .icon-circle {
	border-radius: 50% !important;
	display: block;
	border: 2px solid var(--border-color);
	background-color: #f0efec;
	padding: 2px;
}
.attrimg label span.color {
  width: 35px;
  height: 35px;
  display: block;
}
.input-color {
	display: none;
}
.input-color:checked + span.icon-circle {
  border-color: #fff;
  box-shadow: 1px 1px 5px -1px rgba(0,0,0,0.4);
}

@media(min-width: 768px) {
	.product-add-to-cart {
		border-top: 1px solid var(--border-color);
		padding-top: 15px;
		margin-top: 15px;
	}
}
@media(max-width: 767px) {
	.product-add-to-cart {
		position: fixed;
		width: 100%;
		z-index: 21;
		padding: 10px;
		left: 0;
		bottom: 0;
		background-color: #fff;
	}
	.js-product-box {
		margin-top: -5px;
		border-top: none;
		width: 100%;
		overflow: hidden;
	}
	.conasiguide {
		margin-top: 30px;
	}

}
/* relateds */
.relateds > div {
	padding: 8px 0;
	border-bottom: 1px solid var(--border-color);
	line-height: 1.4;
	font-size: var(--font-size-medium);
}
.title-relateds {
	font-size: 12px;
}
.relateds a:hover {
	text-decoration: underline;
}
.relateds > div:last-child {
	padding-bottom: 0px;
	border-bottom: none;
}
.relateds i {
	margin-right: 2px;
	font-size: 70%;
}
.miniprice {
	width: 65px;
	display: inline-block;
}
/* Guía contenidos  */
.conasiguide > ul {
    padding: 10px 0;
    overflow-x: auto;
    width: calc(100%);
    display: block;
    white-space: nowrap;
    overflow-y: hidden;

}
.conasiguide > ul > li {
	display: inline-block;
} 
.conasiguide > ul > li > a {
  background-color: #fff;
  padding: 10px 15px;
  border-radius: 20px;
  margin-right: 8px;
  border: 1px solid #f0efea;
  transition: all 0.3s ease;
}
.conasiguide > ul > li > a:hover {
	color: #fff;
	background-color: var(--third-color);
}


.product-features dl {
	margin: 0;
	padding: 0;
}
@media screen and (min-width: 640px) {
	.product-features dl {
		display: flex;
		flex-wrap: wrap;
	}
}
.product-features dd,
.product-features dt {
	margin: 0;
	font-size: .9rem;
}
.product-features dt {
	padding: .2rem .4rem 0 .4rem;
}
.product-features dd {
	padding: 0 .4rem .2rem .4rem;
}
@media screen and (min-width: 640px) {
	.product-features dd,
	.product-features dt {
		padding: .4rem;
	}
}
.product-features dt {
	font-weight: 600;
}
@media screen and (min-width: 640px) {
	.product-features dt {
		width: 25%;
		display: inline-block;
	}
}
@media screen and (min-width: 640px) {
	.product-features dd {
		width: 75%;
		display: inline-block;
	}
}
.product-features dd:nth-of-type(even) { background-color:#E8E8D1 }
.product-features dt:nth-of-type(odd) { background-color:transparent }
.product-features dt:nth-of-type(even) { background-color:#E8E8D1 }

/* Input qty */

.product-quantity.d-center-all {
	gap: 1rem;
}
.new-qty, .qty {
	width: 100px;
}
.add {
	flex: 1;
}
.post-name:hover {
	text-decoration: underline;
}
.post-title {
  height: 60px;
  overflow: hidden;
}

/* override countdown in product page */
.has-discount .show-countdown {
    background-color: var(--cta-color);
}
/* override stars  */
.d-flex-stars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.d-flex-stars .stars_base, .d-flex-stars .stars_base::after, .d-flex-stars .stars_average, .d-flex-stars .stars_average::after {
    height: 25px;
    line-height: 25px;
    font-size: 24px;
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}
.d-flex-stars .stars_base, .d-flex-stars .stars_base::after {
	width: 120px;
}
.stars-count {
	font-size: 24px;
}

.ico-envio {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}
.ico-envio i {
  height: 48px;
  width: 48px;
  text-align: center;
  line-height: 48px;
  font-size: 28px;
  background-color: white;
  border-radius: 50%;
  box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
  margin-right: 0;
}
.grid-pago small {
	margin-bottom: 8px;
}
.formas_pago img {
	width: 62px;
	height: auto;
	margin: 0;
}
.formas_pago  p {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.grid-pago {
	display: flex;
	gap: 20px;
	flex-direction: column;
}


@media screen and (min-width: 1200px) {
	.grid-pago {
		flex-direction: row;
	}
	.formas_pago p {
		justify-content: flex-end;
	}
}

.sequra-promotion-widget{
    margin-top: 15px;
}
.sequra-promotion-widget:empty {
    display: none;
}
/* notificaciones mail alert */
.msg-alert:empty {
    display:none;
}
.msg-alert { 
    margin-bottom: 10px;
    padding: 5px;
    background-color: #94c11d;
    color: #fff;
    font-weight: 400;
}
#ps_checkout-payment-method-logo-block-container{
	display: none;
}

.btn-img {
	display: flex;
	align-items: center;
	flex-direction: column;
	position: relative;
}

.btn-img > .btn-transparent, .btn-img > .sharelinks > .btn-transparent   {
	font-size: 28px;
}
.btn-img .dropdown-toggle::after {
	display: none !important;
}
.dropdown-sharelinks {
	z-index: 111111111;
	height: auto;
	width: 200px;
	margin-left: -170px;
	opacity: 1;
	background-color: white;
	padding: 6px 12px;
}
.dropdown-sharelinks span {
	border-bottom: 1px solid var(--border-color);
	display: block;
	padding: 5px 0;
}
.dropdown-sharelinks span:last-child {
	border-bottom: none; 
}

.block-prices .price {
	color: var(--cta-color) !important;
}
.product-price.has-discount .promo-dto {
	background-color: var(--cta-color) !important;
}

/* simuladors de producto */
body.modal-simulator-active  .desktop-sticky  {
	z-index: 1111111; 
}
.text-simulators .financiacion-overlay {
  display: none; /* Oculto por defecto */
}

.text-simulators.active .financiacion-overlay {
    display: flex;
    z-index: 11111111;
    position: fixed;
    left: 0;
    top: 0;
}

/* Mostrar cuando esté activo como modal */
.text-simulators.modal-active {
  display: block;
}



.text-simulators.modal-active .financiacion-overlay.active {
  /* estilos adicionales cuando está completamente activo */
}
.financing-info {
	cursor: pointer;
	gap: 8px;
	align-items: center;
	display: flex;
	font-size: 14px;
	justify-content: space-between;
}
.financing-info::after {
	content: "\f108";
	font: normal normal normal 1em / 1 'Conasi';
	font-size: 15px;
	color: var(--dark);
}

.sequra-widget {
		border: 1px solid var(--border-color);
		margin: 20px 0;
}

.financiacion-body  .text-simulators {
	display: block;
	opacity: 1;
	height: auto !important;
}

/* Modal overlay */
.financiacion-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, .8);
	z-index: 9999;
	display: none;
	justify-content: center;
	align-items: center;
	padding: 20px;
	box-sizing: border-box;
}

.financiacion-overlay.active {
	display: flex;
}

/* Modal content */
.text-simulators.financiacion-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.text-simulators.financiacion-overlay.active {
  display: flex;
}
.financiacion-content {
	background: white;
	border-radius: 8px;
	max-width: 550px;
	width: 100%;
	overflow-y: auto;
	position: relative;
	padding: 0;
	box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
	transition: all 0.3s ease;
}


/* Header */
.financiacion-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 20px 20px 0 20px;
}


/* Body */
.financiacion-body {
	padding: 0 20px 20px 20px;
}

/* Close button */
.financiacion-close {
		background: none;
		border: none;
		cursor: pointer;
		padding: 0;
		flex-shrink: 0;
		height: 35px;
		width: 35px;
		font-size: 20px;
		line-height: 30px;
		display: flex;
		align-items: flex-start;
		justify-content: flex-end;
}




/* Animation */
@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.7);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}