.quote-cart-modal [hidden],
.quote-cart-launcher [hidden] {
  display: none !important;
}

.aqua-cookie-banner {
  position: fixed;
  z-index: 9998;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  background: #1a1510;
  color: #f5efe4;
  font-size: .86rem;
  line-height: 1.5;
  box-shadow: 0 -4px 18px rgb(0 0 0 / 12%);
  transition: transform .25s ease;
}

.aqua-cookie-banner.hidden {
  transform: translateY(110%);
  pointer-events: none;
}

.aqua-cookie-banner p {
  flex: 1 1 16rem;
  margin: 0;
}

.aqua-cookie-banner .cookie-btns {
  display: flex;
  gap: .6rem;
}

.aqua-cookie-banner button {
  min-height: 42px;
  padding: .5rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.aqua-cookie-banner .cookie-accept {
  background: #1a7a62;
  color: #fff;
}

.aqua-cookie-banner .cookie-reject {
  border-color: rgb(245 239 228 / 35%);
  background: transparent;
  color: #f5efe4;
}

.aqua-cookie-banner button:focus-visible,
.bottom-social #cookie-prefs:focus-visible {
  outline: 3px solid #58d6b2;
  outline-offset: 3px;
}

.quote-add-button,
.quote-service-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid #1a7a62;
  border-radius: 7px;
  background: #fff;
  color: #1a7a62;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.quote-add-button:hover,
.quote-service-add:hover {
  background: #1a7a62;
  color: #fff;
}

.producto-actions .quote-add-button {
  width: 100%;
  min-height: 44px;
  padding: .65rem 1rem;
  border-color: #17644f;
  border-radius: 9px;
  background: #17644f;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, transform .15s ease;
}

.producto-actions .quote-add-button:hover {
  border-color: #104d3c;
  background: #104d3c;
  transform: translateY(-1px);
}

.producto-actions .quote-add-button::before {
  content: "+";
  display: inline-grid;
  width: 1.15rem;
  height: 1.15rem;
  margin-right: .45rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 20%);
  font-size: 1rem;
  line-height: 1;
}

.producto-body .producto-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid #e8e5df;
}

.producto-body .producto-actions .producto-link {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .86rem;
  font-weight: 500;
  color: #1a7a62;
  text-decoration: none;
}

.producto-body .producto-actions .producto-link span {
  font-size: 1.05rem;
  transition: transform .18s ease;
}

.producto-body .producto-actions .producto-link:hover span {
  transform: translateX(3px);
}

.quote-cart-launcher {
  position: fixed;
  z-index: 999;
  bottom: 1rem;
  left: max(1rem, env(safe-area-inset-left));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  max-width: calc(100vw - 112px);
  padding: .75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #163e36;
  box-shadow: 0 4px 18px rgb(0 0 0 / 22%);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.quote-cart-launcher:hover {
  background: #1a7a62;
}

.quote-cart-launcher:focus-visible,
.quote-cart-modal button:focus-visible,
.quote-cart-modal input:focus-visible,
.quote-cart-modal textarea:focus-visible,
.quote-add-button:focus-visible {
  outline: 3px solid #c8973a;
  outline-offset: 3px;
}

.quote-cart-count {
  display: inline-grid;
  min-width: 1.5rem;
  min-height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #163e36;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.quote-cart-status,
.quote-cart-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.quote-cart-modal {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100vw, 28rem);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #1a1a18;
  font-family: inherit;
  transform: translateX(105%);
  transition: transform .28s ease;
}

.quote-cart-modal[open] {
  transform: translateX(0);
}

.quote-cart-modal::backdrop {
  background: rgb(12 24 21 / 18%);
  backdrop-filter: blur(1px);
}

.quote-cart-panel {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgb(0 0 0 / 15%);
}

.quote-cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid #e8e5df;
}

.quote-cart-header h2 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  line-height: 1.15;
}

.quote-cart-header p {
  margin: .4rem 0 0;
  color: #5c5b55;
  font-size: .9rem;
  line-height: 1.45;
}

.quote-cart-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #d8d5cf;
  border-radius: 50%;
  background: #fff;
  color: #1a1a18;
  font: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.quote-cart-content {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.35rem max(1.25rem, env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.quote-cart-items {
  display: grid;
  gap: .7rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.quote-cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  grid-template-areas:
    "image title actions"
    "image title remove";
  align-items: center;
  gap: .55rem .8rem;
  padding: .9rem;
  border: 1px solid #e5e2dc;
  border-radius: 10px;
  background: #fbfaf8;
}

.quote-cart-item-image,
.quote-cart-service-visual {
  grid-area: image;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e5e2dc;
  border-radius: 8px;
  background: #fff;
}

.quote-cart-item-image {
  object-fit: contain;
}

.quote-cart-service-visual {
  background: #e8f5f0;
  color: #17644f;
  font-size: 2rem;
}

.quote-cart-item-title {
  grid-area: title;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.quote-cart-item-title > span {
  font-weight: 400;
}

.quote-cart-item-kind {
  display: block;
  margin-top: .15rem;
  color: #69675f;
  font-size: .78rem;
  font-weight: 400;
}

.quote-cart-item-actions {
  grid-area: actions;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.quote-cart-quantity-button,
.quote-cart-remove {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #d8d5cf;
  border-radius: 8px;
  background: #fff;
  color: #163e36;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.quote-cart-quantity {
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.quote-cart-remove {
  grid-area: remove;
  justify-self: end;
  min-height: 36px;
  padding: .35rem .7rem;
  color: #8a332d;
  font-size: .82rem;
}

.quote-cart-empty {
  padding: .4rem 0 1rem;
}

.quote-cart-empty h3 {
  margin: 0 0 .4rem;
  font-size: 1.15rem;
}

.quote-cart-empty p {
  margin: 0 0 .9rem;
  color: #5c5b55;
  line-height: 1.5;
}

.quote-cart-empty a {
  color: #17644f;
  font-weight: 600;
  text-underline-offset: .2em;
}

.quote-cart-fields {
  display: grid;
  gap: .85rem;
}

.quote-cart-field {
  display: grid;
  gap: .35rem;
}

.quote-cart-field label {
  font-size: .88rem;
  font-weight: 600;
}

.quote-cart-field input,
.quote-cart-field textarea {
  width: 100%;
  min-height: 46px;
  padding: .7rem .8rem;
  border: 1px solid #c9c6bf;
  border-radius: 8px;
  background: #fff;
  color: #1a1a18;
  font: inherit;
  font-size: 1rem;
}

.quote-cart-field textarea {
  min-height: 92px;
  resize: vertical;
}

.quote-cart-field-hint,
.quote-cart-disclaimer {
  margin: 0;
  color: #5c5b55;
  font-size: .8rem;
  line-height: 1.45;
}

.quote-cart-disclaimer {
  padding: .75rem;
  border-radius: 8px;
  background: #f4f6f2;
}

.quote-cart-submit,
.quote-cart-continue {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.quote-cart-submit {
  background: #1a7a62;
  color: #fff;
}

.quote-cart-submit:hover {
  background: #145c4a;
}

.quote-cart-continue {
  width: 100%;
  margin-top: .75rem;
  border: 1px solid #d8d5cf;
  background: #fff;
  color: #163e36;
}

.quote-service-add {
  background: transparent;
  color: #1a7a62;
}

.quote-product-actions {
  display: grid;
  gap: .65rem;
  margin-top: .9rem;
}

.quote-product-actions > * {
  width: 100%;
}

.quote-product-actions .quote-add-button {
  border-color: #17644f;
  border-radius: 9px;
  background: #17644f;
  color: #fff;
  font-size: .85rem;
  letter-spacing: .02em;
  text-transform: none;
}

.quote-product-actions .quote-add-button:hover {
  border-color: #104d3c;
  background: #104d3c;
  color: #fff;
}

.quote-product-actions .cta-btn {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid #c8e9d2;
  border-radius: 9px;
  background: #f0faf3;
  color: #167342;
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}

.quote-product-actions .cta-btn:hover {
  border-color: #a7dcb8;
  background: #e4f6e9;
  color: #125c35;
  opacity: 1;
}

@media (max-width: 520px) {
  .quote-cart-modal {
    width: 100%;
    max-width: 100%;
    height: min(80dvh, 50rem);
    inset: auto 0 0;
    border-radius: 18px 18px 0 0;
    transform: translateY(105%);
  }

  .quote-cart-modal[open] {
    transform: translateY(0);
  }

  .quote-cart-panel {
    border-radius: inherit;
    box-shadow: 0 -12px 40px rgb(0 0 0 / 15%);
  }

  .quote-cart-header,
  .quote-cart-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .quote-cart-launcher {
    bottom: max(1rem, env(safe-area-inset-bottom));
    left: max(.75rem, env(safe-area-inset-left));
    max-width: calc(100vw - 100px);
    padding: .7rem .85rem;
    font-size: .85rem;
  }

  .quote-cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-areas:
      "image title"
      "image actions"
      "image remove";
    gap: .4rem .7rem;
    padding: .7rem;
  }

  .quote-cart-item-image,
  .quote-cart-service-visual {
    width: 64px;
    height: 64px;
    align-self: center;
  }

  .quote-cart-item-title {
    align-self: end;
    font-size: .94rem;
  }

  .quote-cart-item-kind {
    font-size: .74rem;
  }

  .quote-cart-item-actions {
    justify-self: start;
  }

  .quote-cart-remove {
    justify-self: start;
  }

  .quote-add-button,
  .quote-service-add {
    width: 100%;
  }

  .producto-body .producto-actions {
    gap: .5rem;
  }

  .producto-actions .quote-add-button,
  .producto-body .producto-actions .btn-wa-sm {
    padding-right: .4rem;
    padding-left: .4rem;
    font-size: .8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-add-button,
  .quote-service-add,
  .quote-cart-launcher,
  .quote-cart-modal,
  .aqua-cookie-banner {
    transition: none;
  }
}
