.telos-wholesale {
  --tw-bg: #020504;
  --tw-panel: #07100f;
  --tw-panel-2: #0b1517;
  --tw-line: rgba(182, 255, 0, 0.14);
  --tw-line-soft: rgba(255, 255, 255, 0.1);
  --tw-ink: #f5f7f2;
  --tw-muted: #9eafa5;
  --tw-lime: #92e900;
  --tw-lime-2: #b6ff00;
  --tw-blue: #7fb8ff;
  --tw-error: #ff8b7d;
  --tw-ok: #8de3b0;
  width: min(100%, 1320px);
  margin: 0 auto;
  color: var(--tw-ink);
}

.telos-wholesale *,
.telos-wholesale *::before,
.telos-wholesale *::after {
  box-sizing: border-box;
}

.telos-wholesale button,
.telos-wholesale input,
.telos-wholesale textarea {
  font: inherit;
}

.telos-wholesale__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: center;
  margin: 0 0 26px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(146, 233, 0, 0.26);
  border-radius: 10px;
  background:
    radial-gradient(circle at 10% 0%, rgba(146, 233, 0, 0.16), transparent 28rem),
    linear-gradient(135deg, #151712 0%, #07100e 56%, #030705 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.telos-wholesale__eyebrow {
  margin: 0 0 8px;
  color: var(--tw-lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.telos-wholesale h1,
.telos-wholesale h2 {
  margin: 0;
  color: #fff;
  letter-spacing: 0;
  text-transform: uppercase;
}

.telos-wholesale h1 {
  max-width: 760px;
  font-size: clamp(42px, 5.3vw, 76px);
  line-height: 0.92;
}

.telos-wholesale h2 {
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
}

.telos-wholesale__hero p:not(.telos-wholesale__eyebrow) {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--tw-muted);
  font-size: 18px;
  line-height: 1.55;
}

.telos-wholesale__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.telos-wholesale__button--primary {
  color: #071006 !important;
  background: linear-gradient(135deg, var(--tw-lime-2), var(--tw-lime));
  text-decoration: none !important;
  text-shadow: none !important;
}

.telos-wholesale__button--primary:visited,
.telos-wholesale__button--primary:hover,
.telos-wholesale__button--primary:focus {
  color: #071006 !important;
}

.telos-wholesale__hero .telos-wholesale__button {
  margin-top: 20px;
}

.telos-wholesale__vials {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  min-height: 210px;
}

.telos-wholesale__vial {
  display: grid;
  align-content: end;
  width: 78px;
  height: 174px;
  padding: 0 9px 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px 16px 12px 12px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.14));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.telos-wholesale__vial--tall {
  height: 205px;
}

.telos-wholesale__vial span,
.telos-wholesale__vial small {
  display: block;
  border-radius: 6px;
  background: #f4f1e8;
  color: #071006;
  text-align: center;
  text-transform: uppercase;
}

.telos-wholesale__vial span {
  padding: 10px 5px 2px;
  font-size: 13px;
  font-weight: 950;
}

.telos-wholesale__vial small {
  padding: 0 5px 10px;
  color: #4d5d58;
  font-size: 7px;
  line-height: 1.2;
}

.telos-wholesale__grid {
  display: grid;
  grid-template-columns: minmax(660px, 1fr) minmax(340px, 390px);
  gap: 18px;
  align-items: start;
}

.telos-wholesale__panel {
  min-width: 0;
  border: 1px solid var(--tw-line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--tw-panel-2), var(--tw-panel));
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.telos-wholesale__panel-head {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 18px;
  align-items: end;
  padding: 20px 22px;
  border-bottom: 1px solid var(--tw-line-soft);
}

.telos-wholesale__panel-head h2 {
  font-size: clamp(28px, 2.4vw, 40px);
}

.telos-wholesale__search,
.telos-wholesale__form label {
  display: grid;
  gap: 7px;
  color: #d8e1dc;
  font-size: 13px;
  font-weight: 900;
}

.telos-wholesale__search {
  color: var(--tw-muted);
}

.telos-wholesale input,
.telos-wholesale textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: var(--tw-ink);
  background: #050a0c;
  outline: none;
}

.telos-wholesale input {
  height: 42px;
  padding: 0 12px;
}

.telos-wholesale textarea {
  padding: 11px 12px;
  resize: vertical;
}

.telos-wholesale input:focus,
.telos-wholesale textarea:focus {
  border-color: var(--tw-lime);
  box-shadow: 0 0 0 3px rgba(146, 233, 0, 0.13);
}

.telos-wholesale__table-wrap {
  max-height: 640px;
  overflow: auto;
}

.telos-wholesale__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.telos-wholesale__table th,
.telos-wholesale__table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.telos-wholesale__table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #091113;
  color: var(--tw-lime-2);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.telos-wholesale__table th:nth-child(1),
.telos-wholesale__table td:nth-child(1) {
  width: 30%;
}

.telos-wholesale__table th:nth-child(2),
.telos-wholesale__table td:nth-child(2) {
  width: 13%;
}

.telos-wholesale__table th:nth-child(3),
.telos-wholesale__table td:nth-child(3) {
  width: 25%;
}

.telos-wholesale__table th:nth-child(4),
.telos-wholesale__table td:nth-child(4) {
  width: 20%;
}

.telos-wholesale__table th:nth-child(5),
.telos-wholesale__table td:nth-child(5) {
  width: 12%;
}

.telos-wholesale__product strong,
.telos-wholesale__product span {
  display: block;
  max-width: 100%;
}

.telos-wholesale__product strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.telos-wholesale__product span,
.telos-wholesale__spec {
  color: var(--tw-muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.telos-wholesale__code {
  color: #8dc0ff;
  font-weight: 950;
  white-space: normal;
  overflow-wrap: anywhere;
}

.telos-wholesale__qty {
  display: grid;
  grid-template-columns: 32px minmax(48px, 64px) 32px;
  gap: 5px;
  align-items: center;
}

.telos-wholesale__qty input {
  width: 100%;
  height: 34px;
  text-align: center;
}

.telos-wholesale__icon-button {
  width: 32px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--tw-ink);
  background: #101b1e;
  cursor: pointer;
}

.telos-wholesale__add {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  color: #071006;
  background: var(--tw-lime);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.telos-wholesale__add:disabled {
  cursor: default;
  filter: brightness(1.08);
}

.telos-wholesale__cart {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px;
}

.telos-wholesale__cart h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 2.7vw, 42px);
}

.telos-wholesale__cart-list {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  max-height: 220px;
  overflow: auto;
}

.telos-wholesale__cart-list--empty {
  padding: 15px;
  border: 1px dashed rgba(146, 233, 0, 0.35);
  border-radius: 8px;
  color: var(--tw-muted);
  background: rgba(146, 233, 0, 0.05);
}

.telos-wholesale__cart-item {
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.telos-wholesale__cart-item span {
  display: block;
  color: var(--tw-muted);
  font-size: 13px;
}

.telos-wholesale__remove {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: #071006;
  background: var(--tw-lime);
  font-weight: 950;
  cursor: pointer;
}

.telos-wholesale__form {
  display: grid;
  gap: 11px;
}

.telos-wholesale__form button[type="submit"] {
  width: 100%;
  margin-top: 3px;
}

.telos-wholesale__form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.telos-wholesale__status {
  min-height: 22px;
  margin: 0;
  color: var(--tw-muted);
  font-size: 14px;
}

.telos-wholesale__status--ok {
  color: var(--tw-ok);
}

.telos-wholesale__status--error {
  color: var(--tw-error);
}

.telos-wholesale__mobile-cart-bar {
  display: none;
}

@media (max-width: 1180px) {
  .telos-wholesale__grid {
    grid-template-columns: 1fr;
  }

  .telos-wholesale__cart {
    position: static;
  }
}

@media (max-width: 820px) {
  .telos-wholesale {
    width: 100%;
  }

  .telos-wholesale__hero {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 18px;
  }

  .telos-wholesale__vials {
    min-height: 120px;
    justify-content: flex-start;
  }

  .telos-wholesale__vial {
    width: 68px;
    height: 118px;
    padding: 0 7px 14px;
  }

  .telos-wholesale__vial--tall {
    height: 136px;
  }

  .telos-wholesale__panel-head {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .telos-wholesale h1 {
    font-size: 38px;
  }

  .telos-wholesale__hero p:not(.telos-wholesale__eyebrow) {
    font-size: 16px;
  }
}

@media (max-width: 680px) {
  .telos-wholesale {
    padding-bottom: 20px;
  }

  .telos-wholesale__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .telos-wholesale__hero {
    gap: 10px;
    margin-bottom: 12px;
    padding: 14px;
  }

  .telos-wholesale h1 {
    font-size: 30px;
    line-height: 0.96;
  }

  .telos-wholesale__hero p:not(.telos-wholesale__eyebrow) {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
  }

  .telos-wholesale__hero .telos-wholesale__button {
    margin-top: 12px;
  }

  .telos-wholesale__vials {
    display: none;
  }

  .telos-wholesale__panel-head {
    gap: 10px;
    padding: 13px 14px;
  }

  .telos-wholesale__panel-head h2 {
    font-size: 24px;
  }

  .telos-wholesale__search,
  .telos-wholesale__form label {
    gap: 5px;
    font-size: 12px;
  }

  .telos-wholesale input {
    height: 38px;
  }

  .telos-wholesale__cart {
    position: static;
    top: auto;
    z-index: auto;
    order: -1;
    padding: 12px;
    overflow: visible;
    border-color: rgba(182, 255, 0, 0.34);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  }

  .telos-wholesale__cart .telos-wholesale__eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .telos-wholesale__cart h2 {
    margin-bottom: 9px;
    font-size: 22px;
  }

  .telos-wholesale__cart-list {
    max-height: none !important;
    margin-bottom: 9px;
    overflow: visible !important;
  }

  .telos-wholesale__cart-item {
    grid-template-columns: 1fr 34px;
    padding: 8px;
  }

  .telos-wholesale__cart-item span {
    font-size: 12px;
  }

  .telos-wholesale__cart-list--empty {
    padding: 10px;
    font-size: 13px;
  }

  .telos-wholesale__form {
    grid-template-columns: 1fr 1fr;
    gap: 7px 8px;
  }

  .telos-wholesale__form > * {
    grid-column: 1 / -1;
  }

  .telos-wholesale__form label:nth-of-type(-n+4) {
    grid-column: auto;
  }

  .telos-wholesale__form textarea {
    min-height: 62px;
  }

  .telos-wholesale__form button[type="submit"] {
    min-height: 40px;
  }

  .telos-wholesale__panel:not(.telos-wholesale__cart) {
    overflow: hidden;
  }

  .telos-wholesale__table,
  .telos-wholesale__table thead,
  .telos-wholesale__table tbody,
  .telos-wholesale__table tr,
  .telos-wholesale__table th,
  .telos-wholesale__table td {
    display: block;
    width: 100% !important;
  }

  .telos-wholesale__table thead {
    display: none;
  }

  .telos-wholesale__table-wrap {
    max-height: min(52vh, 470px);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .telos-wholesale__table tr {
    padding: 12px 14px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .telos-wholesale__table td {
    border: 0;
    padding: 3px 0;
  }

  .telos-wholesale__qty {
    width: 140px;
    margin-top: 8px;
  }

  .telos-wholesale__add {
    width: min(100%, 180px);
    margin-top: 8px;
  }

  .telos-wholesale__mobile-cart-bar {
    display: none;
  }

  .telos-wholesale__mobile-cart-bar span,
  .telos-wholesale__mobile-cart-bar strong {
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .telos-wholesale__mobile-cart-bar span {
    font-size: 13px;
    font-weight: 800;
  }

  .telos-wholesale__mobile-cart-bar strong {
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
  }
}

@media (max-width: 430px) {
  .telos-wholesale__cart-list {
    max-height: none !important;
    overflow: visible !important;
  }

  .telos-wholesale__table-wrap {
    max-height: min(50vh, 430px);
  }
}
