.my-pp {
	--pp-ink: #101828;
	--pp-muted: #667085;
	--pp-line: rgba(16, 24, 40, 0.1);
	--pp-green: #54ae54;
	--pp-green-dark: #378f37;
	--pp-soft: #f7faf7;
	--pp-promo-color: var(--pp-green);
	--pp-promo-soft: #e8f6e8;
	--pp-shadow: 0 18px 54px rgba(16, 24, 40, 0.08);
	background: #fff;
	color: var(--pp-ink);
	font-family: "Montserrat";
	overflow: hidden;
}

.my-pp--blackfriday {
	--pp-promo-color: #e63946;
	--pp-promo-soft: #ffe7e9;
}

.my-pp--aniversario {
	--pp-promo-color: #1769ff;
	--pp-promo-soft: #e7f0ff;
}

body.page-template-my-pack-personalizado-page,
body.page-template-my-pack-personalizado-page :where(div, section, article, header, footer, nav, p, a, span, li, h1, h2, h3, h4, h5, h6, small, strong, em, label, table, th, td, button, select, option) {
	font-family: "Montserrat"!important;
}

.my-pp *,
.my-pp *::before,
.my-pp *::after {
	box-sizing: border-box;
}

.my-pp-container {
	width: min(1120px, calc(100% - 80px));
	margin: 0 auto;
}

.my-pp-hero {
	padding: 220px 0 0px;
	background: #fff;
}

.my-pp-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 40px;
	align-items: center;
}

.my-pp-hero__visual {
	display: block;
	width: 100%;
}

.my-pp-hero__visual img {
	display: block;
	width: 100%;
	height: auto;
}

.my-pp h1,
.my-pp h2 {
	margin: 0;
	padding: 0;
	color: #000;
	letter-spacing: 0;
}

.my-pp h1 {
    font-size: 45px;
    font-weight: 600;
	color: var(--pp-green);
}

.my-pp-lead {
	max-width: 680px;
	margin: 22px 0 0;
	color: #000;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.55;
}

.my-pp-benefits {
	display: grid;
	gap: 12px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.my-pp-benefits li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	color: #000;
	font-size: 18px;
	line-height: 1.45;
}

.my-pp-benefits li::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 3px;
	border-radius: 50%;
	background: var(--pp-promo-color);
	box-shadow: inset 0 0 0 5px var(--pp-promo-soft);
}

.my-pp-promo-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	width: fit-content;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	vertical-align: middle;
}

.my-pp--blackfriday .my-pp-promo-chip {
	background: rgba(230, 57, 70, 0.12);
	color: #e63946;
}

.my-pp--aniversario .my-pp-promo-chip {
	background: rgba(23, 105, 255, 0.12);
	color: #1769ff;
}

.my-pp-hero__button {
	text-align: left;
}

.my-pp-hero__button .custom-add-to-cart-pack-personalizado,
.my-pp-hero__button .button.product_type_simple.add_to_cart_button.custom-replaced {
	width: auto;
	min-width: 0;
	background: #d0d0d0;
	color: #000;
}

.my-pp-hero__button .custom-add-to-cart-pack-personalizado:not(:disabled):not(.disabled):not(.is-incomplete):not(.is-in-cart),
.my-pp-hero__button .button.product_type_simple.add_to_cart_button.custom-replaced:not(:disabled):not(.disabled) {
	background-color: #54ae54;
	background-image: linear-gradient(90deg, #54ae54, #69c968, #429f42, #78d176);
	background-size: 300% 100%;
	background-position: 0 0;
	color: #fff;
	box-shadow: 0 2px 15px 0 rgba(84, 174, 84, 0.72);
	transition: all 0.4s ease-in-out;
}

.my-pp-builder {
	padding: 22px 0 110px;
	background: #fff;
}

.my-pp-builder__grid {
	display: block;
}

.my-pp h2 {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.my-pp .pack-personalizado-precio {
	margin: 15px 0 0;
	color: var(--pp-green);
	font-weight: 600;
    font-size: 26px;
    line-height: 26px;
}

.my-pp #pack-personalizado-tabla {
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--pp-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 8px;
	background: #fff;
}

.my-pp #pack-personalizado-tabla th,
.my-pp #pack-personalizado-tabla td {
	padding: 14px 16px;
	border: 0;
	border-bottom: 1px solid var(--pp-line);
	color: #000;
	font-size: 16px;
	line-height: 1.4;
	text-align: center;
	vertical-align: middle;
}

.my-pp #pack-personalizado-tabla th {
	background: #f8faf8;
	color: black;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
}

.my-pp #pack-personalizado-tabla tbody tr:last-child td {
	border-bottom: 0;
}

.my-pp #pack-personalizado-tabla .producto-anadir td,
.my-pp #pack-personalizado-tabla .anadir-opoley {
	background: var(--pp-soft) !important;
	color: var(--pp-green-dark);
	font-weight: 600;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.my-pp #pack-personalizado-tabla .anadir-opoley.is-loading {
	padding: 15px !important;
	background: white !important;
	color: #8a8a8a;
}

.my-pp #pack-personalizado-tabla .anadir-opoley.is-ready {
	background: #edf7ed !important;
	color: #237a23;
}

.my-pp #pack-personalizado-tabla .anadir-opoley:hover {
	background: #edf7ed !important;
	color: #237a23;
}

.my-pp #pack-personalizado-tabla img {
	max-width: 100px !important;
	width: 100px !important;
	height: auto !important;
	border-radius: 6px;
}

.my-pp .precio-original {
	margin-right: 8px;
	font-size: 16px;
}

.my-pp .precio-descuento {
	color: black;
}

.my-pp .eliminar-producto {
	color: red !important;
	font-size: 2.5em !important;
	font-weight: 400 !important;
	line-height: 1;
}

.my-pp .custom-add-to-cart-pack-personalizado,
.my-pp .button.product_type_simple.add_to_cart_button.custom-replaced {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0.8rem 1.6rem;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: uppercase;
	background-image: linear-gradient(90deg, #54ae54, #69c968, #429f42, #78d176);
	background-size: 300% 100%;
	box-shadow: 0 2px 15px 0 rgba(84, 174, 84, 0.72);
	transition: all 0.4s ease-in-out;
	white-space: nowrap;
}

.my-pp .custom-add-to-cart-pack-personalizado:not(:disabled):not(.disabled):not(.is-incomplete):not(.is-in-cart),
.my-pp .button.product_type_simple.add_to_cart_button.custom-replaced:not(:disabled):not(.disabled) {
	opacity: 1;
	background-image: linear-gradient(90deg, #54ae54, #69c968, #429f42, #78d176);
	background-size: 300% 100%;
	color: #fff;
	cursor: pointer;
	box-shadow: 0 2px 15px 0 rgba(84, 174, 84, 0.72);
}

.my-pp .custom-add-to-cart-pack-personalizado:not(:disabled):hover,
.my-pp .button.product_type_simple.add_to_cart_button.custom-replaced:not(:disabled):hover {
	background-position: 100% 0;
	color: #fff;
	box-shadow: 0 1px 8px 0 rgba(84, 174, 84, 0.82);
	transform: scale(1.05);
}

.my-pp-hero__button .custom-add-to-cart-pack-personalizado:not(:disabled):hover,
.my-pp-hero__button .button.product_type_simple.add_to_cart_button.custom-replaced:not(:disabled):hover {
	background-color: #54ae54;
	background-image: linear-gradient(90deg, #54ae54, #69c968, #429f42, #78d176);
	background-size: 300% 100%;
	background-position: 100% 0;
	color: #fff;
	box-shadow: 0 1px 8px 0 rgba(84, 174, 84, 0.82);
	transform: scale(1.05);
}

.my-pp .custom-add-to-cart-pack-personalizado:disabled,
.my-pp .custom-add-to-cart-pack-personalizado.disabled,
.my-pp .custom-add-to-cart-pack-personalizado.is-incomplete,
.my-pp .button.product_type_simple.add_to_cart_button.custom-replaced:disabled,
.my-pp .button.product_type_simple.add_to_cart_button.custom-replaced.disabled {
	opacity: 0.48;
	background: #d4d4d4;
	background-image: none;
	color: #000;
	cursor: not-allowed;
	transform: none;
	box-shadow: 0 2px 15px 0 rgba(107, 114, 128, 0.18);
}

.my-pp .custom-add-to-cart-pack-personalizado.is-submitting,
.my-pp .button.product_type_simple.add_to_cart_button.custom-replaced.is-submitting {
	opacity: 0.45;
	background-image: linear-gradient(90deg, #54ae54, #69c968, #429f42, #78d176);
	background-size: 300% 100%;
	color: #fff;
	cursor: not-allowed;
	box-shadow: 0 2px 15px 0 rgba(11, 18, 32, 0.18);
}

.my-pp .custom-add-to-cart-pack-personalizado.is-incomplete:hover {
	background: #d4d4d4;
	background-image: none;
	color: #000;
	cursor: not-allowed;
	transform: none;
	box-shadow: 0 2px 15px 0 rgba(107, 114, 128, 0.18);
}

.my-pp .custom-add-to-cart-pack-personalizado.is-in-cart {
	opacity: 1;
	background: #d4d4d4;
	background-image: none;
	color: #000;
	cursor: not-allowed;
	transform: none;
	box-shadow: 0 2px 15px 0 rgba(107, 114, 128, 0.18);
	-webkit-text-fill-color: #000;
}

#seleccionar-opoley-overlay {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: rgba(0, 0, 0, 0.46);
	backdrop-filter: blur(1px);
}

.my-pp #seleccionar-opoley {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: min(600px, calc(100% - 40px)) !important;
	max-height: calc(100vh - 160px);
	padding: 26px !important;
	border: 1px solid var(--pp-line) !important;
	border-radius: 8px !important;
	box-shadow: 0 24px 70px rgba(16, 24, 40, 0.2) !important;
	overflow: visible !important;
	z-index: 1000 !important;
}

.my-pp #seleccionar-opoley h3 {
	margin: 0 0 18px !important;
	color: #000;
	font-size: 22px;
	font-weight: 600;
	text-align: left;
}

.my-pp #seleccionar-opoley select,
.my-pp .opoley-custom-select__button,
.my-pp #opoley-search {
	width: 100% !important;
	min-height: 46px;
	margin-bottom: 14px !important;
	padding: 10px 12px !important;
	border: 1px solid var(--pp-line);
	border-radius: 8px;
	background: #fff;
	color: #000;
	font-size: 16px !important;
	font-family: "Montserrat"!important;
}

.my-pp .opoley-search-field {
	position: relative;
	width: 100%;
	margin-bottom: 14px;
}

.my-pp .opoley-search-field__icon {
	position: absolute;
	top: 50%;
	left: 13px;
	display: inline-flex;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
	color: #667085;
	pointer-events: none;
	transform: translateY(-50%);
}

.my-pp .opoley-search-field__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.my-pp .opoley-search-field #opoley-search {
	margin-bottom: 0 !important;
	padding-left: 40px !important;
}

.my-pp #seleccionar-opoley select:disabled,
.my-pp .opoley-custom-select.is-disabled .opoley-custom-select__button,
.my-pp #opoley-search:disabled {
	background: #fdfdfd;
	border-color: #dedede;
	color: grey;
	cursor: not-allowed;
	opacity: 1;
}

.my-pp .opoley-custom-select {
	position: relative;
	width: 100%;
}

.my-pp .opoley-custom-select__button {
	position: relative;
	display: block;
	padding-right: 38px !important;
	cursor: pointer;
	text-align: left;
}

.my-pp .opoley-custom-select__button::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 14px;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-65%) rotate(45deg);
}

.my-pp .opoley-custom-select__options {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1002;
	width: 100%;
	max-height: min(280px, calc(100vh - 360px));
	overflow-y: auto;
	border: 1px solid var(--pp-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.my-pp .opoley-custom-select__option {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--pp-line);
	background: #fff;
	color: #000;
	cursor: pointer;
	font-size: 16px;
	line-height: 1.35;
	text-align: left;
}

.my-pp .opoley-custom-select__option:last-child {
	border-bottom: 0;
}

.my-pp .opoley-custom-select__option:hover,
.my-pp .opoley-custom-select__option.is-selected {
	background: #f8faf8;
}

.my-pp .opoley-custom-select__option:disabled {
	color: grey;
	cursor: not-allowed;
	background: #f7f7f7;
}

.my-pp #opoley-search-results {
	position: absolute;
	z-index: 1001;
	width: 100%;
	max-height: min(260px, calc(100vh - 360px));
	margin: 0;
	overflow: hidden;
	overflow-y: auto;
	border: 1px solid var(--pp-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(16, 24, 40, 0.12);
}

.my-pp .opoley-search-result {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--pp-line);
	background: #fff;
	color: #000;
	cursor: pointer;
	font-size: 16px;
	line-height: 1.35;
	text-align: left;
}

.my-pp .opoley-search-result:last-child {
	border-bottom: 0;
}

.my-pp .opoley-search-result:hover {
	background: #f8faf8;
}

.my-pp .opoley-search-result:disabled {
	background: #f7f7f7;
	color: grey;
	cursor: not-allowed;
}

.my-pp .opoley-search-result:disabled:hover {
	background: #f7f7f7;
}

.my-pp .opoley-search-result--empty,
.my-pp .opoley-search-result--empty:hover {
	background: #fff;
	color: #b1b1b1;
	cursor: default;
}

.my-pp #confirmar-opoley {
	display: block;
	padding: 0.8rem 1.6rem !important;
	border: 0 !important;
	border-radius: 999px;
	color: #fff !important;
	cursor: pointer;
	font-size: 16px !important;
	font-weight: 600;
	text-align: center;
	letter-spacing: 0;
	background-image: linear-gradient(90deg, #54ae54, #69c968, #429f42, #78d176) !important;
	background-size: 300% 100%;
	box-shadow: 0 2px 15px 0 rgba(11, 18, 32, 0.18);
	transition: all 0.4s ease-in-out;
	white-space: nowrap;
	margin-top: 8px;
	margin-right: auto;
}

.my-pp #confirmar-opoley:not(:disabled):hover,
.my-pp #confirmar-opoley:not(.disabled):hover {
	background-position: 100% 0;
	color: #fff !important;
	box-shadow: 0 1px 8px 0 rgba(11, 18, 32, 0.22);
	transform: scale(1.05);
}

.my-pp #confirmar-opoley:disabled,
.my-pp #confirmar-opoley.disabled {
	opacity: 0.5;
	cursor: not-allowed !important;
	transform: none;
}

@media (max-width: 1024px) {
	.my-pp-hero {
		padding: 190px 0 62px;
	}

	.my-pp-hero__visual img{
		margin-bottom: 25px!important;
	}

	.my-pp-hero__grid {
		grid-template-columns: 1fr;
		gap: 0px;
	}

	.my-pp-hero__visual {
		order: 1;
	}

	.my-pp-hero__content {
		order: 2;
	}

	.my-pp-hero__content {
		text-align: center;
	}

	.my-pp h1,
	.my-pp-lead {
		margin-right: auto;
		margin-left: auto;
	}

	.my-pp-benefits {
		max-width: 620px;
		margin-right: auto;
		margin-left: auto;
	}

	.my-pp-benefits li {
		display: block;
		text-align: center;
	}

	.my-pp-benefits li::before {
		display: inline-block;
		margin: 0 8px -4px 0;
	}

	.my-pp-hero__button {
		text-align: center;
	}

	.my-pp-hero__visual img {
		width: min(100%, 520px);
		margin: 0 auto;
	}
}

@media (max-width: 1200px) {
	.my-pp-promo-chip {
		margin-left: 5px;
	}

	.my-pp #pack-personalizado-tabla .col-descripcion {
		display: none;
	}
}

@media (max-width: 500px) {
	.my-pp #confirmar-opoley {
		width: 100%;
	}
}

@media (max-width: 700px) {
	.my-pp-container {
		width: calc(100% - 60px);
	}

	.my-pp-hero {
		padding: 160px 0 46px;
	}

	.my-pp h1 {
		font-size: clamp(34px, 10vw, 44px);
	}

	.my-pp-lead {
		font-size: 16px;
	}

	.my-pp-benefits li {
		font-size: 16px;
	}

	.my-pp-builder {
		padding-bottom: 80px;
	}

	.my-pp h2 {
		font-size: 26px;
	}

	.my-pp #pack-personalizado-tabla {
		display: table;
		width: 100%;
		min-width: 0;
		table-layout: fixed;
		overflow: hidden;
	}

	.my-pp #pack-personalizado-tabla th,
	.my-pp #pack-personalizado-tabla td {
		padding: 12px 8px;
		white-space: normal;
		word-break: normal;
		overflow-wrap: anywhere;
	}

	.my-pp #pack-personalizado-tabla .col-imagen,
	.my-pp #pack-personalizado-tabla .col-descripcion {
		display: none;
	}

	.my-pp #pack-personalizado-tabla th:nth-child(2),
	.my-pp #pack-personalizado-tabla td:nth-child(2) {
		width: 43%;
	}

	.my-pp #pack-personalizado-tabla th:nth-child(4),
	.my-pp #pack-personalizado-tabla td:nth-child(4) {
		width: 45%;
	}

	.my-pp #pack-personalizado-tabla th:nth-child(5),
	.my-pp #pack-personalizado-tabla td:nth-child(5) {
		width: 12%;
	}

	.my-pp #pack-personalizado-tabla .producto-anadir .anadir-opoley {
		width: 100%;
		white-space: nowrap;
		overflow-wrap: normal;
	}

	.my-pp #pack-personalizado-tabla .producto-anadir .anadir-opoley.is-loading {
		display: table-cell;
		text-align: center;
		white-space: normal;
		overflow-wrap: normal;
	}

	.my-pp #pack-personalizado-tabla .producto-anadir .anadir-opoley.is-loading .spinner {
		vertical-align: middle;
	}
}
