/* PDP size chart modal. New component: does not change theme button/hover colors. */

.boardak-size-guide__trigger {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: var(--text_subitem, 14px);
  line-height: var(--line-height_m, 1.4);
  font-weight: var(--font-weight_m, 500);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-transform: uppercase;
  color: inherit;
  cursor: pointer;
}

.boardak-size-guide__trigger:hover,
.boardak-size-guide__trigger:focus {
  text-decoration: underline;
  opacity: 0.75;
}

.boardak-size-guide__dialog[hidden] {
  display: none !important;
}

.boardak-size-guide__dialog {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.boardak-size-guide__dialog.is-open {
  display: flex !important;
}

.boardak-size-guide__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.boardak-size-guide__panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  background: #fff;
  color: #111;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  padding: 24px 24px 28px;
  -webkit-overflow-scrolling: touch;
}

.boardak-size-guide__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.boardak-size-guide__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.boardak-size-guide__close {
  appearance: none;
  background: #f3f3f3;
  border: 0;
  border-radius: 999px;
  padding: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.boardak-size-guide__close:hover {
  background: #e8e8e8;
}

.boardak-size-guide__note {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

.boardak-size-guide__body p {
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.boardak-size-guide__body p:first-child {
  margin-top: 0;
}

.boardak-size-guide__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
}

.boardak-size-guide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.4;
}

.boardak-size-guide__table th,
.boardak-size-guide__table td {
  border: 1px solid #e5e5e5;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.boardak-size-guide__table th {
  background: #111;
  color: #fff;
  font-weight: 700;
}

.boardak-size-guide__table tbody tr:nth-child(even) td {
  background: #fafafa;
}

.boardak-size-guide__pic {
  margin: 0 0 16px;
}

.boardak-size-guide__pic:last-child {
  margin-bottom: 0;
}

.boardak-size-guide__img {
  display: block;
  max-width: 100%;
  height: auto;
}

.boardak-size-guide__more {
  margin: 16px 0 0;
  font-size: 14px;
}

.boardak-size-guide__more a {
  color: inherit;
  text-decoration: underline;
}

@media screen and (max-width: 749px) {
  .boardak-size-guide__dialog {
    align-items: flex-end;
    padding: 0;
  }

  .boardak-size-guide__panel {
    width: 100%;
    max-height: 92vh;
    padding: 18px 14px 20px;
    border-radius: 12px 12px 0 0;
  }

  .boardak-size-guide__title {
    font-size: 18px;
  }
}

html.boardak-size-guide-open,
html.boardak-size-guide-open body {
  overflow: hidden;
}
