﻿.tcu-compare-tray {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1600;
  background: #ffffff;
  border: 1px solid #d6e2ea;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 35, 52, 0.16);
  padding: 10px 12px;
  max-width: 760px;
  margin: 0 auto;
}

.tcu-compare-tray__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.tcu-compare-tray__clear {
  border: 0;
  background: transparent;
  color: #0a8f73;
  font-weight: 700;
  cursor: pointer;
}

.tcu-compare-tray__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tcu-compare-chip {
  border: 1px solid #bdd1de;
  background: #f4f8fb;
  color: #234157;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tcu-compare-tray__empty {
  color: #5f7386;
  font-size: 13px;
}

.tcu-compare-tray__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid #0a8f73;
  background: #0a8f73;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.tcu-compare-tray__cta:link,
.tcu-compare-tray__cta:visited,
.tcu-compare-tray__cta:hover,
.tcu-compare-tray__cta:focus {
  color: #ffffff;
}

.tcu-compare-page .tcu-compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tcu-compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #d6e2ea;
  border-radius: 12px;
  overflow: hidden;
}

.tcu-compare-table th,
.tcu-compare-table td {
  border-bottom: 1px solid #e5edf3;
  border-right: 1px solid #e5edf3;
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.tcu-compare-table th:last-child,
.tcu-compare-table td:last-child {
  border-right: 0;
}

.tcu-compare-table tr:last-child td {
  border-bottom: 0;
}

.tcu-compare-table thead th {
  background: #f4f8fb;
  color: #17354a;
  font-weight: 800;
}

.tcu-compare-action-cell {
  display: grid;
  gap: 8px;
}

.tcu-compare-table td img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .tcu-compare-tray {
    left: 10px;
    right: 10px;
    bottom: max(10px, calc(env(safe-area-inset-bottom) + 8px));
    padding: 10px;
  }

  .tcu-compare-tray__head {
    margin-bottom: 6px;
  }

  .tcu-compare-tray__cta {
    width: 100%;
  }
}

/* Phase 93.1 - compare tray/table stability without brand color changes. */
.tcu-compare-tray,
.tcu-compare-page,
.tcu-compare-table-wrap,
.tcu-compare-table,
.tcu-compare-card {
  box-sizing: border-box;
  max-width: 100%;
}

.tcu-compare-tray {
  border-color: #d6e2ea;
  box-shadow: 0 10px 28px rgba(13, 34, 50, .08);
}

.tcu-compare-table th,
.tcu-compare-table td,
.tcu-compare-tray__head,
.tcu-compare-tray__cta {
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-orientation: mixed;
  word-break: normal;
  writing-mode: horizontal-tb;
}
