.ppc-configurator{
  margin: 24px 0 28px;
  padding: 20px;
  border: 1px solid #e7dfd4;
  border-radius: 16px;
  background: #fff;
  width: 100%;
  max-width: none;
  box-shadow: 0 6px 20px rgba(0,0,0,.03);
}

.ppc-configurator h3{
  margin: 22px 0 12px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #1f1f1f;
}

.ppc-configurator h3:first-of-type{
  margin-top: 0;
}

/* DÍAS */
.ppc-days{
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.ppc-day{
  border: 1px solid #e5d8ca;
  background: #faf7f2;
  color: #FFF !important;
  padding: 10px 8px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all .16s ease;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ppc-day,
.ppc-day *,
.ppc-day-top,
.ppc-day-bottom{
  color: #FFF !important;
}

.ppc-day:hover{
  transform: translateY(-1px);
  border-color: #d9c9b7;
}

.ppc-day.is-selected{
  background: #FFF !important;
  border-color: #E7524D;
  box-shadow: 0 8px 20px rgba(231,82,77,.20);
}

.ppc-day.is-selected,
.ppc-day.is-selected *,
.ppc-day.is-selected .ppc-day-top,
.ppc-day.is-selected .ppc-day-bottom{
  color: #E7524D !important;
}

.ppc-day-top{
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  text-transform: capitalize;
}

.ppc-day-bottom{
  font-size: 11px;
  line-height: 1.1;
  opacity: .9;
  margin-top: 4px;
}

/* GRID PLATOS */
.ppc-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.ppc-card{
  border: 1px solid #e5ddd2 !important;
  background: #fff !important;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: all .16s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,.03);
  position: relative;
}

.ppc-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  border-color: #d7c9b9 !important;
}

.ppc-card.is-selected{
  border: 2px solid #E7524D !important;
  background: #fff !important;
  box-shadow: 0 12px 26px rgba(231,82,77,.16);
}

.ppc-card.is-selected::after{
  content: "✓";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E7524D;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.12);
  z-index: 3;
}

.ppc-card-img{
  position: relative;
  background: #f7f7f7;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ppc-card-img img{
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
  background: #f7f7f7;
  padding: 0;
}

.ppc-noimg{
  min-height: 140px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#666;
  font-size: 13px;
  background:#f7f7f7;
}

.ppc-badge{
	position: absolute;
	right: 10px;
	bottom: 10px;
	top: auto;
	background: rgba(255,255,255,.96);
	color: #1f1f1f;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 3px 10px rgba(0,0,0,.08);
	z-index: 4;
}

.ppc-card-body{
  padding: 10px 12px 12px;
  background: #fff !important;
}

.ppc-card-title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
    width: 100%;
    min-height: 38px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.35;
    color: #000 !important;
    margin: 0 0 8px;
}
.ppc-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ppc-tag{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  background: #F2E9DC;
  color: #5d5246;
}

.ppc-empty{
  padding: 14px 16px;
  background: #faf7f2;
  border: 1px dashed #dfd4c6;
  border-radius: 14px;
  color: #4e4a44;
  font-size: 14px;
  line-height: 1.45;
  grid-column: 1 / -1;
}

/* RESUMEN */
.ppc-summary{
  margin-top: 22px;
}

.ppc-summary-card{
  background: #faf7f2;
  border: 1px solid #ece3d8;
  border-radius: 14px;
  padding: 14px 16px;
}

.ppc-summary-title{
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 15px;
  color: #1f1f1f;
}

.ppc-summary-card div{
  margin-bottom: 5px;
  font-size: 14px;
  line-height: 1.4;
}

.ppc-summary-card div:last-child{
  margin-bottom: 0;
}

.ppc-note{
  font-size: 12px;
  color: #7a746d;
  margin-top: 12px;
  line-height: 1.45;
}

.ppc-inline-error{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff4f4;
  border: 1px solid #ffd6d6;
  color: #9a1b1b;
  font-size: 13px;
  line-height: 1.4;
}

.ppc-loading{
  opacity: .65;
  pointer-events: none;
}

button.single_add_to_cart_button.ppc-disabled{
  opacity: .55;
  cursor: not-allowed;
}

.ppc-configurator + .tm-extra-product-options{
  margin-top: 28px;
}

/* Responsive */
@media (max-width: 1200px){
  .ppc-grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 1024px){
  .ppc-days{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
  .ppc-grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

@media (max-width: 767px){
  .ppc-days{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .ppc-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 520px){
  .ppc-configurator{
    padding: 16px;
  }
  .ppc-days{
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
  }
  .ppc-grid{
    grid-template-columns: 1fr;
  }
  .ppc-noimg{
    min-height: 180px;
  }
  .ppc-card-title{
    font-size: 14px;
  }
}


/* Card de plato */
.ppc-card{
	border: 1px solid #e5ddd2 !important;
	background: #fff;
	padding: 0;
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	transition: all .16s ease;
	box-shadow: 0 3px 10px rgba(0,0,0,.03);
	position: relative;
	white-space: normal !important;
}

.ppc-card *{
	box-sizing: border-box;
}

.ppc-card:hover{
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(0,0,0,.08);
	border-color: #d7c9b9 !important;
}

.ppc-card.is-selected{
	border: 2px solid #E7524D !important;
	box-shadow: 0 12px 26px rgba(231,82,77,.16);
}

.ppc-card.is-selected::after{
	content: "✓";
	position: absolute;
	top: 8px;
	left: 8px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #E7524D;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(0,0,0,.12);
	z-index: 3;
}

/* Imagen siempre con mismo tamaño, centrada y sin deformar */
.ppc-card-img{
	position: relative;
	width: 100%;
	height: 240px;
	background: #f7f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	overflow: hidden;
}

.ppc-card-img img{
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	margin: 0 auto;
	background: #f7f7f7;
}

.ppc-noimg{
	width: 100%;
	height: 100%;
	display:flex;
	align-items:center;
	justify-content:center;
	color:#666;
	font-size: 13px;
	background:#f7f7f7;
}

/* Suplemento */
.ppc-badge {
    position: absolute;
    height: fit-content;
    top: 8px;
    right: -5px;
	background: rgba(255,255,255,.96);
	color: #1f1f1f;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	box-shadow: 0 3px 10px rgba(0,0,0,.08);
	z-index: 2;
}

/* Cuerpo de la card */
.ppc-card-body{
	padding: 12px 14px 14px;
	width: 100%;
	overflow: hidden;
}

/* Título */
.ppc-card-title{
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
	max-width: 100%;
	width: 100%;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	color: #1f1f1f;
	margin: 0 0 8px;
	text-align: center;
}

/* Ingredientes */
.ppc-ingredients{
	font-size: 12px;
	line-height: 1.35;
	color: #5f5a54;
	text-align: center;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* Etiquetas */
.ppc-tags{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0 0 8px;
}

.ppc-tag{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1;
	font-weight: 600;
	background: #F2E9DC;
	color: #5d5246;
}

/* Alérgenos */
.ppc-alergenos{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
	margin-top: 8px;
	font-size: 11px;
	line-height: 1.2;
}

.ppc-alergenos-label{
	width: 100%;
	text-align: center;
	color: #8a8177;
	font-weight: 600;
	font-size: 10.5px;
	margin-bottom: 1px;
}

.ppc-alergeno{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 7px;
	border-radius: 999px;
	background: #fff4f4;
	color: #9a1b1b;
	border: 1px solid #ffd6d6;
	font-weight: 600;
}

@media (max-width: 1200px){
	.ppc-grid{
		grid-template-columns: repeat(3, minmax(0,1fr));
	}
	.ppc-card-img{
		height: 230px;
	}
}

@media (max-width: 767px){
	.ppc-grid{
		grid-template-columns: repeat(2, minmax(0,1fr));
	}
	.ppc-card-img{
		height: 220px;
	}
}

@media (max-width: 520px){
	.ppc-grid{
		grid-template-columns: 1fr;
	}
	.ppc-card-img{
		height: 260px;
	}
}


/* Etiquetas sobre la imagen */
.ppc-image-tags{
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	justify-content: flex-start;
	pointer-events: none;
}

.ppc-image-tag{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 11px;
	line-height: 1;
	font-weight: 700;
	background: rgba(242, 233, 220, .96);
	color: #5d5246;
	box-shadow: 0 3px 8px rgba(0,0,0,.08);
}

/* Ingredientes con etiqueta */
.ppc-ingredients{
	font-size: 12px;
	line-height: 1.35;
	color: #5f5a54;
	text-align: center;
	margin: 0 0 10px;
}

.ppc-ingredients-label{
	font-weight: 700;
	color: #222;
	font-size: 11.5px;
	margin-bottom: 2px;
}

.ppc-ingredients-text{
	display: inline;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* Si quedaba estilo antiguo de tags debajo, lo anulamos */
.ppc-card-body .ppc-tags{
	display: none !important;
}


.ppc-alergenos{
	margin-top: 10px;
	text-align: center;
}

.ppc-alergenos-label{
	display: block;
	font-size: 11.5px;
	font-weight: 700;
	color: #222;
	margin-bottom: 6px;
}

.ppc-alergenos-icons{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 7px;
}

.ppc-alergeno-icon{
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: transparent;
}

.ppc-alergeno-icon img{
	width: 32px;
	height: 32px;
	display: block;
	object-fit: contain;
}

.ppc-card.is-sold-out{
	cursor: not-allowed;
	pointer-events: none;
}

.ppc-card.is-sold-out .ppc-card-img{
	position: relative;
}

.ppc-card.is-sold-out .ppc-card-img::after{
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,.64);
	z-index: 4;
}

.ppc-card.is-sold-out img{
	filter: grayscale(1);
	opacity: .55;
}

.ppc-card.is-sold-out .ppc-card-body{
	opacity: .55;
}

.ppc-soldout-badge{
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border-radius: 999px;
	background: #222;
	color: #fff;
	font-family: Poppins, sans-serif;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.ppc-card.is-sold-out .ppc-image-tags,
.ppc-card.is-sold-out .ppc-badge{
	opacity: .35;
}