/* Size guide — product page modal. */
.tb-size-guide-open {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 18px;
  padding: 9px 14px;
  border: 1px solid #111;
  border-radius: 2px;
  background: #fff;
  color: #111;
  font: 600 13px/1.2 Lato, Helvetica, Arial, sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.tb-size-guide-open:hover { background: #111; color: #fff; }
.tb-size-guide-open:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.tb-size-guide-open__icon { font-size: 14px; line-height: 1; }

.tb-size-guide {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tb-size-guide[hidden] { display: none !important; }
.tb-size-guide__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, .55);
  backdrop-filter: blur(2px);
}
.tb-size-guide__dialog {
  position: relative;
  display: flex;
  width: min(980px, 100%);
  max-height: min(86vh, 900px);
  flex-direction: column;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.tb-size-guide__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #e6e6e6;
}
.tb-size-guide__title {
  margin: 0;
  color: #111;
  font: 700 20px/1.2 Lato, Helvetica, Arial, sans-serif;
  letter-spacing: .01em;
  text-transform: none;
}
.tb-size-guide__close {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #d5d5d5;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.tb-size-guide__close:hover { background: #111; border-color: #111; color: #fff; }
.tb-size-guide__close:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.tb-size-guide__tabs {
  display: flex;
  gap: 4px;
  padding: 12px 22px 0;
  border-bottom: 1px solid #e6e6e6;
}
.tb-size-guide__tab {
  padding: 10px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6a6a6a;
  font: 600 14px/1.2 Lato, Helvetica, Arial, sans-serif;
  cursor: pointer;
}
.tb-size-guide__tab:hover { color: #111; }
.tb-size-guide__tab.is-active { border-bottom-color: #111; color: #111; }
.tb-size-guide__tab:focus-visible { outline: 2px solid #111; outline-offset: -2px; }

.tb-size-guide__body {
  flex: 1 1 auto;
  padding: 20px 22px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.tb-size-guide__panel[hidden] { display: none !important; }
.tb-size-guide__section { margin: 0 0 26px; }
.tb-size-guide__section-title {
  margin: 0 0 10px;
  color: #111;
  font: 700 14px/1.3 Lato, Helvetica, Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tb-size-guide__table-wrap { width: 100%; overflow-x: auto; }
.tb-size-guide__table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font: 400 13px/1.45 Lato, Helvetica, Arial, sans-serif;
  color: #222;
}
.tb-size-guide__table th,
.tb-size-guide__table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ececec;
  text-align: left;
  white-space: nowrap;
}
.tb-size-guide__table thead th {
  background: #f6f6f6;
  color: #111;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-bottom: 1px solid #dcdcdc;
}
.tb-size-guide__table tbody th { font-weight: 600; color: #111; }
.tb-size-guide__table tbody tr:nth-child(even) { background: #fafafa; }
.tb-size-guide__note {
  margin: 0;
  padding: 12px 22px 18px;
  border-top: 1px solid #e6e6e6;
  color: #757575;
  font: 400 12px/1.5 Lato, Helvetica, Arial, sans-serif;
}

body.tb-size-guide-open-body { overflow: hidden; }

@media (max-width: 767px) {
  .tb-size-guide { padding: 0; align-items: flex-end; }
  .tb-size-guide__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 10px 10px 0 0;
  }
  .tb-size-guide__head { padding: 14px 16px; }
  .tb-size-guide__title { font-size: 17px; }
  .tb-size-guide__tabs { padding: 8px 12px 0; overflow-x: auto; }
  .tb-size-guide__tab { padding: 10px 12px; font-size: 13px; white-space: nowrap; }
  .tb-size-guide__body { padding: 14px 16px 4px; }
  .tb-size-guide__table { min-width: 380px; font-size: 12px; }
  .tb-size-guide__note { padding: 10px 16px 14px; }
}
