/* TonyPotter · Black Friday 2026 · capa visual */
:root{
  --tpbf-green:#4F8C86;
  --tpbf-green-dark:#2f6656;
  --tpbf-beige:#f7f1e8;
  --tpbf-beige-strong:#efe3d4;
  --tpbf-terracotta:#c36046;
  --tpbf-terracotta-soft:#fbede5;
  --tpbf-text:#214238;
  --tpbf-muted:#7a857f;
  --tpbf-line:#dccdbf;
}

/* ========== PRECIOS PROMOCIONALES ========== */
.tpbf-price-display{
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  margin-top:6px;
  line-height:1.25;
}
.tpbf-price-row{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:10px 14px;
}
.tpbf-normal{
  color:var(--tpbf-muted);
  font-size:.95em;
  text-decoration:line-through;
  text-decoration-thickness:1.5px;
  text-decoration-color:rgba(47,102,86,.45);
}
.tpbf-discount-price{
  color:var(--tpbf-green-dark);
  font-size:1.18em;
  font-weight:800;
}
.tpbf-price-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  background:var(--tpbf-terracotta-soft);
  color:var(--tpbf-terracotta);
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.tpbf-price-caption{
  display:block;
  max-width:32rem;
  color:var(--tpbf-green-dark);
  font-size:12px;
  font-weight:600;
  line-height:1.45;
}
.tpbf-loop-badge{
  display:inline-flex;
  align-items:center;
  margin:8px 0 2px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--tpbf-terracotta-soft);
  color:var(--tpbf-terracotta);
  font-weight:800;
  font-size:11px;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.tpbf-single-notice{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:14px 16px;
  margin:14px 0 20px;
  border:1px solid #e8cbbb;
  border-radius:16px;
  background:linear-gradient(180deg,#fcf4ed 0%,#fbf7f1 100%);
  font-size:13px;
  color:var(--tpbf-text);
  box-shadow:0 6px 18px rgba(97,75,48,.05);
}
.tpbf-single-notice strong{
  color:var(--tpbf-terracotta);
  font-size:13px;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.tpbf-price-display-gift{
  gap:10px;
}
.tpbf-price-display-gift .tpbf-discount-price{
  font-size:1.3em;
}
.woocommerce ul.products li.product .price .tpbf-price-display,
.woocommerce-page ul.products li.product .price .tpbf-price-display{
  margin-top:0;
}
.single-product div.product p.price .tpbf-price-display,
.single-product div.product span.price .tpbf-price-display{
  margin:4px 0 6px;
}
.single-product div.product p.price .tpbf-price-row,
.single-product div.product span.price .tpbf-price-row{
  gap:12px 18px;
}

/* Ajuste del precio nativo de Woo/gift-cards cuando se renderiza fuera del wrapper custom */
.woocommerce ul.products li.product .price del,
.single-product .summary .price del{
  opacity:1;
  color:var(--tpbf-muted);
  margin-right:10px;
}
.woocommerce ul.products li.product .price ins,
.single-product .summary .price ins{
  text-decoration:none;
  color:var(--tpbf-green-dark);
  font-weight:800;
  background:transparent;
}

/* ========== BOOKLY / PINTA TU PIEZA ========== */
.tpbf-original{font-size:.77em;font-weight:500;color:#89928b;text-decoration:line-through;margin-right:10px}
.tpbf-new{font-size:1em;font-weight:900;color:#2a6550}
.tpbf-bookly-label{display:block;color:#b05240;font-size:11px;font-weight:800;margin-top:3px;white-space:nowrap}
.tp4-price-top:has(.tpbf-bookly-label),.tp4-total-line:has(.tpbf-bookly-label){flex-wrap:wrap}
.tp4-total-line .tpbf-bookly-label{width:100%;text-align:right}
.tpbf-step1-active .tp4-price-value{display:none!important}
.tpbf-step1-price{display:block;color:#2a6550;font-size:19px;font-weight:800;text-align:right}
.tpbf-step1-active .tpbf-bookly-label{flex-basis:100%;text-align:right}

/* ========== CARRITO ========== */
.tpbf-cart-notice{
  display:flex;align-items:flex-start;gap:12px;margin:12px 0 22px;padding:14px 16px;
  border:1px solid #e6d3c3;border-left:3px solid #bc624d;border-radius:12px;
  background:#faf5ee;color:#315747;font-family:inherit;line-height:1.55
}
.tpbf-cart-notice-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;border-radius:9px;background:#f2dfd2;color:#a94e3d;font-size:15px;font-weight:800}
.tpbf-cart-notice-text{display:flex;flex-direction:column;gap:3px;font-size:13px}
.tpbf-cart-notice-text>strong{color:#a95040;font-size:13px}
.tpbf-cart-notice-text span strong{color:#295c4d}
.tpbf-cart-saving-row th,
.tpbf-cart-saving-row td{
  border-top:1px solid rgba(79,140,134,.14);
  padding-top:14px;
  padding-bottom:14px;
}
.tpbf-cart-saving-row th{
  color:var(--tpbf-terracotta);
  font-weight:800;
}
.tpbf-cart-saving-row td{
  color:var(--tpbf-green-dark);
  font-weight:800;
}
.tpbf-cart-saving-row td small{
  display:block;
  margin-top:4px;
  color:var(--tpbf-muted);
  font-weight:600;
  font-size:12px;
}

/* ========== FORMULARIO TARJETAS REGALO ========== */
.single-product .cart .mwb_wgm_price_content{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin:18px 0 20px;
  padding:16px 18px;
  border:1px solid var(--tpbf-line);
  border-radius:18px;
  background:linear-gradient(180deg,#faf7f1 0%,#f4ede3 100%);
  box-shadow:0 8px 24px rgba(70,56,36,.05);
}
.single-product .cart .mwb_wgm_price_content b{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:var(--tpbf-text);
  font-size:15px;
  line-height:1.35;
}
.single-product .cart .mwb_wgm_price_content b:first-child{
  color:var(--tpbf-terracotta);
}
.single-product .cart .mwb_wgm_price_content b .woocommerce-Price-amount,
.single-product .cart .mwb_wgm_price_content b .amount{
  color:var(--tpbf-green-dark);
  font-size:1.15em;
  font-weight:800;
}
.single-product .cart .mwb_wgm_section,
.single-product .cart .mwb_wgm_msg_field,
.single-product .cart .mwb_wgm_delivery_method{
  margin:0 0 18px;
}
.single-product .cart .mwb_wgm_section label,
.single-product .cart .mwb_gm_method,
.single-product .cart .mwb_wgm_delivery_method > .mwb_wgm_method{
  display:block;
  margin-bottom:8px;
  color:var(--tpbf-green-dark);
  font-size:14px;
  font-weight:700;
}
.single-product .cart .mwb_wgm_section input[type="text"],
.single-product .cart .mwb_wgm_section input[type="number"],
.single-product .cart .mwb_wgm_section select,
.single-product .cart .mwb_wgm_delivery_method input[type="text"],
.single-product .cart textarea.mwb_wgm_message{
  width:100%;
  min-height:48px;
  border:1px solid #d8dfd7;
  border-radius:12px;
  background:#fff;
  box-shadow:none;
  padding:13px 16px;
  color:var(--tpbf-text);
  transition:border-color .2s ease, box-shadow .2s ease;
}
.single-product .cart textarea.mwb_wgm_message{
  min-height:120px;
  resize:vertical;
}
.single-product .cart .mwb_wgm_section input:focus,
.single-product .cart .mwb_wgm_delivery_method input:focus,
.single-product .cart textarea.mwb_wgm_message:focus,
.single-product .cart .mwb_wgm_section select:focus{
  border-color:var(--tpbf-green);
  box-shadow:0 0 0 3px rgba(79,140,134,.14);
  outline:none;
}
.single-product .cart .mwb_wgm_delivery_method{
  padding:14px 16px;
  border:1px solid #e7ddd0;
  border-radius:16px;
  background:#fff;
}
.single-product .cart .mwb_wgm_delivery_method + .mwb_wgm_delivery_method{
  margin-top:12px;
}
.single-product .cart .mwb_wgm_send_giftcard{
  accent-color:var(--tpbf-green);
  margin-right:8px;
}
.single-product .cart .mwb_wgm_msg_info,
.single-product .cart .mwb_wgm_info,
.single-product .cart #mwb_box_char{
  color:var(--tpbf-muted);
}
.single-product .cart .mwb_wgm_msg_field{
  padding-bottom:6px;
  border-bottom:1px dashed #e2d6c8;
}
.single-product .cart .mwb_wgm_msg_field > label{
  display:block;
  margin-bottom:8px;
  color:var(--tpbf-green-dark);
  font-size:14px;
  font-weight:700;
}
.single-product .cart .mwb_wgm_msg_field{
  color:var(--tpbf-muted);
  font-size:13px;
}

/* Alert / aviso del formulario */
.single-product .cart .woocommerce-info,
.single-product .cart .woocommerce-message,
.single-product .cart .mwb_wgm_notice{
  border-radius:14px;
}

@media(max-width:767px){
  .tpbf-price-row{gap:8px 12px}
  .tpbf-discount-price{font-size:1.12em}
  .tpbf-price-caption{font-size:11.5px}
  .single-product .cart .mwb_wgm_price_content b{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media(max-width:600px){
  .tpbf-cart-notice{padding:12px;gap:9px}
  .tpbf-cart-notice-text{font-size:12px}
}

/* v0.5.2: eliminar solo la etiqueta adicional que aparece arriba del titulo */
.woocommerce ul.products li.product .tpbf-loop-badge,
.woocommerce-page ul.products li.product .tpbf-loop-badge,
.elementor-widget-woocommerce-products .tpbf-loop-badge,
.elementor-widget-wc-archive-products .tpbf-loop-badge,
ul.products .tpbf-loop-badge{display:none!important}

/* v0.5.4: SOLO precio en la ficha individual de producto, nunca el catálogo.
   Monográficos sobre cabecera verde corporativa.
   Recuperamos el diseño original integrado en la cabecera, SIN tarjeta. */
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard{
  display:inline-flex!important;
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
  max-width:100%;
  width:auto;
  margin:4px 0 6px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#E5D9CE!important;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-price-row{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 16px;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-normal,
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-normal *,
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-normal .amount{
  color:#D6C8BA!important;
  opacity:.86!important;
  font-size:15px!important;
  font-weight:500!important;
  text-decoration:line-through!important;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-discount-price,
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-discount-price *,
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-discount-price .amount{
  color:#FFF4E8!important;
  opacity:1!important;
  font-size:24px!important;
  font-weight:800!important;
  text-decoration:none!important;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-price-pill{
  display:inline-flex;
  padding:4px 9px;
  border:1px solid rgba(229,217,206,.48)!important;
  border-radius:999px;
  color:#E5D9CE!important;
  background:rgba(229,217,206,.12)!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.35!important;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-price-caption{
  color:#E5D9CE!important;
  opacity:.95!important;
  font-size:12px!important;
  line-height:1.5!important;
  font-weight:600!important;
}
@media(max-width:767px){
  body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-discount-price,
  body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-standard .tpbf-discount-price *{font-size:21px!important}
}


/* v0.5.5: aplicar el estilo beige de cabecera también a las tarjetas regalo,
   pero solo en la ficha individual dentro de la cabecera/resumen del producto. */
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift{
  color:#E5D9CE !important;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-price-row{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:8px 17px;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-normal,
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-normal *,
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-normal .amount{
  color:#D6C8BA !important;
  opacity:1 !important;
  font-size:14px !important;
  font-weight:500 !important;
  text-decoration:line-through !important;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-discount-price,
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-discount-price *,
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-discount-price .amount{
  color:#EDE2D6 !important;
  font-size:24px !important;
  font-weight:800 !important;
  opacity:1 !important;
  text-decoration:none !important;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-price-pill{
  color:#A8503E !important;
  background:#FFF4E8 !important;
  border:0 !important;
  font-size:11px !important;
  line-height:1.35 !important;
}
body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-price-caption{
  color:#E5D9CE !important;
  opacity:1 !important;
  font-size:12px !important;
  line-height:1.5 !important;
  font-weight:600 !important;
}
@media (max-width:767px){
  body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-discount-price,
  body.single-product :is(.summary .price, .elementor-widget-woocommerce-product-price) .tpbf-price-display-gift .tpbf-discount-price *{font-size:21px!important}
}
