/*
Theme Name:     Cafésmyway
Theme URI:      n/a
Template:       kadence
Author:         Pro Author
Author URI:     n/a
Description:    Child Theme Description
Version:        1.0
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

#review_form #commentform {
    display:flex;
    flex-direction:column;
}
#review_form #commentform .comment-form-consent {
    order: 1;
}
#review_form #commentform .form-submit {
    order: 2;
}

/* ==== ESTILOS MIGRADOS DESDE PERSONALIZADOR ==== */
.shop_attributes a {
    pointer-events: none !important;
    color: #3e4c59;
    text-decoration: none;
}

.woocommerce .kwt-title-wrap.kwt-title-_a3943d-d1:not(added-for-specificity):not(also-add-for-specificity) .entry-title {
    font-weight: bold !important;
}

.woocommerce table.shop_attributes td {
    color: #3e4c59 !important;
}

.is-style-rounded img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    width: 150px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* Consolidado en regla más abajo */
/* h2 {
    text-transform: none !important;
} */

/* ==== TIPOGRAFÍA GENERAL ==== */
h1, h2, h3, h4, h5, p, a {
    text-transform: none !important;
}

/* ==== ESTILOS ENVÍO GRATIS (carrito) ==== */
.free-shipping-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.free-shipping-notice .inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.free-shipping-notice a {
    color: #ffffff !important;
}

.free-shipping-notice a:hover {
    color: red !important;
}

/* ==== CONTINÚA TU CSS EXISTENTE... (sin cambios a partir de aquí) ==== */

/*
hide reset variations add to cart

.woocommerce div.product form.cart .reset_variations {
display:none !important;
	}
*/

/* price color */
.quantity.spinners-added input.minus,
.quantity.spinners-added input.plus {
    font-weight: bold;
    color: #9E0000 !important;
}

.woocommerce-Price-amount,
.price-red {
    font-size: 1.1em;
}

.kt-before-price-variation,
.kt-after-price-variation {
    color: #000000;
}

.simpleshopmessage {
    font-size: 0.7em;
    font-weight: bold;
    color: #000000 !important;
}

ins .woocommerce-Price-amount,
.woocommerce-variation-price,
.price-red {
    color: #9E0000 !important;
    font-weight: bold;
    font-size: 1.3em;
}

/*
.wp-block-kadence-wootemplate-blocks-price ,.woocommerce-Price-amount.amount {
		color:#9E0000 !important;
}
.kt-variation-label{
		color:#9E0000 !important;
}
*/

.wcpa_field_label {
    font-weight: bold !important;
    font-size: 18px !important;
}

.woocommerce.product-variation-style-vertical div.product form.cart .variations select {
    max-width: 200px;
}

.woocommerce ul.products li.product .entry-content-wrap {
    align-items: center;
}

.wc-block-grid__product-title,
.wc-block-grid__product-price.price,
.wc-block-grid__product-add-to-cart {
    text-align: center;
}

.woocommerce ul.products li.product .price {
    text-align: center !important;
}

.woocommerce .woocommerce-message,
.simpleshopmessage {
    text-align: center !important;
    padding: 0.1em 0.5em;
    border-radius: 5px;
    border-color: #676767 !important;
}

.kwsb-snackbar-notice {
    font-weight: bold;
    color: #9E0000 !important;
}

.woocommerce table.shop_table td {
    padding: 9px 5px !important;
}

.kt_color_sw_span {
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    border-color: #c6d0e9;
}

.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable {
    font-size: 14px;
}

.sidebar-inner-wrap {
    border-style: solid;
    border-width: 1px;
    border-radius: 5px;
    border-color: #c6d0e9;
}

.price-slider-min,
.price-slider-max {
    font-size: 14px !important;
}

.enhanced {
    margin-bottom: 2rem;
}

ul li {
    font-size: 1.2rem;
    font-weight: 400;
}

ul.close li:before {
    color: red;
    content: "\2717";
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'ionicons';
    margin-left: -36px;
    width: 36px;
}

ul.close li {
    line-height: 1;
    padding: 1px 0px 4px 4px;
    list-style-type: none !important;
}

ul.charlist li:before {
    color: green;
    content: "\2713";
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'ionicons';
    margin-left: -40px;
    width: 20px;
}

ul.charlist li {
    line-height: 1;
    padding: 1px 0px 4px 36px;
    list-style-type: none !important;
    margin-bottom: 5px;
    margin-left: -40px;
}

ul.checkmark li:before {
    color: green;
    content: "\2713";
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: 'ionicons';
    margin-left: -36px;
    width: 36px;
}

ul.checkmark li {
    line-height: 1;
    padding: 1px 0px 4px 4px;
    list-style-type: none !important;
}

.aff-button {
    column-gap: 0em;
}

.wcpa_form_outer {
    margin: 0em 0 0em 0 !important;
}

.revi_rating_container {
    display: block;
    margin: 2px 0;
}

.product-tittle {
    white-space: nowrap;
}

.page-id-810 .entry-hero,
.page-id-1289 .entry-hero {
    display: none;
}

.post-thumbnail {
    border-radius: 10px;
}

.kadence-breadcrumbs {
    font-size: 100%;
    margin-left: -80px !important;
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    border-color: #c6d0e9;
    padding: 1px 2px;
}

.wp-block-post-author .avatar {
    border-radius: 50% !important;
}

.wp-block-post-author__byline {
    font-size: 0.75em;
}

.kb-form .kadence-blocks-form-field a.kb-accept-link {
    color: white;
    font-size: 0.65em;
}

.woocommerce ul.products li.product h3 {
    text-align: center !important;
}

.float-label {
    color: black !important;
}

.entry-meta-divider-customicon {
    border-style: solid;
}

@media (max-width: 800px) {
    .title-align-center .entry-meta {
        justify-content: left;
    }
    .kt-woo-badge-type-image-custom img,
    .kt-woo-badge-type-premade img {
        max-width: 60% !important;
        height: auto;
        width: auto;
    }
}

.fp_apply_reward {
    padding: 10px;
    border-style: dashed;
    border-width: 2px;
}

.woocommerce-info {
    margin-bottom: 30px !important;
}

.woocommerce-error {
    color: white !important;
    background: black !important;
}

.woocommerce ul.products li.product .onsale {
    padding: 2px 7px 2px 10px;
    border-radius: 5%;
    top: 60px !important;
}

.woocommerce span.onsale {
    position: relative;
    top: 6.5rem;
}

.page-hero-section .hero-section-overlay {
    background: black;
}

.woocommerce-message {
    color: white !important;
    background: black !important;
    border-radius: 10px;
    border-color: black !important;
}

.woocommerce-message a {
    color: #ffffff !important;
}

.woocommerce-message a:hover {
    color: red !important;
}

#place_order {
    color: #ffffff !important;
    background: black !important;
}

/* Cupon pagina de pago */
.coupon_inner_checkout {
    color: #000000 !important;
    background-color: #f9f9f9;
    margin-bottom: 30px !important;
    border-style: solid;
    border-width: 2px !important;
    border-radius: 10px;
    padding: 5px;
    display: inline-block;
    width: auto;
}

/* Caja info */
.woocommerce .woocommerce-info {
    border-style: solid;
    border-width: 3px;
    border-radius: 10px !important;
    border-color: black !important;
    display: inline-block;
    width: auto;
}

.dl_imagen_producto_pagina_gracias {
    width: 50px;
    height: 50px;
    display: inline-block;
    vertical-align: middle;
}

.woocommerce .quantity.spinners-added .qty {
	width: 1em !important;
	}
	
.woocommerce del,
.woocommerce del .woocommerce-Price-amount {
  color: #595959 !important; /* o #555555 para más contraste */
  opacity: 1 !important;
  text-decoration: line-through;
}

/* Estilo normal del botón */
.woocommerce .woocommerce-mini-cart__buttons .button.checkout.wc-forward {
    background-color: var(--global-palette1);
    color: #000000;
    border: 2px solid var(--global-palette1);
    border-radius: 5px;
}

/* Estilo al pasar el ratón por encima */
.woocommerce .woocommerce-mini-cart__buttons .button.checkout.wc-forward:hover {
    background-color: #000000;
    color: var(--global-palette1);
    border: 2px solid var(--global-palette1);
}

/* Evita el salto de tamaño de la imagen de producto */
.kadence-product-gallery-main img,
.kb-splide .splide__slide img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
}

/* SELECT de WCPA solo tan ancho como su texto, con la flecha al extremo derecho */
.wcpa_wrap .wcpa_field_wrap select{
  width: auto;                     /* ya lo tenías */
  padding-right: 3.2rem;           /* deja más “aire” para la flecha */
  background-origin: padding-box;  /* coloca la flecha en la zona de padding */
  background-position: right .8rem center;  /* ajusta un poco más a la derecha */
  background-repeat: no-repeat;
  background-size: 1.5rem auto;      /* tamaño coherente con el icono */
}

/* Temporizador preparaciones*/
.cafe-recipe-container select {
    padding: 5px 45px;
}

/* Rank Math TOC */
.wp-block-rank-math-toc-block {
  position: relative;
  border: 1px solid #e4c387;
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  width: auto;
  max-width: 100%;
  display: inline-block;
}

.wp-block-rank-math-toc-block h2 {
  background: var(--global-palette1);
  color: #000;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 18px !important;
  font-weight: 600 !important;
  position: relative;
  margin-bottom: 0;
}

.wp-block-rank-math-toc-block h2::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 12px;
  border-color: transparent transparent transparent #000;
  margin-right: 8px;
}

.wp-block-rank-math-toc-block nav {
  padding: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, overflow 0.3s ease;
}
.wp-block-rank-math-toc-block nav {
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    transition: max-height 0.3s ease;
}

.wp-block-rank-math-toc-block.toc-abierto nav {
    max-height: 1000px;
    overflow: visible;
    padding: 10px;
}
/* Elimina la sombra de los productos mostrados con shortcodes */
.woocommerce .products .product,
.entry.loop-entry,
.entry {
    box-shadow: none !important;
}

/* ==== MENSAJES EN CARRITO ==== */

/* Aviso cuando aún falta cantidad */
.cafe-incognito-aviso {
    background: #fffbe6;
    border-left: 4px solid #ffc107;
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 0.95em;
}

/* Aviso cuando se ha desbloqueado */
.cafe-incognito-desbloqueado {
    background: #000;
    color: #fff;
    font-weight: 600;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    text-align: center;
    font-size: 1.05em;
}

.cafe-incognito-desbloqueado a.button {
    display: inline-block;
    margin-top: 12px;
    background: #e4c387;
    color: #000;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
}

.cafe-incognito-desbloqueado a.button:hover {
    background: #d2b36c;
}

.woocommerce .woocommerce-message .button {
    float: none;
    margin-top: 2em;
    margin-bottom: 2em;
}

/* Corregir solapamiento del aviso (PC) */
.cafe-incognito-desbloqueado {
    position: relative;
    z-index: 1000;
    margin: 20px auto 10px auto;
    max-width: 500px;
}
@media screen and (max-width: 768px) {
  .popup-incognito-content {
    text-align: center;
  }

  .popup-incognito-content h3 {
    font-size: 1.2em;
    margin-bottom: 0.8em;
  }

  .popup-incognito-content p {
    margin: 0.5em 0;
  }

  .popup-incognito-content a.button {
    display: block;
    margin: 20px auto 0 auto;
    font-size: 1em;
  }
}
/* ==== Fix mapa Leaflet superposición sobre menú ==== */
#mapa-tostadores,
#mapa-tostadores .leaflet-container,
#mapa-tostadores .leaflet-pane,
#mapa-tostadores .leaflet-top,
#mapa-tostadores .leaflet-bottom {
  z-index: 1 !important;
}
#tabla-tostadores {
  position: relative;
  overflow-x: auto;
}

#tabla-tostadores::after {
  content: '⇠ Desliza para ver más ⇢';
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 12px;
  color: #6b7280;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, #fff 90%);
  padding-left: 10px;
  pointer-events: none;
}

@media (min-width: 768px) {
  #tabla-tostadores::after {
    content: '';
  }
}
#mapa-cafeterias,
#mapa-cafeterias .leaflet-container,
#mapa-cafeterias .leaflet-pane,
#mapa-cafeterias .leaflet-top,
#mapa-cafeterias .leaflet-bottom {
  z-index: 1 !important;
}
#filtro-busqueda input#searchCafe {
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.2s ease-in-out;
}
#filtro-busqueda input#searchCafe:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245,158,11,0.3);
}
.leaflet-cluster, .leaflet-marker-icon, .leaflet-marker-shadow {
  z-index: 1000 !important;
}
@media (max-width: 767px) {
 /* Iconos arriba y texto centrado (Kadence Icon List) */
.kt-svg-icon-list .kt-svg-icon-list-item-wrap.kt-svg-icon-list-style-stacked{
  display: flex;
  flex-direction: column !important;
  align-items: center !important;
}
.kt-svg-icon-list .kt-svg-icon-list-item-wrap.kt-svg-icon-list-style-stacked .kt-svg-icon-wrap{
  margin-right: 0 !important;
  margin-bottom: 8px !important;
}
}
#revi-loading {
  background-color: #fff6d8;
  color: #333;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 20px;
}