.tlpw {
  --tlpw-accent: #005846;
  --tlpw-page-bg: #f5f1e9;
  --tlpw-card-bg: #fff;
  --tlpw-image-bg: #f5f1e9;
  --tlpw-table-head: #005846;
  --tlpw-table-alt: #f5f1e9;
  --tlpw-text: #004e43;
  --tlpw-radius: 14px;
  --tlpw-spacing: 8px;
  --tlpw-header-h: 78px;
  --tlpw-pad-top: 34px;
  --tlpw-pad-right: 34px;
  --tlpw-pad-bottom: 34px;
  --tlpw-pad-left: 34px;
  --tlpw-grid-gap: 34px;
  --tlpw-image-width: 40%;
  --tlpw-heading-size: 36px;
  --tlpw-title-size: 22px;
  --tlpw-brand-size: 12px;
  --tlpw-table-size: 11px;
  width: 100%;
  color: var(--tlpw-text);
  background: var(--tlpw-page-bg);
  box-sizing: border-box;
}

.tlpw *,
.tlpw *::before,
.tlpw *::after {
  box-sizing: border-box;
}

.tlpw__inner {
  width: min(100%, var(--tlpw-max-width, 100%));
  margin: 0 auto;
}

.tlpw__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

.tlpw-search,
.tlpw-select__button,
.tlpw-reset {
  height: 40px;
  border: 1px solid #e3ded4;
  background: #fff;
  color: var(--tlpw-text);
  border-radius: 11px;
}

.tlpw-search {
  display: flex;
  align-items: center;
  flex: 1 1 205px;
  max-width: 260px;
  padding: 0 12px;
  gap: 9px;
}

.tlpw-search svg,
.tlpw-select svg,
.tlpw-reset svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.tlpw-search__input {
  min-width: 0;
  width: 100%;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  background: transparent !important;
  color: var(--tlpw-text);
  font: inherit;
  font-size: 12px;
}

.tlpw-search__input::placeholder {
  color: #77766f;
}

.tlpw-select {
  position: relative;
  flex: 0 0 145px;
}

.tlpw-select__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.tlpw-select__button svg {
  transition: transform 0.2s ease;
}
.tlpw-select.is-open .tlpw-select__button svg {
  transform: rotate(180deg);
}

.tlpw-select__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  padding: 5px;
  border: 1px solid #e3ded4;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
}

.tlpw-select__menu[hidden] {
  display: none;
}

.tlpw-select__menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--tlpw-text);
  padding: 9px 10px;
  border-radius: 7px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.tlpw-select__menu button:hover,
.tlpw-select__menu button.is-selected {
  background: var(--tlpw-page-bg);
}

.tlpw-type-tabs {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-left: auto;
  padding: 2px;
  border: 1px solid #d5d1c9;
  border-radius: 999px;
  background: #e8e4db;
  overflow: hidden;
}

.tlpw-type-tabs button {
  height: 34px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tlpw-text);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.tlpw-type-tabs button.is-active {
  background: var(--tlpw-accent);
  color: #fff;
}

.tlpw-reset {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: var(--tlpw-accent);
  background: var(--tlpw-accent);
  color: #fff;
  cursor: pointer;
}

.tlpw__count {
  margin: 3px 0 27px;
  color: #1c2522;
  font-size: 12px;
  font-weight: 600;
}

.tlpw__heading-wrap {
  margin-bottom: 26px;
}

.tlpw__heading {
  margin: 0;
  color: var(--tlpw-accent);
  font-size: var(--tlpw-heading-size);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.tlpw__list {
  display: flex;
  flex-direction: column;
  gap: var(--tlpw-spacing);
}

.tlpw-item {
  overflow: hidden;
  border-radius: var(--tlpw-radius);
  background: var(--tlpw-card-bg);
  box-shadow: 0 2px 6px rgba(25, 39, 33, 0.12);
}

.tlpw-item[hidden] {
  display: none !important;
}

.tlpw-item__header {
  width: 100%;
  min-height: var(--tlpw-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 30px;
  border: 0;
  background: transparent;
  color: var(--tlpw-text);
  cursor: pointer;
  text-align: left;
}

.tlpw-item__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 17px;
}

.tlpw-item__thumb {
  width: 64px;
  height: 54px;
  flex: 0 0 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tlpw-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tlpw-item__thumb--empty {
  opacity: 0.25;
}

.tlpw-item__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tlpw-item__title {
  color: var(--tlpw-accent);
  font-size: var(--tlpw-title-size);
  line-height: 1.05;
  font-weight: 750;
}

.tlpw-item__brand {
  color: #171c1a;
  font-size: var(--tlpw-brand-size);
  line-height: 1.3;
  font-weight: 600;
}

.tlpw-item__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  position: relative;
  color: var(--tlpw-accent);
}

.tlpw-icon-plus::before,
.tlpw-icon-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.tlpw-icon-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s ease;
}

.tlpw-item.is-open .tlpw-icon-plus::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.tlpw-item__panel[hidden] {
  display: none;
}

.tlpw-item__panel {
  border-top: 1px solid #ddd9d1;
}

.tlpw-item__content {
  display: grid;
  grid-template-columns: minmax(220px, var(--tlpw-image-width)) minmax(0, 1fr);
  gap: var(--tlpw-grid-gap);
  padding: var(--tlpw-pad-top) var(--tlpw-pad-right) var(--tlpw-pad-bottom)
    var(--tlpw-pad-left);
  background: var(--tlpw-card-bg);
}

.tlpw-item__media {
  min-width: 0;
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  overflow: hidden;
  background: var(--tlpw-image-bg);
}

.tlpw-item__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.tlpw-item__table {
  min-width: 0;
  align-self: start;
}

.tlpw-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tlpw-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--tlpw-text);
  font-size: var(--tlpw-table-size);
}

.tlpw-table th {
  padding: 14px 12px;
  background: var(--tlpw-table-head);
  color: #fff;
  border: 0;
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.tlpw-table td {
  padding: 14px 12px;
  border: 0;
  line-height: 1.25;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.tlpw-table tbody tr:nth-child(odd) td {
  background: var(--tlpw-table-alt);
}
.tlpw-table tbody tr:nth-child(even) td {
  background: #fff;
}

.tlpw-empty {
  margin-top: 18px;
  padding: 30px;
  border-radius: var(--tlpw-radius);
  background: var(--tlpw-card-bg);
  color: var(--tlpw-text);
  text-align: center;
}

@media (max-width: 900px) {
  .tlpw__toolbar {
    flex-wrap: wrap;
  }
  .tlpw-search {
    max-width: none;
    flex: 1 1 100%;
  }
  .tlpw-select {
    flex: 1 1 150px;
  }
  .tlpw-type-tabs {
    margin-left: 0;
    flex: 1 1 100%;
    justify-content: center;
  }
  .tlpw-type-tabs button {
    flex: 1 1 auto;
  }
  .tlpw-item__content {
    grid-template-columns: 1fr;
  }
  .tlpw-item__media {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .tlpw__heading {
    font-size: clamp(28px, 9vw, var(--tlpw-heading-size));
  }
  .tlpw-item__header {
    padding: 9px 16px;
  }
  .tlpw-item__thumb {
    width: 52px;
    height: 46px;
    flex-basis: 52px;
  }
  .tlpw-item__identity {
    gap: 10px;
  }
  .tlpw-item__title {
    font-size: 18px;
  }
  .tlpw-item__content {
    padding: 20px 16px;
    gap: 18px;
  }
  .tlpw-item__media {
    min-height: 220px;
  }
  .tlpw-type-tabs button {
    padding: 0 9px;
    font-size: 8px;
    letter-spacing: 0.14em;
  }
}
