/*! favorites */
.fave-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: block;
  /* if you change the svg color, use html named colors */
  background-image: url("data:image/svg+xml,<svg width='20px' height='20px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M11.9694 22C12.5756 22 12.9181 21.4709 13.8945 20.435C15.115 19.1402 16.2918 17.9336 17.1462 17.0272C19.6691 14.3511 20.661 13.3356 21.3649 12.5433C23.2357 10.4378 23.4784 7.51229 22.2097 5.29142C20.6101 2.49159 18.2247 2 16.9421 2C15.6594 2 14.7421 2.49159 13.1221 3.75703L11.9989 4.8084L10.9063 3.75703C9.1489 2.25488 7.87646 2 7.05939 2C6.37842 2 3.5339 2.00043 1.70086 5.29142C0.363371 7.6927 1.0623 10.6507 2.76628 12.5433C3.07139 12.8822 4.32884 14.1998 6.51094 16.572C7.3895 17.5272 8.63263 18.8407 9.54781 19.8382C10.0663 20.4034 11.3631 22 11.9694 22Z' stroke='LightGray' stroke-width='1.5'/></svg>");
}

.fave-icon:hover,
.fave-icon.active {
  background-image: url("data:image/svg+xml,<svg width='20px' height='20px' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M11.9694 22C12.5756 22 12.9181 21.4709 13.8945 20.435C15.115 19.1402 16.2918 17.9336 17.1462 17.0272C19.6691 14.3511 20.661 13.3356 21.3649 12.5433C23.2357 10.4378 23.4784 7.51229 22.2097 5.29142C20.6101 2.49159 18.2247 2 16.9421 2C15.6594 2 14.7421 2.49159 13.1221 3.75703L11.9989 4.8084L10.9063 3.75703C9.1489 2.25488 7.87646 2 7.05939 2C6.37842 2 3.5339 2.00043 1.70086 5.29142C0.363371 7.6927 1.0623 10.6507 2.76628 12.5433C3.07139 12.8822 4.32884 14.1998 6.51094 16.572C7.3895 17.5272 8.63263 18.8407 9.54781 19.8382C10.0663 20.4034 11.3631 22 11.9694 22Z' stroke='Crimson' fill='Crimson' stroke-width='1.5'/></svg>");
}


a.fave-icon {
  background-color: white;
  padding: 15px;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 100%;
}

.share-and-like a.fave-icon {
  position: relative;
  width: 35px;
  height: 35px;
  top: 0;
}


/*! livesearch */

#live-search-form-wrapper #search-input:focus-visible {
  outline: 2px solid #222;
}

.livesearch-autocomplete {
  position: absolute;
  color: #999;
  width: 100%
}

.livesearch-suggestions {
  display: none;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  margin: 1rem 0 0 0;
  max-height: 60dvh;
  position: absolute;
  overflow: scroll;
  top: 100%;
  width: 100%;
  margin-top: 0.5rem;
  overflow-x: hidden;
}


.livesearch-result {
  color: #000;
  font-size: 13px;
  padding: 0 11px;
  border-bottom: 1px solid #eee;
  white-space: nowrap
}

.livesearch-result .show-results-page {
  padding: 10px 0;
  display: block
}

.livesearch-result:last-child {
  border: none
}

.livesearch-result:hover {
  border-color: #eee;
  background: #f3f0ef;
  color: #000;
  cursor: pointer
}

.livesearch-result.selected {
  background: #333;
  color: #fff
}

#nav .livesearch-result a:link {
  color: #111;
  text-decoration: none
}

#nav .livesearch-result .livesearch-item-add:link {
  color: #fff
}

#nav .livesearch-result:hover .livesearch-item-title,
#nav .livesearch-result:hover .show-results-page {
  color: #000
}

.livesearch-result img,
.menu-item-image img {
  max-width: 42px;
  float: left;
  margin: 10px 10px 10px 0
}

.livesearch-item-info,
.menu-item-info {
  display: block;
  padding: 9px 0;
  line-height: 22px
}

.livesearch-item-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis
}

.livesearch-item-title b,
.livesearch-item-desc b {
  background-color: transparent;
  color: #000
}

.livesearch-item-price {
  margin-right: 8px;
  color: #111;
  font-weight: 500
}

.livesearch-item-sku {
  background: #eee;
  padding: 2px 4px;
  font-family: monospace;
  font-size: 11px;
  border-radius: 3px;
  color: #666
}

.livesearch-item-desc {
  color: #999
}

.images-true .livesearch-item-desc {
  display: block
}

.livesearch-item-add,
.menu-item-add {
  float: right;
  flex: 1;
    background-color: var(--button-bg, #333);
    color: var(--button-text, #fff);
    border: none;
    border-radius: var(--button-border-radius, 24px);
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    height: 28px;
    line-height: 28px;
    margin: 6px 2px 0 10px;
    padding: 0 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.images-true .livesearch-item-add,
.images-true .menu-item-add {
  height: 32px;
  line-height: 32px;
  margin: 15px 2px 0 10px;
  padding: 0 14px
}

.livesearch-item-add:hover,
.menu-item-add:hover {
  background-color: var(--button-bg, #000000);
  border-color: var(--button-bg, #000000);
  color: #fff
}


/*! promo widget */

.widget-promotions-container {
  width: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-block: calc(var(--spacing) * 4);
}

.widget-promotions-container h3 {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5rem;
  margin: 0;
  margin-bottom: 0.75rem;
  color: #1e293b;
}

/* Contenedor de promociones */
.widget-promotions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Tarjeta de promoción */
.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 1rem;
  padding-top: 1.75rem;
  background: rgb(249 250 251); /* bg-gray-50 */
  border-radius: 0.5rem;
  border: 1px solid rgb(229 231 235); /* border-gray-200 */
  transition: all 0.2s ease;
}

.promo-card:hover {
  border-color: var(--button-bg, #000000);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Estado de promoción alcanzada */
.promo-card.promotion-reached {
  background: color-mix(in srgb, var(--button-bg, #000000) 5%, white);
  border-color: color-mix(in srgb, var(--button-bg, #000000) 30%, white);
}

/* Badge de descuento */
.promo-discount {
  position: absolute;
  top: -0.625rem;
  left: 1rem;
  padding: 0.375rem 1rem;
  background: var(--button-bg, #000000);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.15);
  letter-spacing: -0.025em;
  z-index: 1;
}

/* Contenedor de descripción */
.promo-desc-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.25rem;
}

.promo-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.promo-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(55 65 81); /* text-gray-700 */
}

.promo-conditions {
  margin: 0;
  padding-left: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(75 85 99); /* text-gray-600 */
  padding-bottom: 0;
}

/* Enlaces */
.promo-desc a,
.promo-conditions a {
  color: var(--button-bg, #000000);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.promo-desc a:hover,
.promo-conditions a:hover {
  color: color-mix(in srgb, var(--button-bg, #000000) 80%, black);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .promo-card {
    padding: 0.875rem;
    padding-top: 1.5rem;
  }

  .promo-discount {
    font-size: 0.8125rem;
    padding: 0.25rem 0.75rem;
  }

  .promo-name {
    font-size: 0.875rem;
  }

  .promo-desc,
  .promo-conditions {
    font-size: 0.8125rem;
  }
}


/* Modal de cotización */

.popup-quote-flow-container {
  padding: 20px;
  font-family: sans-serif;
  text-align: center;
  color: #333;
}

.popup-quote-flow-container h2 {
  margin-bottom: 30px;
  font-size: 1.5rem;
  font-weight: 700;
}

.popup-quote-flow-container > div {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}

.popup-quote-flow-container .left,
.popup-quote-flow-container .right {
  flex: 1;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #f9f9f9;
}

.popup-quote-flow-container p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 60px; 
}

/* Botones */
.popup-quote-flow-container .bootic_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: inherit;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    height: 38px;
    line-height: 38px;
    padding: 0 20px;
    border: 1px solid #333;
    border-radius: var(--button-border-radius, 24px);
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}


.bootic_button[data-action="buy"] {
  background-color: var(--button-bg, #0f172a);
  color: var(--button-text, #fff);
  border: 1px solid var(--button-bg, #0f172a);
}

.bootic_button[data-action="quote"] {
  background-color: var(--button-text, #fff);
  color: var(--button-bg, #0f172a);
  border: 1px solid var(--button-bg, #0f172a);
}

.bootic_button:hover {
  filter: brightness(1.1);
}

@media (max-width: 600px) {
  .popup-quote-flow-container > div {
    flex-direction: column;
  }
}
