/* Shared Poster vs PicPanel comparison dialog for the catalog and product pages. */
/* Accessible native dialog with a compact product comparison table. */
.ppp-compare-modal {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 28px));
  max-width: none;
  max-height: min(88vh, 740px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: #fff;
  color: #101b33;
  box-shadow: 0 22px 80px rgba(10, 26, 57, .3);
  overflow: auto;
}
.ppp-compare-modal::backdrop { background: rgba(13, 26, 48, .62); }
.ppp-compare-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 25px 26px 16px;
}
.ppp-compare-header h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.5px;
}
.ppp-compare-header p {
  margin: 7px 0 0;
  color: #5e6a7e;
  font-size: 14px;
}
.ppp-compare-close {
  display: grid;
  flex: 0 0 42px;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: -8px -10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f4f8;
  color: #1b2942;
  font: inherit;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}
.ppp-compare-close:hover { background: #e3ebf9; }
.ppp-compare-close:focus-visible { outline: 3px solid #0868f7; outline-offset: 2px; }
.ppp-compare-table-wrap { padding: 0 26px 26px; overflow-x: auto; }
.ppp-compare-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.ppp-compare-table th,
.ppp-compare-table td { padding: 13px 11px; border-bottom: 1px solid #e5eaf1; text-align: left; vertical-align: top; }
.ppp-compare-table thead th { color: #0b4fb5; background: #f1f6ff; font-weight: 750; }
.ppp-compare-table thead th:first-child { border-radius: 7px 0 0 0; }
.ppp-compare-table thead th:last-child { border-radius: 0 7px 0 0; }
.ppp-compare-table tbody th { width: 24%; color: #18243c; font-weight: 700; }
.ppp-compare-table tbody td { width: 38%; color: #495871; }
.ppp-compare-table tbody tr:last-child th,
.ppp-compare-table tbody tr:last-child td { border-bottom: 0; }
.ppp-compare-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .ppp-compare-header { padding: 20px 16px 12px; }
  .ppp-compare-header h2 { font-size: 22px; }
  .ppp-compare-table-wrap { padding: 0 12px 18px; }
  .ppp-compare-table { font-size: 12px; }
  .ppp-compare-table th,
  .ppp-compare-table td { padding: 10px 7px; }
}
