.compare-cell,
.compare-head {
  padding: 15px;
  border: none;
  border-right: 1px solid #ececec;
  min-width: 200px;
  text-align: left;
  position: relative;
}

.compare-cell {
  min-width: 300px;
}

.compare-cell p:last-child {
  margin-bottom: 0;
}

.ea4v-compare-table {
  border: none;
  display: block;
  border-collapse: collapse;
  width: 100%;
}

.ea4v-compare-table .compare-row {
  border: none;
  outline: none;
}

.ea4v-compare-table .compare-row:first-child {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 0 0 1px #e5e5e5;
  z-index: 1;
}

.ea4v-compare-table .compare-row:nth-child(2n) {
  background: #f9f9f9;
}

.compare-chosen {
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.1);
}

.compare-bar {
  position: sticky;
  position: -webkit-sticky;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -4px 3px rgba(0, 0, 0, 0.031372549);
  background: #fff;
  left: 0;
  right: 0;
  z-index: 500;
  justify-content: center;
  display: flex;
  padding: 12px;
  align-items: center;
}

.compare-bar a {
  margin: 0 5px;
  padding: 14px 20px;
  white-space: nowrap;
}

table.ea4v-compare-table a {
  color: black;
}

table.ea4v-compare-table .ts-work-hours-list,
.ts-work-hours.wh-expanded .ts-expand-hours {
  display: block;
}

table.ea4v-compare-table ul.simplify-ul.flexify {
  background: unset;
}
table.ea4v-compare-table .ts-work-hours-list li {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

td.compare-cell {
  vertical-align: top;
}

table.ea4v-compare-table,
table.ea4v-compare-table span {
  line-height: 1.42857143;
}

table.ea4v-compare-table .ts-recurring-date p {
  margin-bottom: 5px;
}

table.ea4v-compare-table .ts-slide-nav a {
  height: 20px;
  width: 20px;

  line-height: 1 !important;
}

table.ea4v-compare-table .ts-work-hours-list li p {
  word-break: normal;
}

a.compare-head-remove svg {
  width: 20px;
  height: 20px;
  border: 1px solid #b30000;
  border-radius: 100px;
  padding: 3px;
  color: #b30000;
  fill: #b30000;
}

.compare-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.compare-bar a {
  color: white;
  background: var(--e-global-color-accent);
  border-radius: 5px;
}
.compare-bar a.clear {
  background: white;
  color: black;
}

a.compare-taxonomy-term {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-right: 18px;
}
a.compare-taxonomy-term svg,
a.compare-taxonomy-term i {
  width: 14px;
  aspect-ratio: 1/1;
  height: unset;
  /* height:15px; */
}
a.compare-taxonomy-term .icon {
  line-height: 1;
}

.ea4v-compare-image-container {
  position: relative;
  max-width: 100% !important;
}

.compare-cell .ts-single-slide,
.compare-cell .ts-slider {
  border-radius: 0 !important;
}

.ea4v-compare-listing .ts-popup-content-wrapper {
  max-height: 100vh !important;
  max-height: 100dvh !important;
  max-width: 100vw !important;
}

.ea4v-popup-backdrop {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #00000029;
  z-index: 99;
}
.ts-popup-root.ea4v-popup-root {
  /* position: fixed !important; */
  /* height: unset; */
}
.ea4v-popup .ts-popup-content-wrapper {
  max-height: 100vh !important;
}

/* .ea4v-popup-loading {
  top: 50%;
  position: absolute;
  transform: translateY(-50%);
} */

@media (max-width: 1024px) {
  .ea4v-popup .ts-popup-content-wrapper {
    height: auto !important;
    width: 100% !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    max-width: 100vw;
  }
  .ea4v-popup .ts-field-popup-container {
    min-height: unset !important;
  }
}

.ea4v-no-scroll {
  overflow: hidden;
  position: relative;
  height: 100vh;
  padding-right: var(--scrollbar-width, 0px);
  /* để tránh layout jump nếu cần */
}

@media (max-width: 1024px) {
  .ea4v-bg-popup .ts-field-popup-container {
    width: 100vw !important;
    height: auto !important;
    top: unset !important;
  }
}

.ea4v-popup .ts-field-popup-container .ts-field-popup {
  flex-direction: column !important;
}

.ea4v-popup-server.hide {
  display: none;
}

@media (min-width: 1024px) {
  .ea4v-bg-popup .ts-popup-close {
    display: unset !important;
  }
}

.ea4v-popup .ts-popup-controller {
  border-bottom: 1px solid #dadada;
}

.ea4v-popup-header .ts-popup-close a.ts-icon-btn {
  border: 0;
}
.ea4v-popup-header .ea4v-popup-title,
.ea4v-popup-header .ea4v-popup-title a {
  color: black;
  font-size: 16px;
}

.ea4v-popup-header ul.flexify.simplify-ul {
  flex-direction: row !important;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.ea4v-popup-root .ea4v-popup-header ul li:last-child {
  margin-left: 0 !important;
}

.ea4v-compare-listing .ts-popup-content-wrapper.min-scroll {
  overflow: scroll;
}

.ea4v-compare-listing .ts-popup-content-wrapper.min-scroll {
  overflow: auto !important;
}
