:root {
  --tb-lime: #c7ff3d;
  --tb-lime-dark: #b5ed2e;
  --tb-lime-pressed: #a4d829;
  --tb-ink: #171717;
  --tb-muted: #676c68;
  --tb-line: #e3e6e2;
  --tb-line-hover: #aeb7ac;
  --tb-soft: #f4f5f6;
  --tb-hover: #edf0ed;
  --tb-pressed: #e2e7e1;
  --tb-selection: #f2fbdc;
  --tb-selection-line: #688711;
  --tb-radius: 16px;
  --tb-display: "Unbounded", "Manrope", system-ui, sans-serif;
}

html,
body {
  height: auto;
  min-height: 100%;
}

body.tb-body {
  --bs-link-color: var(--tb-ink);
  --bs-link-color-rgb: 23, 23, 23;
  --bs-link-hover-color: var(--tb-ink);
  --bs-link-hover-color-rgb: var(--bs-link-color-rgb);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--tb-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

#container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.tb-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.tb-header {
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--tb-line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.tb-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.tb-logo {
  font-family: var(--tb-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.09em;
  color: var(--tb-ink);
  text-decoration: none;
  line-height: 1;
  flex: 0 0 auto;
}

.tb-logo::after {
  content: '.';
  color: var(--tb-lime);
}

/* Catalog button + panel */
.tb-catalog {
  position: relative;
  flex: 0 0 auto;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.tb-btn--lime {
  background: var(--tb-lime);
  color: var(--tb-ink);
}

.tb-btn--lg {
  padding: 16px 34px;
  font-size: 17px;
  border-radius: 14px;
}

.tb-catalog__btn {
  white-space: nowrap;
  border-color: var(--tb-line);
  background: #fff;
  color: var(--tb-ink);
}

.tb-catalog__panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  background: #fff;
  border-radius: var(--tb-radius);
  border: 1px solid var(--tb-line);
  box-shadow: 0 18px 40px rgba(15, 15, 15, .10);
  padding: 10px;
  z-index: 60;
}

.tb-catalog.is-open .tb-catalog__panel {
  display: block;
}

.tb-catalog__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--tb-ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.tb-catalog__item--all {
  font-weight: 700;
  border-bottom: 1px solid var(--tb-line);
  border-radius: 10px 10px 0 0;
  margin-bottom: 6px;
  padding-bottom: 14px;
}

/* Search */
.tb-search {
  flex: 1 1 auto;
  min-width: 0;
}

.tb-search form {
  margin: 0 !important;
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: var(--tb-soft);
  padding: 0 8px 0 22px;
  height: 52px;
  width: 100%;
}

.tb-search .form-control {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  height: 52px;
  font-size: 15px;
  color: var(--tb-ink);
}

.tb-search .form-control::placeholder {
  color: #9aa0a6;
}

.tb-search .btn {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--tb-muted);
  padding: 8px 12px;
  font-size: 16px;
}

/* Actions */
.tb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tb-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--tb-ink);
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
}

#cart.tb-cart {
  margin: 0;
  display: flex;
  align-items: center;
}

.tb-cart__wrap {
  margin: 0;
  display: flex;
  align-items: center;
}

.tb-cart__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--tb-ink);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.tb-cart__count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tb-lime);
  color: var(--tb-ink);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', Arial, sans-serif;
  line-height: 1;
}

.tb-cart__count--empty {
  background: #eef0ea;
  color: #8a8f86;
}

#cart .tb-cart__menu {
  background: #fff;
  width: 400px;
  padding: 0;
  margin-top: 14px;
  border: 1px solid var(--tb-line);
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(15, 15, 15, .12);
  font-family: 'Manrope', -apple-system, Arial, sans-serif;
  overflow: hidden;
}

.tb-cart__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--tb-line);
}

.tb-cart__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.tb-cart__sub {
  font-size: 13px;
  color: var(--tb-muted);
}

.tb-cart__items {
  max-height: 330px;
  overflow-y: auto;
  padding: 8px;
  margin: 0;
  list-style: none;
}

.tb-cart__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
}

.tb-cart__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--tb-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  overflow: hidden;
}

.tb-cart__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tb-cart__info {
  min-width: 0;
}

.tb-cart__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tb-ink);
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tb-cart__option,
.tb-cart__meta {
  font-size: 12px;
  color: var(--tb-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.tb-cart__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
}

.tb-cart__total {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.tb-cart__side form {
  margin: 0;
}

.tb-cart__remove {
  background: transparent;
  border: 0;
  padding: 2px 4px;
  border-radius: 6px;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.tb-cart__totals {
  padding: 12px 18px 4px;
  border-top: 1px solid var(--tb-line);
}

.tb-cart__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--tb-muted);
  padding: 4px 0;
}

.tb-cart__row--sum {
  font-size: 16px;
  font-weight: 800;
  color: var(--tb-ink);
}

.tb-cart__actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 12px 14px 14px;
}

.tb-btn--ghost {
  background: var(--tb-soft);
  color: var(--tb-ink);
}

.tb-cart__empty {
  padding: 28px 20px 30px;
  text-align: center;
}

.tb-cart__empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tb-soft);
  color: #9aa0a6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.tb-cart__empty-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 4px;
}

.tb-cart__empty-text {
  font-size: 13px;
  color: var(--tb-muted);
  margin: 0;
}

/* Hero */
.tb-main {
  padding-bottom: 64px;
}

.tb-hero {
  background: var(--tb-soft);
  border-bottom: 1px solid var(--tb-line);
}

.tb-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  min-height: 28rem;
  padding-block: 16px;
}

.tb-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  background: #e2f7b0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .025em;
}

.tb-hero__title {
  font-family: var(--tb-display);
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.06em;
  margin: 4px 0 16px;
}

.tb-hero__mark {
  display: inline-block;
  margin-top: 4px;
  border-radius: 8px;
  padding: 0 .12em .06em;
  background: var(--tb-lime);
}

.tb-hero__sub {
  max-width: 25rem;
  font-size: 18px;
  margin: 0 0 24px;
}

#categories {
  scroll-margin-top: 145px;
}

.tb-hero__media img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blocks */
.tb-block {
  margin-top: 0;
  padding-top: 34px;
}

.tb-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.tb-block__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 30px;
  font-weight: 800;
  margin: 0;
}

.tb-link {
  color: var(--tb-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Categories */
.tb-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tb-cat {
  display: flex;
  flex-direction: column;
  min-height: 48px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  background: var(--tb-soft);
  padding: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--tb-ink);
}

.tb-cat__name {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.tb-cat__media {
  position: relative;
  height: 112px;
  margin-top: 8px;
}

.tb-cat__media::before {
  position: absolute;
  right: -24px;
  bottom: -12px;
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tb-lime);
  content: '';
}

.tb-cat__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Product cards */
.tb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: 14px;
  background: #fff;
}

.tb-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
}

.tb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.tb-badge--deal { background: #fff0dc; color: #7a4a11; }

.tb-card__fav {
  margin: 0;
  margin-inline-start: auto;
}

.tb-card__fav button {
  background: transparent;
  border: 0;
  padding: 4px;
  border-radius: 8px;
  font-size: 18px;
  color: var(--tb-ink);
  cursor: pointer;
  line-height: 1;
}

.tb-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.tb-card__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tb-card__name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  min-height: 40px;
}

.tb-card__name a {
  color: var(--tb-ink);
  text-decoration: none;
}

.tb-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--tb-muted);
  min-height: 16px;
}

.tb-stars i {
  font-size: 11px;
  color: #9fce12;
}

.tb-stars .tb-star--off {
  color: #d9dbd4;
}

.tb-card__bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}

.tb-card__bottom .tb-btn {
  width: 100%;
  white-space: normal;
}

.tb-card__bottom form {
  margin: 0;
}

.tb-price {
  min-height: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tb-price__old {
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-muted);
  text-decoration: line-through;
}

.tb-btn--buy {
  padding: 11px 18px;
  font-size: 14px;
  border-radius: 10px;
  white-space: nowrap;
}

/* Category page */
.tb-cathero {
  display: grid;
  align-items: center;
  gap: 32px;
}

.tb-cathero__title {
  font-weight: 800;
}

.tb-cathero__desc {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tb-muted);
}

.tb-cathero__desc p {
  margin: 0 0 8px;
}

.tb-cathero__desc p:last-child {
  margin-bottom: 0;
}

.tb-cathero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 22px;
  overflow: hidden;
}

.tb-cathero__media img {
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.tb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--tb-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.tb-catlayout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 26px 0 40px;
}

.tb-catside {
  position: sticky;
  top: 108px;
}

.tb-catside > aside,
.tb-catside > div {
  width: 100% !important;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.tb-sideblock {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--tb-line);
  border-radius: 16px;
  background: #fff;
}

.tb-sideblock .card,
.tb-catside .card {
  border: 1px solid var(--tb-line);
  border-radius: 16px;
}

.tb-sideblock__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a8f86;
}

.tb-sidelist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb-sidelist a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--tb-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.tb-sidelist a.is-active {
  background: var(--tb-lime);
}

.tb-sidelist__name {
  min-width: 0;
  line-height: 1.3;
}

.tb-sidelist__count {
  flex: 0 0 auto;
  min-width: 26px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tb-soft);
  color: #8a8f86;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.tb-sidelist a.is-active .tb-sidelist__count {
  background: rgba(15, 15, 15, .08);
  color: var(--tb-ink);
}

.tb-sidelist__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px;
  padding: 0 0 0 8px;
  list-style: none;
}

.tb-sidelist__sub a {
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tb-muted);
}

.tb-sidelist__sub a.is-active {
  color: var(--tb-ink);
  background: var(--tb-selection);
}

.tb-sidelist__sub .tb-sidelist__count {
  background: transparent;
  padding: 0;
  min-width: 0;
}

.tb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.tb-toolbar__count {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tb-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tb-toolbar__label {
  margin: 0;
  font-size: 13px;
  color: var(--tb-muted);
}

.tb-select {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  background-color: #fff;
  color: var(--tb-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tb-viewtoggle {
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  background: #fff;
}

.tb-viewtoggle button {
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--tb-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.tb-viewtoggle button.is-active {
  background: var(--tb-lime);
  color: var(--tb-ink);
}

.tb-grid.is-list {
  grid-template-columns: 1fr;
}

.tb-grid.is-list .tb-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-areas:
    "media top"
    "media name"
    "media rating"
    "media bottom";
  align-items: start;
  column-gap: 22px;
  row-gap: 8px;
}

.tb-grid.is-list .tb-card__top { grid-area: top; }
.tb-grid.is-list .tb-card__media { grid-area: media; align-self: stretch; }
.tb-grid.is-list .tb-card__name { grid-area: name; min-height: 0; }
.tb-grid.is-list .tb-card__rating { grid-area: rating; }
.tb-grid.is-list .tb-card__bottom { grid-area: bottom; align-items: flex-end; }

.tb-catfoot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 26px;
}

.tb-catfoot__results {
  font-size: 13px;
  color: var(--tb-muted);
}

.pagination {
  --bs-pagination-focus-color: var(--tb-ink);
  --bs-pagination-focus-bg: var(--tb-hover);
  --bs-pagination-focus-box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  background: #fff;
  color: var(--tb-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  border-color: var(--tb-lime);
  background: var(--tb-lime);
  color: var(--tb-ink);
}

.tb-empty {
  padding: 40px 0;
  color: var(--tb-muted);
}

.tb-footer {
  position: static;
  margin: 0;
  padding: 42px 0 26px;
  background: var(--tb-soft);
  border: 0;
  border-top: 1px solid var(--tb-line);
  color: var(--tb-muted);
}

.tb-footer__links {
  display: grid;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  gap: 24px;
}

.tb-footer__links--information {
  grid-template-columns: 1.55fr repeat(3, minmax(0, 1fr));
}

.tb-footer__brand p { margin: 12px 0 8px; }
.tb-footer a { color: var(--tb-ink); }
.tb-footer .tb-logo { text-decoration: none; }
.tb-footer hr { border-color: var(--tb-line); }
.tb-footer li + li { margin-top: 7px; }
.tb-footer h5,
.tb-eyebrow {
  margin: 0 0 7px;
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tb-block__title,
.tb-cathero__title,
.tb-body main h1:not(.tb-hero__title) {
  font-family: var(--tb-display);
  letter-spacing: -.04em;
}

.tb-body main h1:not(.tb-hero__title) {
  font-size: clamp(23px, 3.2vw, 40px);
  line-height: 1.2;
}

.tb-body .btn-primary {
  --bs-btn-bg: var(--tb-lime);
  --bs-btn-border-color: var(--tb-lime);
  --bs-btn-color: var(--tb-ink);
  --bs-btn-hover-bg: var(--tb-lime-dark);
  --bs-btn-hover-border-color: var(--tb-lime-dark);
  --bs-btn-hover-color: var(--tb-ink);
  --bs-btn-active-bg: var(--tb-lime-pressed);
  --bs-btn-active-border-color: var(--tb-lime-pressed);
  --bs-btn-active-color: var(--tb-ink);
  --bs-btn-disabled-bg: var(--tb-lime);
  --bs-btn-disabled-border-color: var(--tb-lime);
  --bs-btn-disabled-color: var(--tb-ink);
}

.tb-body :is(.btn-light, .btn-secondary, .btn-info, .btn-outline-secondary) {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--tb-line);
  --bs-btn-color: var(--tb-ink);
  --bs-btn-hover-bg: var(--tb-hover);
  --bs-btn-hover-border-color: var(--tb-line-hover);
  --bs-btn-hover-color: var(--tb-ink);
  --bs-btn-active-bg: var(--tb-pressed);
  --bs-btn-active-border-color: var(--tb-line-hover);
  --bs-btn-active-color: var(--tb-ink);
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: var(--tb-line);
  --bs-btn-disabled-color: var(--tb-ink);
}

.tb-body .btn {
  --bs-btn-focus-box-shadow: none;
  --bs-btn-active-shadow: none;
}

.tb-body .dropdown-menu {
  --bs-dropdown-link-hover-bg: var(--tb-hover);
  --bs-dropdown-link-active-bg: var(--tb-pressed);
  --bs-dropdown-link-active-color: var(--tb-ink);
}

.tb-body .dropdown-item.active {
  --bs-dropdown-link-active-bg: var(--tb-selection);
}

.tb-body .list-group {
  --bs-list-group-active-bg: var(--tb-selection);
  --bs-list-group-active-color: var(--tb-ink);
  --bs-list-group-active-border-color: var(--tb-selection-line);
}

.tb-body .accordion {
  --bs-accordion-active-bg: var(--tb-selection);
  --bs-accordion-active-color: var(--tb-ink);
  --bs-accordion-btn-active-icon: var(--bs-accordion-btn-icon);
  --bs-accordion-btn-focus-box-shadow: none;
}

.tb-body .btn-primary,
.tb-body .form-control,
.tb-body .form-select { border-radius: 12px; }
.tb-body :focus-visible { outline: 2px solid var(--tb-ink); outline-offset: 2px; }
.tb-body :where(.accordion-button, .dropdown-item, .list-group-item, .page-link):focus-visible { outline-offset: -2px; }

#checkout-cart .table,
#checkout-checkout .table { --bs-table-border-color: var(--tb-line); }

#checkout-cart .accordion-item,
#checkout-checkout .card,
#checkout-checkout fieldset {
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
}

#checkout-checkout fieldset { margin-bottom: 16px; padding: 12px 16px 16px; }
#checkout-checkout legend { font-weight: 700; float: none; width: auto; }

/* Responsive */
@media (max-width: 1200px) {
  .tb-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-cathero { gap: 24px; }
  .tb-catlayout { grid-template-columns: 230px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 992px) {
  .tb-header__inner { flex-wrap: wrap; min-height: auto; padding: 14px 24px; gap: 12px; }
  .tb-logo { order: 1; }
  .tb-actions { order: 2; margin-left: auto; }
  .tb-catalog { order: 1; }
  .tb-catalog__btn { width: 100%; justify-content: center; }
  .tb-search { order: 4; flex-basis: 100%; }
  #cart .tb-cart__menu {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-height: 82vh;
    overflow-y: auto;
    margin: 0;
    border: 0;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 40px rgba(15, 15, 15, .18);
    transform: none !important;
  }
  .tb-cart__items { max-height: none; }
  .tb-hero__inner { min-height: 0; padding-block: 24px; }
  .tb-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-footer__brand { grid-column: 1 / -1; }
  .tb-catlayout { grid-template-columns: 1fr; }
  .tb-catside { position: static; }
  .tb-catside .tb-sideblock { display: none; }
  .tb-grid.is-list .tb-card { grid-template-columns: 120px minmax(0, 1fr); }
}

@media (max-width: 576px) {
  .tb-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-grid { gap: 10px; }
  .tb-container { padding-inline: 16px; }
  .tb-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .tb-hero__title { font-size: clamp(19px, 5.1vw, 29px); }
  .tb-hero__label { font-size: 8px; padding-inline: 8px; }
  .tb-hero__sub { font-size: 12px; margin-bottom: 16px; }
  .tb-hero .tb-btn { padding: 10px 12px; font-size: 12px; }
  .tb-card { padding: 8px; min-width: 0; }
  .tb-card__bottom .tb-btn { padding: 8px 5px; font-size: 12px; }
  .tb-card__name { overflow-wrap: anywhere; }
  .tb-card__rating { flex-wrap: wrap; }
  .tb-grid.is-list .tb-card { grid-template-columns: 88px minmax(0, 1fr); }
  .tb-grid.is-list .tb-card__bottom { align-items: stretch; }
  .tb-catalog__btn { width: 40px; height: 40px; padding: 0; font-size: 15px; }
  .tb-catalog__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tb-logo { font-size: 23px; }
  .tb-header__inner { gap: 8px; }
  .tb-header .tb-actions { gap: 2px; }
  .tb-header .tb-icon { width: 34px; }
  .tb-header .tb-cart__btn { width: 38px; }
  .tb-block__title { font-size: clamp(20px, 5vw, 26px); }
  .tb-block__head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tb-cart__actions { grid-template-columns: 1fr; }
  .tb-cart__actions .tb-btn { width: 100%; }
}

.tb-order-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
  border-bottom: 1px solid var(--tb-line);
  margin-bottom: 24px;
  padding-bottom: 16px;
  color: var(--tb-muted);
}

.tb-order-heading h1 {
  margin: 0;
  color: var(--tb-ink);
}

.tb-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 32px);
}

.tb-order-layout > :only-child { grid-column: 1 / -1; }

.tb-order-items {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb-order-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 16px;
  padding: 16px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
}

.tb-order-item__image {
  grid-row: span 2;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--tb-soft);
  overflow: hidden;
}

.tb-order-item__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.tb-order-item__details { grid-column: 2; overflow-wrap: anywhere; }
.tb-order-item__details > a { color: var(--tb-ink); font-weight: 700; }
.tb-order-item__details small,
.tb-order-item__price small { color: var(--tb-muted); }
.tb-order-item__quantity { grid-column: 2; width: min(100%, 150px); }
.tb-order-item__price { grid-column: 3; grid-row: 1 / span 2; text-align: end; }
.tb-order-item__price small { display: block; }

.tb-information #content { max-width: 780px; }

.tb-info-copy {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.tb-info-copy__intro {
  color: var(--tb-muted);
  font-size: 16px;
}

.tb-info-copy section {
  scroll-margin-top: 150px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: clamp(15px, 2vw, 22px);
}

.tb-info-copy h2 {
  margin: 0 0 8px;
  color: var(--tb-ink);
  font-family: var(--tb-display);
  font-size: 17px;
  font-weight: 600;
}

.tb-info-copy p:last-child,
.tb-info-copy dl:last-child { margin-bottom: 0; }
.tb-info-copy dt { font-weight: 700; }
.tb-info-copy dl > div { display: flex; flex-wrap: wrap; gap: 0 7px; }
.tb-info-copy dd { margin: 0; }
.tb-info-copy a:not(.tb-btn) { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tb-info-copy__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-inline: -4px;
  padding: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.tb-info-copy__contacts a:not(.tb-btn) {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.tb-info-copy__contacts a[href^="viber://"] {
  --tb-contact-icon: "\f409";
  --tb-contact-icon-color: #6c4db2;
}

.tb-info-copy__contacts a[href^="https://wa.me/"] {
  --tb-contact-icon: "\f232";
  --tb-contact-icon-color: #16803c;
}

.tb-info-copy__contacts a[href^="https://t.me/"] {
  --tb-contact-icon: "\f2c6";
  --tb-contact-icon-color: #1673a3;
}

.tb-info-copy__contacts a:is([href^="viber://"], [href^="https://wa.me/"], [href^="https://t.me/"])::before {
  content: var(--tb-contact-icon);
  content: var(--tb-contact-icon) / "";
  color: var(--tb-contact-icon-color);
  font-family: "Font Awesome 7 Brands";
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.tb-order-item__quantity .btn-danger {
  background: var(--tb-soft);
  color: var(--tb-ink);
  border-color: var(--tb-line);
}

.tb-order-summary,
.tb-order-empty,
.tb-checkout-summary {
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  padding: clamp(16px, 2.5vw, 26px);
  background: var(--tb-soft);
}

.tb-order-summary { display: grid; gap: 8px; }
.tb-order-summary dl { margin: 0 0 8px; }

.tb-order-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 5px;
}

.tb-order-summary dl > div:last-child {
  border-top: 1px solid var(--tb-line);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 1.12em;
  font-weight: 800;
}

.tb-order-summary dd { margin: 0; text-align: end; }
.tb-order-extras { margin-top: 24px; }
.tb-order-empty { padding-block: 48px; text-align: center; }
.tb-order-empty > i { margin-bottom: 12px; font-size: 26px; }
.tb-checkout-summary fieldset { background: #fff; }
.tb-checkout-summary .table-responsive { overflow-x: auto; }

@media (max-width: 480px) {
  .tb-order-item { grid-template-columns: 56px minmax(0, 1fr); padding: 12px; }
  .tb-order-item__image { grid-row: 1; }
  .tb-order-item__price { grid-column: 2; grid-row: auto; text-align: start; }
}

.tb-breadcrumb { padding-block: 16px; }
.tb-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 9px;
  margin: 0;
  padding: 0;
  color: var(--tb-muted);
  font-size: 14px;
  list-style: none;
}

.tb-breadcrumb__list li { min-width: 0; overflow-wrap: anywhere; }
.tb-breadcrumb__separator { margin-inline-end: 7px; font-size: 10px; }
.tb-breadcrumb__list a { color: inherit; }
.tb-breadcrumb__list [aria-current] { color: var(--tb-ink); font-weight: 600; }

.tb-category-banner {
  background: var(--tb-soft);
  border-bottom: 1px solid var(--tb-line);
}

.tb-category-banner .tb-cathero {
  grid-template-columns: minmax(0, 1fr) minmax(0, .72fr);
  padding-bottom: 22px;
}

.tb-category-banner .tb-cathero--text,
.tb-catlayout--wide { grid-template-columns: minmax(0, 1fr); }

.tb-category-banner h1.tb-cathero__title {
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.tb-cathero__title::after {
  display: block;
  width: clamp(64px, 10vw, 128px);
  height: 8px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--tb-lime);
  content: '';
}

.tb-category-banner .tb-cathero__desc { margin-top: 14px; }
.tb-category-banner .tb-cathero__media {
  justify-self: end;
  width: min(100%, 360px);
  min-height: 0;
  height: clamp(220px, 21vw, 270px);
}

.tb-category-banner .tb-cathero__media img { max-height: 100%; }
.tb-category-banner .tb-chips { margin: 0; padding: 0 0 20px; list-style: none; }
.tb-category-banner .tb-chip { background: rgb(0 0 0 / 6%); }
.tb-category-banner .tb-chip[aria-current] { background: var(--tb-lime); }
.tb-catmain { min-width: 0; }

.tb-product-heading { margin-bottom: 28px; }

#product-info .tb-product-title {
  margin: 0;
  font-family: var(--tb-display);
  font-size: clamp(25px, 3.1vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.tb-product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 3vw, 32px);
}

.tb-product-gallery {
  display: flex;
  align-items: start;
  gap: 16px;
  position: sticky;
  top: 96px;
  min-width: 0;
}

.tb-product-gallery__main {
  display: grid;
  flex: 1;
  min-width: 0;
  place-items: center;
  aspect-ratio: 1;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  background: #fff;
  overflow: hidden;
}

.tb-product-gallery__main img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.tb-product-gallery__placeholder {
  color: var(--tb-muted);
  background: var(--tb-soft);
  font-size: 26px;
}

.tb-product-gallery__thumbs {
  display: grid;
  flex: 0 0 80px;
  gap: 10px;
}

.tb-product-gallery__thumbs button {
  width: 100%;
  aspect-ratio: 1;
  padding: 4px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  background: #fff;
}

.tb-product-gallery__thumbs button[aria-pressed="true"] {
  border-color: var(--tb-selection-line);
  box-shadow: inset 0 0 0 1px var(--tb-selection-line);
}

.tb-product-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tb-product-details { min-width: 0; }

.tb-product-deal {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  margin-bottom: 12px;
  padding: 4px 12px;
  color: #912b33;
  background: #fbe4e7;
  font-size: 13px;
  font-weight: 800;
}

.tb-product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  margin-top: 10px;
  font-size: 14px;
}

.tb-product-rating__stars {
  display: inline-flex;
  gap: 3px;
  color: #6b930c;
}

.tb-product-rating a { color: var(--tb-muted); }
.tb-product-options .form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tb-product-options .form-select,
.tb-product-options .form-control {
  min-height: 42px;
  border-color: var(--tb-line);
  background-color: #f8f9fa;
}

.tb-product-options .is-invalid { border-color: var(--bs-danger); }

.tb-product-options__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tb-product-option {
  position: relative;
  margin: 0;
  padding: 0;
}

.tb-product-option .form-check-input {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.tb-product-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--tb-line);
  border-radius: 999px;
  padding: 7px 15px;
  background: #fff;
  cursor: pointer;
}

.tb-product-option :checked + label {
  border-color: var(--tb-selection-line);
  box-shadow: inset 0 0 0 1px var(--tb-selection-line);
  background: var(--tb-selection);
}

.tb-product-option :focus-visible + label { outline: 2px solid var(--tb-ink); outline-offset: 2px; }
.tb-product-option img { width: 36px; height: 36px; object-fit: contain; }
.tb-product-options__choices.is-invalid .tb-product-option label { border-color: var(--bs-danger); }

.tb-product-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 12px;
  border-top: 1px solid var(--tb-line);
  margin-top: 20px;
  padding-top: 16px;
}

.tb-product-facts dd { margin: 2px 0 0; color: var(--tb-muted); overflow-wrap: anywhere; }
.tb-product-facts dd a { color: inherit; text-decoration: underline; }

.tb-product-offer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  color: var(--tb-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tb-product-share {
  flex-shrink: 0;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--tb-ink);
  background: transparent;
}

.tb-product-share-status {
  position: absolute;
  z-index: 1;
  inset-inline-end: 0;
  top: 100%;
  border: 1px solid var(--tb-line);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
}

.tb-product-buy {
  padding: clamp(16px, 1.6vw, 24px);
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  background: #fff;
}

.tb-product-stock { margin: 0; color: var(--tb-muted); font-weight: 700; }
.tb-product-stock--available { color: var(--tb-ink); }
.tb-product-stock--available span { color: var(--tb-lime-dark); }
.tb-product-stock span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-end: 7px;
  border-radius: 50%;
  background: currentColor;
}

.tb-product-price {
  margin: 10px 0 14px;
  color: var(--tb-muted);
}

.tb-product-price__amount { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.tb-product-price .price-new {
  color: var(--tb-ink);
  font-family: var(--tb-display);
  font-size: clamp(28px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -.04em;
}
.tb-product-price__amount .price-old { color: var(--tb-muted); font-size: 15px; }
.tb-product-price__amount .tb-product-deal { margin: 0; }
.tb-product-buy__actions,
.tb-product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tb-product-buy__actions {
  position: relative;
  margin-top: 14px;
}

.tb-product-buy__actions .btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  font-size: 17px;
}

.tb-product-buy__error:empty { margin: 0; }
.tb-product-buy__error { margin: 10px 0 0; color: var(--bs-danger); }

.tb-product-terms {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--tb-line);
  list-style: none;
  color: var(--tb-muted);
  font-size: 14px;
  line-height: 1.5;
}

.tb-product-terms li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
}

.tb-product-terms a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #aeb3ac;
  text-underline-offset: 3px;
}

.tb-product-buy__reward { border-top: 1px solid var(--tb-line); margin: 12px 0 0; padding-top: 12px; color: var(--tb-muted); }
.tb-product-information { margin: 42px 0 32px; }

.tb-product-tabs {
  --bs-nav-tabs-link-hover-border-color: transparent transparent var(--tb-line-hover);
  flex-wrap: nowrap;
  gap: clamp(14px, 2.5vw, 32px);
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
}

.tb-product-tabs .nav-link {
  border: 0;
  border-bottom: 3px solid transparent;
  margin: 0;
  padding: 12px 4px 10px;
  color: var(--tb-muted);
  font-weight: 700;
  white-space: nowrap;
}

.tb-product-tabs .nav-link.active { border-bottom-color: var(--tb-lime); color: var(--tb-ink); }
.tb-product-tabs .nav-link:focus-visible { outline-offset: -2px; }

.tb-product-panels { padding-top: 24px; }

.tb-product-description-layout--with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
}

.tb-product-description__image {
  display: block;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 3;
  padding: 16px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  object-fit: contain;
}

.tb-product-panels h2 {
  margin: 0 0 18px;
  color: var(--tb-ink);
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 800;
}

.tb-product-description {
  max-width: 85ch;
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.tb-product-description p { margin-bottom: 1em; }
.tb-product-description img { max-width: 100%; height: auto; border-radius: 10px; }
.tb-product-description table { display: block; max-width: 100%; overflow-x: auto; }
.tb-product-description a { color: inherit; text-decoration: underline; }

.tb-product-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; color: var(--tb-muted); }
.tb-product-tags a { border-radius: 999px; padding: 4px 10px; color: var(--tb-ink); background: var(--tb-soft); }

.tb-product-specs { display: grid; gap: 22px; max-width: 680px; }
.tb-product-specs h3,
.tb-review-form h3 { margin: 0 0 12px; color: var(--tb-ink); font-size: 17px; font-weight: 800; }
.tb-product-specs dl { margin: 0; border-block: 1px solid var(--tb-line); }
.tb-product-specs dl > div {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 8px 18px;
  padding: 12px 0;
  overflow-wrap: anywhere;
}

.tb-product-specs dl > div + div { border-top: 1px solid var(--tb-line); }
.tb-product-specs dt { color: var(--tb-muted); font-weight: 600; }
.tb-product-specs dd { margin: 0; text-align: end; font-weight: 600; }

.tb-product-reviews {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 3vw, 36px);
  max-width: 1100px;
}

.tb-review-list { display: grid; gap: 12px; list-style: none; margin: 0 0 14px; padding: 0; }
.tb-review,
.tb-review-form,
.tb-review-empty { border: 1px solid var(--tb-line); border-radius: 12px; padding: clamp(14px, 2vw, 22px); }
.tb-review__meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.tb-review__meta span,
.tb-review-empty { color: var(--tb-muted); }
.tb-review__score { margin: 6px 0 10px; color: #6b930c; }
.tb-review__score i + i { margin-inline-start: 3px; }
.tb-review p,
.tb-review-empty p,
.tb-review-form p { margin: 0; overflow-wrap: anywhere; }
.tb-review-empty { display: flex; align-items: center; gap: 10px; }
.tb-review-form { background: var(--tb-soft); }
.tb-review-form .form-label { font-weight: 700; }
.tb-review-form legend { float: none; width: auto; border: 0; padding: 0; margin-bottom: 6px; }
.tb-review-form .btn-primary { min-height: 42px; font-weight: 700; }

.tb-review-stars { display: flex; flex-wrap: wrap; gap: 4px; position: relative; }
.tb-review-stars input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.tb-review-stars label {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #7c8379;
  cursor: pointer;
  font-size: 18px;
}

.tb-review-stars input:checked + label,
.tb-review-stars label:has(~ input:checked) { color: #446500; background: var(--tb-selection); }
.tb-review-stars input:focus-visible + label { outline: 2px solid var(--tb-ink); outline-offset: 2px; }

@media (max-width: 991px) {
  .tb-order-layout { grid-template-columns: minmax(0, 1fr); }
  .tb-category-banner .tb-cathero { grid-template-columns: minmax(0, 1fr); }
  .tb-category-banner .tb-cathero__media { display: none; }
  .tb-product-layout,
  .tb-product-description-layout--with-image { grid-template-columns: minmax(0, 1fr); }
  .tb-product-gallery { position: static; flex-direction: column-reverse; gap: 12px; }
  .tb-product-gallery__main { width: 100%; }
  .tb-product-gallery__thumbs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    flex-basis: auto;
    padding: 4px;
  }
  .tb-product-gallery__thumbs button { flex: 0 0 64px; }
}

@media (max-width: 640px) {
  .tb-product-reviews { grid-template-columns: minmax(0, 1fr); }
  .tb-product-information { margin-top: 32px; }
}

/* Storefront interaction states */
@media (prefers-reduced-motion: no-preference) {
  .tb-body :where(.tb-btn, .tb-catalog__item, .tb-icon, .tb-cart__btn, .tb-cart__remove, .tb-search .btn,
    .tb-card, .tb-cat, .tb-card__fav button, a.tb-chip, .tb-sidelist a, .tb-viewtoggle button,
    .tb-product-share, a.tb-product-gallery__main, .tb-product-gallery__thumbs button,
    .tb-product-option label, .tb-review-stars label) {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  }
}

.tb-body :where(.tb-catalog__btn, .tb-cart__btn)[aria-expanded="true"] {
  background-color: var(--tb-selection);
}

.tb-catalog__btn[aria-expanded="true"] {
  border-color: var(--tb-selection-line);
}

a.tb-product-gallery__main { cursor: zoom-in; }

@media (hover: hover) {
  .tb-body :where(.tb-btn--ghost, .tb-catalog__btn[aria-expanded="false"], .tb-catalog__item,
    .tb-icon, .tb-cart__btn[aria-expanded="false"], .tb-search .btn, .tb-card__fav button,
    a.tb-chip, .tb-sidelist a:not(.is-active), .tb-viewtoggle button:not(.is-active),
    .tb-product-share, .accordion-button.collapsed, .list-group-item[href]:not(.active, .disabled),
    .pagination a.page-link, .product-thumb .button button):not(:disabled):hover {
    background-color: var(--tb-hover);
    color: var(--tb-ink);
  }

  .tb-body .tb-btn--lime:not(:disabled):hover {
    background-color: var(--tb-lime-dark);
    color: var(--tb-ink);
  }

  .tb-body :where(.tb-cat, a.tb-product-gallery__main,
    .tb-product-gallery__thumbs button:not([aria-pressed="true"]),
    .tb-product-option input:not(:checked, :disabled) + label):hover,
  .tb-card:has(:is(.tb-card__media, .tb-card__name a):hover) {
    border-color: var(--tb-line-hover);
  }

  .tb-body :where(.tb-link, .tb-cart__name, .tb-card__name a, .tb-footer a:not(.tb-logo),
    .tb-breadcrumb__list a, .tb-product-rating a, .tb-product-terms a):hover {
    color: var(--tb-ink);
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
  }

  .tb-info-copy__contacts a:not(.tb-btn):hover { color: var(--tb-muted); }
  .tb-cart__remove:hover { color: #952c36; background-color: #fbecee; }
  .tb-review-stars input:not(:checked, :disabled) + label:not(:has(~ input:checked)):hover {
    color: var(--tb-ink);
    background-color: var(--tb-hover);
  }
}

.tb-body :where(.tb-btn--ghost, .tb-catalog__btn, .tb-catalog__item, .tb-icon, .tb-cart__btn,
  .tb-search .btn, .tb-card__fav button, a.tb-chip, .tb-sidelist a:not(.is-active),
  .tb-viewtoggle button:not(.is-active), .tb-product-share, .accordion-button,
  .list-group-item[href]:not(.active, .disabled), .pagination a.page-link,
  .product-thumb .button button,
  .tb-review-stars input:not(:checked, :disabled) + label:not(:has(~ input:checked))):not(:disabled):active {
  background-color: var(--tb-pressed);
  color: var(--tb-ink);
}

.tb-body .tb-btn--lime:not(:disabled):active { background-color: var(--tb-lime-pressed); }
.tb-cart__remove:active { color: #952c36; background-color: #f6dce0; }
.tb-product-tabs .nav-link:not(.active):active { border-bottom-color: var(--tb-muted); }
.tb-body :where(.tb-cat, a.tb-product-gallery__main,
  .tb-product-gallery__thumbs button:not([aria-pressed="true"]),
  .tb-product-option input:not(:checked, :disabled) + label):active { border-color: var(--tb-muted); }

.tb-body .mfp-wrap :is(.mfp-close, .mfp-arrow):focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.tb-body .mfp-wrap .mfp-close:active { top: 0; opacity: .8; }
.tb-body .mfp-wrap .mfp-arrow:active { margin-top: -55px; opacity: .8; }

@media (hover: none) {
  .tb-body .btn {
    --bs-btn-hover-bg: var(--bs-btn-bg);
    --bs-btn-hover-border-color: var(--bs-btn-border-color);
    --bs-btn-hover-color: var(--bs-btn-color);
  }
  .tb-body .dropdown-menu { --bs-dropdown-link-hover-bg: transparent; }
}

/* Account dashboard */
.tb-account {
  max-width: 1280px;
}

.tb-account__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.tb-account__side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.tb-account__toggle { display: none; }

.tb-account__profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
}

.tb-account__avatar {
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  height: 56px;
  border-radius: 14px;
  background: var(--tb-lime);
  color: var(--tb-ink);
  font-size: 22px;
}

.tb-account__person {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tb-account__name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.tb-account__meta {
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tb-account__nav {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
}

.tb-account__nav form { margin: 0; }

.tb-account__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--tb-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.tb-account__link > i {
  flex: 0 0 20px;
  width: 20px;
  color: var(--tb-muted);
  font-size: 15px;
  text-align: center;
}

.tb-account__link.is-active {
  background: var(--tb-lime);
  font-weight: 700;
}

.tb-account__link.is-active > i { color: var(--tb-ink); }

.tb-account__count {
  min-width: 26px;
  margin-inline-start: auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tb-soft);
  color: #8a8f86;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.tb-account__link.is-active .tb-account__count {
  background: rgb(0 0 0 / 8%);
  color: var(--tb-ink);
}

.tb-account__sep {
  height: 1px;
  margin: 8px 4px;
  background: var(--tb-line);
}

.tb-acc-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tb-acc-switch__label {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tb-acc-switch__label > i {
  flex: 0 0 20px;
  width: 20px;
  color: var(--tb-muted);
  font-size: 15px;
  text-align: center;
}

.tb-acc-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.tb-acc-switch__track {
  position: relative;
  flex: 0 0 40px;
  height: 24px;
  border-radius: 999px;
  background: #dfe3dd;
}

.tb-acc-switch__track::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
  content: '';
  transition: transform .15s ease;
}

.tb-acc-switch__input:checked + .tb-acc-switch__track { background: var(--tb-lime); }
.tb-acc-switch__input:checked + .tb-acc-switch__track::after { transform: translateX(16px); }
.tb-acc-switch__input:focus-visible + .tb-acc-switch__track { outline: 2px solid var(--tb-ink); outline-offset: 2px; }

.tb-account__main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.tb-acc-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 168px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 22px;
  background: var(--tb-ink);
  color: #fff;
  overflow: hidden;
}

.tb-acc-hero__body {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.tb-acc-hero__title {
  margin: 0 0 8px;
  color: #fff;
}

.tb-acc-hero__text {
  margin: 0;
  color: #c9cdc7;
  font-size: 15px;
  line-height: 1.5;
}

.tb-acc-hero__ring {
  position: absolute;
  top: 50%;
  right: -70px;
  width: clamp(220px, 26vw, 320px);
  aspect-ratio: 1;
  border: 12px solid var(--tb-lime);
  border-radius: 50%;
  transform: translateY(-50%);
}

.tb-acc-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.tb-acc-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--tb-line);
  border-radius: var(--tb-radius);
  background: #fff;
  color: var(--tb-ink);
  text-decoration: none;
}

.tb-acc-tile__icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  height: 44px;
  border-radius: 12px;
  background: var(--tb-soft);
  font-size: 18px;
}

.tb-acc-tile__icon--accent { background: var(--tb-lime); }

.tb-acc-tile__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tb-acc-tile__label {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.tb-acc-tile__meta {
  color: var(--tb-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tb-acc-tile__chev {
  margin-inline-start: auto;
  color: var(--tb-muted);
  font-size: 12px;
}

.tb-acc-section {
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--tb-line);
  border-radius: 22px;
}

.tb-acc-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.tb-acc-section__head h2 {
  margin: 0;
  font-family: var(--tb-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 600;
  letter-spacing: -.03em;
}

.tb-acc-orders {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb-acc-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid var(--tb-line);
  border-radius: 16px;
}

.tb-acc-order__media {
  display: flex;
  align-items: center;
}

.tb-acc-order__thumb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 4px;
  border-radius: 10px;
  background: var(--tb-soft);
  overflow: hidden;
}

.tb-acc-order__thumb + .tb-acc-order__thumb,
.tb-acc-order__thumb + .tb-acc-order__more { margin-inline-start: -12px; }

.tb-acc-order__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tb-acc-order__thumb--empty { color: #9aa0a6; font-size: 15px; }

.tb-acc-order__more {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--tb-soft);
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 700;
}

.tb-acc-order__info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tb-acc-order__id {
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.tb-acc-order__meta {
  color: var(--tb-muted);
  font-size: 12.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tb-acc-order__status {
  justify-self: end;
  max-width: 100%;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tb-soft);
  color: var(--tb-ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.tb-acc-order__total {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.tb-acc-order__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--tb-soft);
  color: var(--tb-ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tb-acc-wish {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 12px;
}

.tb-acc-wish__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--tb-line);
  border-radius: 16px;
}

.tb-acc-wish__media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 10px;
  border-radius: 12px;
  color: var(--tb-muted);
  overflow: hidden;
}

.tb-acc-wish__media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tb-acc-wish__name {
  min-height: 38px;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.tb-acc-wish__name a {
  color: var(--tb-ink);
  text-decoration: none;
}

.tb-acc-wish__rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--tb-muted);
  font-size: 12px;
}

.tb-acc-wish__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.tb-acc-wish__foot form { margin: 0; }

.tb-acc-wish__price {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.tb-acc-wish__price-old {
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: line-through;
}

.tb-acc-wish__cart {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: var(--tb-lime);
  color: var(--tb-ink);
  font-size: 16px;
  cursor: pointer;
}

.tb-acc-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border-radius: 14px;
  background: var(--tb-soft);
  color: var(--tb-muted);
  font-size: 14px;
}

.tb-acc-empty > a { margin-inline-start: auto; }

@media (hover: hover) {
  .tb-body .tb-account__link:not(.is-active):hover,
  .tb-body .tb-acc-switch:hover,
  .tb-body .tb-acc-order__btn:hover {
    background-color: var(--tb-hover);
    color: var(--tb-ink);
  }

  .tb-body :is(.tb-acc-tile, .tb-acc-wish__card, .tb-acc-order, .tb-account__profile):hover {
    border-color: var(--tb-line-hover);
  }

  .tb-body .tb-acc-wish__name a:hover,
  .tb-body .tb-acc-empty a:hover {
    color: var(--tb-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .tb-body .tb-acc-wish__cart:hover { background-color: var(--tb-lime-dark); }
}

.tb-body .tb-account__link:not(.is-active):active,
.tb-body .tb-acc-switch:active,
.tb-body .tb-acc-order__btn:active { background-color: var(--tb-pressed); }

.tb-body .tb-acc-wish__cart:active { background-color: var(--tb-lime-pressed); }

@media (max-width: 992px) {
  .tb-account__layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tb-account__side {
    position: static;
    gap: 0;
    border: 1px solid var(--tb-line);
    border-radius: var(--tb-radius);
    overflow: hidden;
  }
  .tb-account__profile { display: none; }
  .tb-account__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 6px 12px;
    border: 0;
    background: #fff;
    color: var(--tb-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
  }
  .tb-account__toggle .tb-account__avatar {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
  }
  .tb-account__toggle-text {
    display: grid;
    flex: 1 1 auto;
    gap: 1px;
    min-width: 0;
  }
  .tb-account__toggle .tb-account__name {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tb-account__toggle-section {
    color: var(--tb-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tb-account__toggle-icon {
    flex: 0 0 auto;
    color: var(--tb-muted);
    font-size: 13px;
    transition: transform .15s ease;
  }
  .tb-account__side.is-open .tb-account__toggle {
    border-bottom: 1px solid var(--tb-line);
  }
  .tb-account__side.is-open .tb-account__toggle-icon { transform: rotate(180deg); }
  .tb-account__nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 0;
  }
  .tb-account__side.is-open .tb-account__nav { display: grid; }
  .tb-account__sep,
  .tb-account__nav form { grid-column: 1 / -1; }
}

@media (max-width: 576px) {
  .tb-account__layout { gap: 14px; }
}

@media (max-width: 768px) {
  .tb-acc-order {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
  }
  .tb-acc-order__media,
  .tb-acc-order__info { grid-row: 1; }
  .tb-acc-order__status {
    grid-column: 2;
    justify-self: start;
  }
  .tb-acc-order__total { grid-column: 2; }
  .tb-acc-order__btn { grid-column: 1 / -1; justify-content: center; }
}

@media (max-width: 576px) {
  .tb-account { padding-inline: 16px; }
  .tb-acc-hero { min-height: 0; padding: 20px; }
  .tb-acc-hero__ring { right: -120px; opacity: .55; }
  .tb-acc-hero__text { font-size: 13.5px; }
  .tb-acc-order { padding: 10px; }
  .tb-acc-order__thumb,
  .tb-acc-order__more { width: 40px; height: 40px; }
}

/* Account subpages */
.tb-acc-pagehead h1 { margin: 0; }

.tb-acc-section__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.tb-acc-section__results {
  color: var(--tb-muted);
  font-size: 13px;
}

.tb-acc-foot { display: flex; }

.tb-acc-wish__media-wrap { position: relative; }

.tb-acc-wish__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--tb-ink);
  font-size: 14px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 12%);
}

@media (hover: hover) {
  .tb-body .tb-acc-wish__remove:hover { background: var(--tb-lime); }
}

.tb-body .tb-acc-wish__remove:active { background: var(--tb-lime-pressed); }

@media (max-width: 576px) {
  .tb-acc-foot .tb-btn { width: 100%; justify-content: center; }
}

/* Order detail */
.tb-order-pagehead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.tb-order-pagehead h1 { margin: 0; }

.tb-order-details { display: grid; gap: 18px; }

.tb-order-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tb-order-fact {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
}

.tb-order-fact__label {
  color: var(--tb-muted);
  font-size: 12px;
}

.tb-order-fact strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tb-order-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tb-order-address {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tb-order-address h2,
.tb-order-comment h2 {
  margin: 0 0 7px;
  color: var(--tb-ink);
  font-size: 14px;
  font-weight: 800;
}

.tb-order-address--method { background: var(--tb-soft); }

.tb-order-products__list {
  display: grid;
  gap: 10px;
}

.tb-order-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px 20px;
  padding: 16px;
  border: 1px solid var(--tb-line);
  border-radius: 16px;
}

.tb-order-product__main { min-width: 0; }

.tb-order-product__name {
  color: var(--tb-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tb-order-product__meta {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0;
  color: var(--tb-muted);
  font-size: 12px;
  list-style: none;
}

.tb-order-product__meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.tb-order-product__numbers {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 18px;
  margin: 0;
}

.tb-order-product__numbers > div {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.tb-order-product__numbers dt {
  color: var(--tb-muted);
  font-size: 11px;
  font-weight: 600;
}

.tb-order-product__numbers dd {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tb-order-product__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  grid-column: 1 / -1;
  border-top: 1px solid var(--tb-line);
  padding-top: 12px;
}

.tb-order-product__actions form { margin: 0; }
.tb-order-product__actions .tb-btn { min-height: 40px; padding: 9px 13px; font-size: 13px; }

.tb-order-totals {
  display: grid;
  gap: 0;
  max-width: 420px;
  margin: 18px 0 0 auto;
}

.tb-order-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--tb-line);
}

.tb-order-totals > div:last-child {
  border-bottom: 0;
  padding-top: 13px;
  font-size: 16px;
  font-weight: 800;
}

.tb-order-totals dt { color: var(--tb-muted); }
.tb-order-totals dd { margin: 0; font-weight: 700; white-space: nowrap; }
.tb-order-comment > div { color: var(--tb-muted); font-size: 14px; line-height: 1.5; }

.tb-order-history__list {
  display: grid;
  gap: 8px;
}

.tb-order-history__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
}

.tb-order-history__date { color: var(--tb-muted); font-size: 13px; }
.tb-order-history__item p { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.5; }
.tb-order-history__item .tb-acc-order__status { justify-self: end; }

@media (max-width: 768px) {
  .tb-order-product { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tb-order-product__numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
  .tb-order-product__numbers > div { justify-items: start; }
  .tb-order-product__actions { grid-column: auto; }
}

@media (max-width: 576px) {
  .tb-order-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-order-addresses { grid-template-columns: minmax(0, 1fr); }
  .tb-order-product { padding: 12px; }
  .tb-order-product__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-order-product__actions .tb-btn { justify-content: center; width: 100%; padding-inline: 8px; }
  .tb-order-totals { width: 100%; }
}

/* Account forms */
.tb-acc-form {
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.tb-acc-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tb-acc-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tb-acc-field > label,
.tb-acc-field__label {
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 700;
}

.tb-acc-field.required > label::after,
.tb-acc-field.required > .tb-acc-field__label::after {
  content: " *";
  color: var(--tb-ink);
}

.tb-acc-field .invalid-feedback { margin: 0; font-size: 12px; }
.tb-acc-field__choices { display: grid; gap: 6px; }
.tb-acc-field__choices .form-check { margin: 0; }

.tb-acc-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 576px) {
  .tb-acc-form__grid { grid-template-columns: minmax(0, 1fr); }
  .tb-acc-form__actions .tb-btn { flex: 1 1 auto; justify-content: center; }
}

/* Account addresses */
.tb-acc-pagehead--split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tb-acc-addresses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.tb-acc-address {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: #fff;
}

.tb-acc-address__body {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.55;
}

.tb-acc-address__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--tb-line);
}

.tb-acc-address__badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--tb-selection);
  color: var(--tb-selection-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.tb-acc-address__actions {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}

.tb-acc-address__action {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.tb-acc-address__delete { color: #b3261e; }
.tb-acc-address__delete:hover { color: #8c1d18; background: #fdecea; border-color: #f5c6c2; }

.tb-acc-field__choices--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 576px) {
  .tb-acc-pagehead--split .tb-btn { width: 100%; justify-content: center; }
  .tb-acc-address__action { flex: 1 1 auto; justify-content: center; }
}


/* Account returns */
.tb-return-list {
  display: grid;
  gap: 10px;
}

.tb-return-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: #fff;
}

.tb-return-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tb-return-card__head strong { font-size: 15px; overflow-wrap: anywhere; }

.tb-return-card__facts,
.tb-return-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.tb-return-card__facts > div,
.tb-return-facts > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
}

.tb-return-card__facts dt,
.tb-return-facts dt {
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 600;
}

.tb-return-card__facts dd,
.tb-return-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tb-return-form-section { display: grid; gap: 16px; }

.tb-return-form__description { margin: 0; color: var(--tb-muted); }

.tb-return-form { max-width: 720px; }

.tb-return-form__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tb-return-form__group legend {
  margin-bottom: 14px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--tb-line);
  color: var(--tb-ink);
  font-size: 15px;
  font-weight: 800;
}

.tb-return-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

.tb-return-form__field--wide { grid-column: 1 / -1; }

.tb-return-form__agree {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 10px;
  color: var(--tb-muted);
  font-size: 13px;
}

.tb-return-form__agree .form-check-input { flex: 0 0 auto; margin: 0; }
.tb-return-form__agree .form-check-label { margin: 0; }

.tb-return-details { display: grid; gap: 18px; }

.tb-return-facts--extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tb-return-product h2,
.tb-return-comment h2 {
  margin: 0 0 12px;
  color: var(--tb-ink);
  font-size: 15px;
  font-weight: 800;
}

.tb-return-product .table,
.tb-return-history .table { margin-bottom: 0; }

.tb-return-comment {
  padding: 14px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  color: var(--tb-muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tb-return-comment h2 { margin-bottom: 6px; }

@media (max-width: 768px) {
  .tb-return-facts--extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
  .tb-return-card { padding: 12px; }
  .tb-return-card__facts,
  .tb-return-facts,
  .tb-return-facts--extra,
  .tb-return-form__fields { grid-template-columns: minmax(0, 1fr); }
  .tb-return-form__field--wide { grid-column: auto; }
  .tb-return-form__actions .tb-btn { flex: 1 1 auto; justify-content: center; }
}

.tb-return-form__reasons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
}

@media (max-width: 576px) {
  .tb-return-form__reasons { grid-template-columns: minmax(0, 1fr); }
}

.tb-return-history__list { display: grid; gap: 8px; }

.tb-return-history__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
}

.tb-return-history__date { color: var(--tb-muted); font-size: 13px; }
.tb-return-history__item p { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.5; }
.tb-return-history__item .tb-acc-order__status { justify-self: end; }

@media (max-width: 576px) {
  .tb-return-history__item { grid-template-columns: minmax(0, 1fr); }
  .tb-return-history__item .tb-acc-order__status { justify-self: start; }
}

.tb-return-card > .tb-btn { justify-self: start; }

/* Account return success */
.tb-return-success {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 720px;
}

.tb-return-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tb-lime);
  color: var(--tb-ink);
  font-size: 24px;
}

.tb-return-success__message {
  color: var(--tb-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tb-return-success__message p { margin: 0 0 10px; }
.tb-return-success__message p:last-child { margin-bottom: 0; }

.tb-return-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.tb-account__layout--single { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 576px) {
  .tb-return-success { gap: 14px; }
  .tb-return-success__actions .tb-btn { flex: 1 1 auto; justify-content: center; }
}

/* Account subscriptions, downloads and transactions */
.tb-btn--danger {
  border-color: #f0c9c5;
  background: #fff;
  color: #b3261e;
}

.tb-body .tb-btn--danger:not(:disabled):hover { background: #fdecea; border-color: #e8b4ae; color: #8c1d18; }

.tb-sub-list,
.tb-download-list,
.tb-txn-list {
  display: grid;
  gap: 10px;
}

.tb-sub-card,
.tb-download-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: #fff;
}

.tb-sub-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tb-sub-card__head strong { font-size: 15px; overflow-wrap: anywhere; }

.tb-sub-card__plan {
  margin: 0;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tb-sub-card__facts,
.tb-sub-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.tb-sub-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tb-sub-card__facts > div,
.tb-sub-facts > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
}

.tb-sub-card__facts dt,
.tb-sub-facts dt {
  color: var(--tb-muted);
  font-size: 12px;
  font-weight: 600;
}

.tb-sub-card__facts dd,
.tb-sub-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.tb-sub-card > .tb-btn { justify-self: start; }

.tb-sub-details { display: grid; gap: 16px; }

.tb-sub-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tb-sub-address {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
  color: var(--tb-muted);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.tb-sub-address h2 {
  margin: 0 0 7px;
  color: var(--tb-ink);
  font-size: 14px;
  font-weight: 800;
}

.tb-sub-address--method { background: var(--tb-soft); }

.tb-sub-plan { margin: 0; font-size: 14px; line-height: 1.55; }

.tb-sub-products { display: grid; gap: 10px; }

.tb-sub-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px 20px;
  padding: 14px 16px;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
}

.tb-sub-product__main { min-width: 0; }

.tb-sub-product__name {
  color: var(--tb-ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tb-sub-product__meta {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0;
  color: var(--tb-muted);
  font-size: 12px;
  list-style: none;
}

.tb-sub-product__numbers {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px 18px;
  margin: 0;
}

.tb-sub-product__numbers > div { display: grid; justify-items: end; gap: 4px; }
.tb-sub-product__numbers dt { color: var(--tb-muted); font-size: 11px; font-weight: 600; }
.tb-sub-product__numbers dd { margin: 0; font-size: 13px; font-weight: 800; white-space: nowrap; }

.tb-sub-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tb-sub-history__list { display: grid; gap: 8px; }

.tb-sub-history__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
}

.tb-sub-history__date { color: var(--tb-muted); font-size: 13px; }
.tb-sub-history__item p { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.5; }
.tb-sub-history__item .tb-acc-order__status { justify-self: end; }

.tb-sub-orders__table .table { margin-bottom: 0; }

.tb-download-card__main { min-width: 0; }

.tb-download-card__name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tb-download-card__meta {
  display: grid;
  gap: 4px;
  margin: 7px 0 0;
  padding: 0;
  color: var(--tb-muted);
  font-size: 12px;
  list-style: none;
}

.tb-download-card > .tb-btn { justify-self: start; }

.tb-txn-section { display: grid; gap: 16px; }

.tb-txn-balance {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: var(--tb-soft);
}

.tb-txn-balance__label { color: var(--tb-muted); font-size: 12px; font-weight: 600; }
.tb-txn-balance__value { font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }

.tb-txn-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
}

.tb-txn-item__main { display: grid; gap: 4px; min-width: 0; }
.tb-txn-item__date { color: var(--tb-muted); font-size: 12px; }
.tb-txn-item__description { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.tb-txn-item__amount { font-size: 15px; white-space: nowrap; }

@media (max-width: 992px) {
  .tb-sub-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .tb-sub-product { grid-template-columns: minmax(0, 1fr); }
  .tb-sub-product__numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-sub-product__numbers > div { justify-items: start; }
}

@media (max-width: 576px) {
  .tb-sub-card,
  .tb-download-card,
  .tb-txn-item { padding: 12px; }
  .tb-sub-card__facts,
  .tb-sub-facts,
  .tb-sub-addresses { grid-template-columns: minmax(0, 1fr); }
  .tb-sub-card > .tb-btn,
  .tb-download-card > .tb-btn { width: 100%; justify-content: center; }
  .tb-sub-product__numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-sub-history__item { grid-template-columns: minmax(0, 1fr); }
  .tb-sub-history__item .tb-acc-order__status { justify-self: start; }
  .tb-txn-item { grid-template-columns: minmax(0, 1fr); }
  .tb-txn-item__amount { justify-self: start; }
  .tb-sub-actions .tb-btn { width: 100%; justify-content: center; }
}

.tb-sub-orders__list { display: grid; gap: 8px; }

.tb-sub-order {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--tb-line);
  border-radius: 12px;
}

.tb-sub-order__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tb-sub-order__id { color: var(--tb-ink); font-size: 15px; font-weight: 800; }

.tb-sub-order__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.tb-sub-order__facts dt { color: var(--tb-muted); font-size: 11px; font-weight: 600; }
.tb-sub-order__facts dd { margin: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 576px) {
  .tb-sub-order { padding: 12px; }
  .tb-sub-order__facts { grid-template-columns: minmax(0, 1fr); }
}

/* Account auth */
.tb-acc-section--narrow { max-width: 620px; }

.tb-acc-section > .tb-acc-auth__lead:first-child { margin-bottom: 18px; }

.tb-acc-auth__lead {
  margin: 0;
  color: var(--tb-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tb-acc-auth__lead a { color: var(--tb-ink); text-decoration: underline; text-underline-offset: 3px; }

.tb-acc-form--wide { max-width: 760px; }

.tb-acc-form__group {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  gap: 14px;
}

.tb-acc-form__group legend {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--tb-line);
  color: var(--tb-ink);
  font-size: 15px;
  font-weight: 800;
}

.tb-acc-form__agree {
  display: flex;
  flex: 1 1 100%;
  align-items: center;
  gap: 10px;
  color: var(--tb-muted);
  font-size: 13px;
}

.tb-acc-form__agree .form-check-input { flex: 0 0 auto; margin: 0; }
.tb-acc-form__agree .form-check-label { margin: 0; }
.tb-acc-form__agree a { color: var(--tb-ink); text-decoration: underline; text-underline-offset: 3px; }

.tb-acc-form__group .tb-acc-switch { max-width: 420px; }

.tb-acc-switch--lg {
  padding: 12px 4px;
  font-size: 15px;
}

@media (max-width: 576px) {
  .tb-acc-switch--lg { padding: 12px 2px; }
}

/* Account reward, tracking and payment methods */
.tb-acc-field__help {
  color: var(--tb-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tb-acc-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tb-acc-inline > .form-control {
  flex: 1 1 200px;
  min-width: 0;
}

@media (max-width: 576px) {
  .tb-acc-inline > .tb-btn { flex: 1 1 100%; justify-content: center; }
}

/* Login modal */
.tb-login-modal .modal-content {
  padding: 4px;
  border: 0;
  border-radius: 20px;
}

.tb-login-modal .modal-header {
  padding: 18px 22px 4px;
  border-bottom: 0;
}

.tb-login-modal .modal-title {
  font-family: var(--tb-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.tb-login-modal .modal-body {
  display: grid;
  gap: 16px;
  padding: 10px 22px 22px;
}

.tb-login-modal .alert {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.tb-login-modal #form-login {
  display: grid;
  gap: 12px;
}

.tb-login-modal .tb-acc-form__actions { margin-top: 2px; }
.tb-login-modal .tb-acc-form__actions .tb-btn { width: 100%; }

.tb-login-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
}

.tb-login-modal__links a {
  color: var(--tb-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .tb-body .tb-login-modal__links a:hover { color: var(--tb-ink); }
}

@media (max-width: 576px) {
  .tb-login-modal .modal-dialog { margin: 12px; }
  .tb-login-modal .modal-title { font-size: 20px; }
}

/* Alerts */
#alert {
  position: fixed;
  top: var(--tb-alert-top, 88px);
  right: 24px;
  left: auto;
  width: min(420px, calc(100vw - 32px));
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1080;
  pointer-events: none;
}

#alert .alert {
  margin: 0;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(23, 23, 23, .10);
}

.alert {
  --bs-alert-padding-x: 16px;
  --bs-alert-padding-y: 14px;
  --bs-alert-border-radius: 14px;
  position: relative;
  margin-bottom: 16px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.45;
  border-width: 1px;
  box-shadow: 0 6px 18px rgba(23, 23, 23, .06);
  overflow-wrap: anywhere;
}

.alert > i:first-child {
  position: absolute;
  left: 16px;
  top: 14px;
  font-size: 15px;
  line-height: 1.45;
}

.alert:has(> i:first-child) {
  padding-left: 44px;
}

.alert-primary,
.alert-secondary,
.alert-light,
.alert-dark {
  --bs-alert-color: var(--tb-ink);
  --bs-alert-bg: var(--tb-soft);
  --bs-alert-border-color: var(--tb-line);
}

.alert-success {
  --bs-alert-color: #33420c;
  --bs-alert-bg: #f3fbe1;
  --bs-alert-border-color: #dcecbd;
}

.alert-danger {
  --bs-alert-color: #7d2b2b;
  --bs-alert-bg: #fdf3f3;
  --bs-alert-border-color: #f4dcdc;
}

.alert-warning {
  --bs-alert-color: #74531a;
  --bs-alert-bg: #fff8e8;
  --bs-alert-border-color: #f2e3c2;
}

.alert-info {
  --bs-alert-color: #2c4a78;
  --bs-alert-bg: #f3f6fc;
  --bs-alert-border-color: #dde6f5;
}

.alert-dismissible {
  padding-right: 46px;
}

.alert .btn-close {
  --bs-btn-close-opacity: 1;
  --bs-btn-close-hover-opacity: 1;
  --bs-btn-close-focus-shadow: none;
  width: 26px;
  height: 26px;
  padding: 0;
  top: 50%;
  right: 12px;
  background-size: 12px;
  background-color: transparent;
  border-radius: 8px;
  transform: translateY(-50%);
  transition: background-color .15s ease;
}

@media (hover: hover) {
  .alert .btn-close:hover {
    background-color: rgba(23, 23, 23, .07);
  }
}

@media (max-width: 992px) and (min-width: 576px) {
  /* The header wraps to two rows here; keep a fallback for when the script has not run. */
  #alert { top: var(--tb-alert-top, 153px); }
}

@media (max-width: 575.98px) {
  #alert {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    width: auto;
  }
}

/* Checkout (one page, Nova Poshta) */
#checkout-checkout.tb-co { padding-block: 24px 48px; }

.tb-co__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.tb-co__back { width: 44px; height: 44px; border-radius: 12px; background: var(--tb-soft); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--tb-ink); flex: 0 0 auto; }
.tb-co__title h1 { margin: 0; font-size: clamp(24px, 3vw, 36px); }
.tb-co__title p { margin: 2px 0 0; color: var(--tb-muted); font-size: 14px; }
.tb-steps { list-style: none; display: flex; align-items: center; gap: 14px; margin: 0 0 0 auto; padding: 0; color: var(--tb-muted); font-size: 14px; }
.tb-steps li { display: flex; align-items: center; gap: 8px; }
.tb-steps li + li::before { content: ""; display: block; width: 48px; height: 1px; background: var(--tb-line); }
.tb-steps__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--tb-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--tb-ink); }
.tb-steps .is-done .tb-steps__dot, .tb-steps .is-current .tb-steps__dot { background: var(--tb-lime); }
.tb-steps .is-done, .tb-steps .is-current { color: var(--tb-ink); font-weight: 700; }

.tb-co__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 2.5vw, 28px); align-items: start; }
.tb-co__main { display: grid; gap: 16px; }
.tb-co__card { border: 1px solid var(--tb-line); border-radius: var(--tb-radius); background: #fff; padding: clamp(16px, 2vw, 24px); }
.tb-co__card-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 18px; }
.tb-co__label { margin: 0 0 10px; color: var(--tb-muted); font-size: 13px; }
.tb-co__hint { margin: 0; color: var(--tb-muted); }
.tb-co__register fieldset, .tb-co__address fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.tb-co__register legend, .tb-co__address legend { float: none; width: auto; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.tb-contact__name { margin: 0; font-weight: 700; }
.tb-contact__meta { margin: 2px 0 0; color: var(--tb-muted); font-size: 14px; }

.tb-options { display: grid; gap: 10px; }
.tb-option { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid var(--tb-line); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: border-color .15s, background .15s; }
.tb-option:hover { border-color: var(--tb-line-hover); }
.tb-option input { position: absolute; opacity: 0; pointer-events: none; }
.tb-option__body { display: grid; gap: 2px; flex: 1; }
.tb-option__title { font-weight: 700; }
.tb-option__meta { color: var(--tb-muted); font-size: 13px; }
.tb-option__dot { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--tb-line-hover); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tb-option__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.tb-option:has(input:checked) { border-color: var(--tb-selection-line); background: var(--tb-selection); }
.tb-option:has(input:checked) .tb-option__dot { border-color: var(--tb-selection-line); }
.tb-option:has(input:checked) .tb-option__dot::after { background: var(--tb-selection-line); }

.tb-np { margin-top: 14px; display: grid; gap: 12px; }
.tb-np__types { display: inline-flex; gap: 3px; padding: 3px; background: var(--tb-soft); border-radius: 10px; justify-self: start; }
.tb-np__type { border: 0; background: transparent; border-radius: 8px; padding: 8px 14px; font-weight: 600; color: var(--tb-muted); cursor: pointer; }
.tb-np__type.is-active { background: var(--tb-lime); color: var(--tb-ink); }
.tb-np__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
.tb-field { display: grid; gap: 6px; position: relative; }
.tb-field label { font-size: 12px; font-weight: 700; color: var(--tb-muted); }
.tb-np__list { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--tb-line); border-radius: 10px; box-shadow: 0 12px 28px rgba(23, 23, 23, .10); max-height: 220px; overflow: auto; }
.tb-np__list li { padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.tb-np__list li:hover { background: var(--tb-hover); }
.tb-np__empty { color: var(--tb-muted); cursor: default; }
.tb-np__status { margin: 0; color: #c62828; font-size: 13px; }

.tb-co__aside { position: sticky; top: 92px; }
.tb-sum { display: grid; gap: 16px; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); background: #fff; padding: clamp(16px, 2vw, 24px); }
.tb-sum__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tb-sum__head h2 { margin: 0; font-size: 20px; }
.tb-sum__head span { color: var(--tb-muted); font-size: 13px; }
.tb-sum__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.tb-sum__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info price" "thumb qty price"; gap: 2px 12px; align-items: start; }
.tb-sum__thumb { grid-area: thumb; aspect-ratio: 1; border-radius: 10px; background: var(--tb-soft); overflow: hidden; }
.tb-sum__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tb-sum__info { grid-area: info; display: grid; gap: 2px; }
.tb-sum__info a { color: var(--tb-ink); font-weight: 700; text-decoration: none; font-size: 14px; }
.tb-sum__info small { color: var(--tb-muted); font-size: 12px; }
.tb-sum__qty { grid-area: qty; color: var(--tb-muted); font-size: 13px; }
.tb-sum__price { grid-area: price; display: grid; gap: 2px; text-align: end; }
.tb-sum__price small { color: var(--tb-muted); text-decoration: line-through; font-size: 12px; }
.tb-sum__totals { margin: 0; padding-top: 12px; border-top: 1px solid var(--tb-line); display: grid; gap: 6px; }
.tb-sum__totals > div { display: flex; justify-content: space-between; gap: 12px; color: var(--tb-muted); }
.tb-sum__totals dt, .tb-sum__totals dd { margin: 0; }
.tb-sum__totals > div:last-child { padding-top: 8px; color: var(--tb-ink); font-size: 20px; font-weight: 800; }
.tb-sum__payment .btn, .tb-sum__btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px; border-radius: 12px; font-weight: 800; font-size: 16px; }
.tb-sum__btn { border: 1px solid var(--tb-lime); background: var(--tb-lime); color: var(--tb-ink); cursor: pointer; }
.tb-sum__btn:disabled { opacity: .6; cursor: default; }
.tb-sum__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--tb-muted); font-size: 12px; }

@media (max-width: 992px) {
  .tb-co__grid { grid-template-columns: minmax(0, 1fr); }
  .tb-co__aside { position: static; }
  .tb-steps { width: 100%; margin-left: 0; justify-content: space-between; }
  .tb-steps li + li::before { width: 24px; }
  .tb-np__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 576px) {
  .tb-sum__item { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .tb-steps { font-size: 12px; gap: 8px; }
}

/* Checkout guest contact form */
.tb-contact-form__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tb-contact-form__login {
  margin: 14px 0 0;
  font-size: 13px;
  color: #6b7280;
}

@media (max-width: 640px) {
  .tb-contact-form__grid {
    grid-template-columns: 1fr;
  }
}
