body .termio-product-dialog .termio-dialog-cart,
body :is(a.termio-remove-saved, button.termio-remove-saved),
body .ast-on-card-button.add_to_cart_button .ast-card-action-tooltip {
  color: #fff !important;
}

.termio-saved-card:has(> .termio-remove-saved),
.termio-compare-table td:has(> .termio-remove-saved) {
  position: relative;
  padding-block-start: 46px;
}

body :is(.termio-saved-card, .termio-compare-table td) > button.termio-remove-saved {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  line-height: 1;
  overflow: visible;
}

.termio-saved-remove-tooltip {
  position: absolute;
  inset-block-start: calc(100% + 5px);
  inset-inline-end: 0;
  padding: 6px 9px;
  border-radius: 4px;
  background: #20252b;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
}

.termio-remove-saved:hover > .termio-saved-remove-tooltip,
.termio-remove-saved:focus-visible > .termio-saved-remove-tooltip {
  visibility: visible;
}

.termio-compare-table {
  isolation: isolate;
}

.termio-product-dialog > .termio-dialog-header {
  z-index: 3;
}

.termio-compare-table td:has(> .termio-dialog-cart) {
  text-align: center;
}

.termio-compare-table td > .termio-dialog-cart {
  display: inline-flex;
  justify-content: center;
  margin-inline: 0;
}

body .termio-product-dialog .termio-dialog-header .termio-dialog-close:is(:hover, :focus-visible) {
  background-color: #eef2f6 !important;
  color: #001f3f !important;
}
