/* Chave Vertical cart reminder - isolated from WooCommerce cart/checkout. */
.cvl-cart-reminder-pill,
.cvl-cart-reminder-overlay,
.cvl-cart-reminder-dialog,
.cvl-cart-reminder-dialog * {
  box-sizing: border-box;
}

.cvl-cart-reminder-pill {
  position: fixed;
  z-index: 9990;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
  max-width: min(300px, calc(100vw - 28px));
  padding: 9px 16px 9px 9px;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #fff;
  color: #142b4b;
  box-shadow: 0 8px 28px rgba(12, 35, 65, .2);
  font: 700 13px/1.25 Arial, sans-serif;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.cvl-cart-reminder-pill:hover {
  transform: translateY(-2px);
  color: #0b55b7;
  box-shadow: 0 12px 32px rgba(12, 35, 65, .24);
}

.cvl-cart-reminder-pill-icon {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0866d9;
  color: #fff;
}

.cvl-cart-reminder-pill-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cvl-cart-reminder-pill-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e32636;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.cvl-cart-reminder-pill-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cvl-cart-reminder-pill-copy strong {
  color: #102b50;
  font-size: 13px;
  font-weight: 900;
}

.cvl-cart-reminder-pill-copy span {
  color: #0866d9;
  font-size: 13px;
  font-weight: 850;
}

.cvl-cart-reminder-overlay {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(10, 24, 43, .64);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cvl-cart-reminder-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  border: 1px solid #e1e8f0;
  border-radius: 13px;
  background: #fff;
  color: #172338;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
  font-family: Arial, sans-serif;
}

.cvl-cart-reminder-header {
  position: relative;
  padding: 24px 58px 17px 25px;
  border-bottom: 1px solid #edf1f5;
}

.cvl-cart-reminder-header h2 {
  margin: 0 0 7px;
  color: #0d1d3d;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.2;
}

.cvl-cart-reminder-header p {
  max-width: 590px;
  margin: 0;
  color: #58667a;
  font-size: 13px;
  line-height: 1.5;
}

.cvl-cart-reminder-close {
  position: absolute;
  top: 17px;
  right: 17px;
  width: 34px;
  height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
}

.cvl-cart-reminder-close:hover {
  background: #f0f4f8;
  color: #102b50;
}

.cvl-cart-reminder-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 215px;
  gap: 17px;
  padding: 18px 22px;
  background: #f7f9fc;
}

.cvl-cart-reminder-items {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cvl-cart-reminder-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 10px;
  border: 1px solid #e5ebf2;
  border-radius: 8px;
  background: #fff;
}

.cvl-cart-reminder-item-image {
  width: 82px;
  height: 82px;
  display: block;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.cvl-cart-reminder-item-details {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cvl-cart-reminder-item-name {
  color: #15243a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

.cvl-cart-reminder-item-name:hover {
  color: #0866d9;
}

.cvl-cart-reminder-item-sku,
.cvl-cart-reminder-item-quantity {
  color: #5d6b7c;
  font-size: 11px;
  line-height: 1.35;
}

.cvl-cart-reminder-item-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.cvl-cart-reminder-price-ex {
  color: #0866d9;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.cvl-cart-reminder-price-inc {
  color: #59677a;
  font-size: 11px;
  font-weight: 700;
}

.cvl-cart-reminder-more {
  margin: 0;
  padding: 2px 4px;
  color: #5d6b7c;
  font-size: 11px;
}

.cvl-cart-reminder-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.cvl-cart-reminder-resume,
.cvl-cart-reminder-whatsapp {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #fff !important;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  transition: background .15s ease, transform .15s ease;
}

.cvl-cart-reminder-resume {
  background: #0866d9;
  border-color: #0866d9;
}

.cvl-cart-reminder-resume:hover {
  background: #064fa8;
  border-color: #064fa8;
  transform: translateY(-1px);
}

.cvl-cart-reminder-whatsapp {
  background: #16a34a;
  border-color: #16a34a;
}

.cvl-cart-reminder-whatsapp:hover {
  background: #12813c;
  border-color: #12813c;
  transform: translateY(-1px);
}

.cvl-cart-reminder-whatsapp svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cvl-cart-reminder-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding: 14px 23px 17px;
  background: #fff;
}

.cvl-cart-reminder-text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #075cc8;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.cvl-cart-reminder-text-button:hover {
  color: #063f91;
  text-decoration: underline;
}

.cvl-cart-reminder-dialog a:focus-visible,
.cvl-cart-reminder-dialog button:focus-visible,
.cvl-cart-reminder-pill:focus-visible {
  outline: 3px solid #f5b400;
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .cvl-cart-reminder-overlay {
    padding: 10px;
  }

  .cvl-cart-reminder-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 11px;
  }

  .cvl-cart-reminder-header {
    padding: 21px 48px 15px 17px;
  }

  .cvl-cart-reminder-header h2 {
    font-size: 19px;
  }

  .cvl-cart-reminder-header p {
    font-size: 12px;
  }

  .cvl-cart-reminder-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .cvl-cart-reminder-item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .cvl-cart-reminder-item-image {
    width: 68px;
    height: 68px;
  }

  .cvl-cart-reminder-item-name {
    font-size: 12px;
  }

  .cvl-cart-reminder-price-ex {
    font-size: 15px;
  }

  .cvl-cart-reminder-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .cvl-cart-reminder-resume,
  .cvl-cart-reminder-whatsapp {
    min-height: 45px;
  }

  .cvl-cart-reminder-footer {
    gap: 18px;
    padding: 12px 16px 15px;
  }

  .cvl-cart-reminder-pill {
    left: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    min-width: 0;
    max-width: calc(100vw - 24px);
    padding-right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cvl-cart-reminder-pill,
  .cvl-cart-reminder-resume,
  .cvl-cart-reminder-whatsapp {
    transition: none;
  }
}
