.merchant-product-size-chart {
  margin-bottom: 20px;
}

.merchant-product-size-chart-button {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}
.merchant-product-size-chart-button a,
.merchant-product-size-chart-button a:visited {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  grid-gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--mrc-sc-title-text-color, #212121);
}
.merchant-product-size-chart-button a:hover {
  color: var(--mrc-sc-title-text-color-hover, #757575);
}
.merchant-product-size-chart-button svg {
  fill: var(--mrc-sc-icon-color, var(--mrc-sc-title-text-color, #212121));
  width: var(--mrc-sc-icon-size, 24px);
  height: var(--mrc-sc-icon-size, 24px);
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.merchant-product-size-chart-button a:hover svg {
  fill: var(--mrc-sc-icon-color-hover, var(--mrc-sc-title-text-color-hover, #757575));
}

.merchant-product-size-chart-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
}

.merchant-product-size-chart-modal-open {
  overflow: hidden;
}
.merchant-product-size-chart-modal-open .bhfb-header {
  z-index: 0;
}
.merchant-product-size-chart-modal-open .merchant-product-size-chart-modal {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.merchant-product-size-chart-modal-inner {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 30px 40px;
  width: var(--mrc-sc-popup-width, 750px);
  max-width: 90%;
  max-height: calc(100% - 100px);
  overflow-y: auto;
  font-size: 14px;
  background-color: var(--mrc-sc-background-color, #f2f2f2);
}
.merchant-product-size-chart-modal-inner > *:last-child {
  margin-bottom: 0;
}

.merchant-product-size-chart-modal-title {
  margin-bottom: 20px;
}

.merchant-product-size-chart-modal-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 30px;
}
.merchant-product-size-chart-modal-tabs:empty {
  display: none;
}

.merchant-product-size-chart-modal-tab {
  cursor: pointer;
  margin: 0;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  min-width: 100px;
  max-width: 100%;
  color: var(--mrc-sc-tabs-color, #757575);
  border-bottom: 3px solid var(--mrc-sc-tabs-color, #757575);
}
.merchant-product-size-chart-modal-tab.active {
  color: var(--mrc-sc-tabs-color-active, #212121);
  border-bottom-color: var(--mrc-sc-tabs-color-active, #212121);
}

.merchant-product-size-chart-modal-tables {
  margin-bottom: 30px;
}

.merchant-product-size-chart-modal-table {
  display: none;
  border: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  table-layout: fixed;
}
.merchant-product-size-chart-modal-table.active {
  display: table;
}
.merchant-product-size-chart-modal-table tr,
.merchant-product-size-chart-modal-table th,
.merchant-product-size-chart-modal-table td {
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--mrc-sc-table-body-text-color, #212121);
  background-color: var(--mrc-sc-table-body-background-color, #ffffff);
}
.merchant-product-size-chart-modal-table thead tr,
.merchant-product-size-chart-modal-table thead th {
  border: 0;
  color: var(--mrc-sc-table-headings-text-color, #ffffff);
  background-color: var(--mrc-sc-table-headings-background-color, #212121);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.merchant-product-size-chart-modal-close {
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  cursor: pointer;
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 14px;
  line-height: 1em;
  color: #fff;
}
.merchant-product-size-chart-modal-close svg {
  fill: var(--mrc-sc-close-icon-color, #212121);
  width: 1em;
  height: 1em;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
}
.merchant-product-size-chart-modal-close svg path {
  -webkit-transform: scale(0.75);
          transform: scale(0.75);
}
.merchant-product-size-chart-modal-close:hover svg {
  fill: var(--mrc-sc-close-icon-color-hover, #757575);
}

.merchant-product-size-chart-modal-title {
  font-size: 20px;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  color: var(--mrc-sc-title-color, #212121);
}

.merchant-product-size-chart-modal-content {
  color: var(--mrc-sc-description-text-color, #212121);
}
.merchant-product-size-chart-modal-content a {
  color: var(--mrc-sc-description-link-color, #212121);
}
.merchant-product-size-chart-modal-content a:hover {
  color: var(--mrc-sc-description-link-color-hover, #757575);
}
.merchant-product-size-chart-modal-content > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .merchant-product-size-chart-modal-inner {
    max-height: 100%;
  }
}