/* MIURE product-specific size chart modal */
html.route-product-product #product .product-options .miure-size-chart-row {
  display: flex;
  width: 100%;
  margin-top: 10px;
  justify-content: flex-end;
}

html.route-product-product #product .product-options .miure-size-chart-link {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px;
  margin: 0;
  padding: 9px 0 7px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: #11100f;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1;
  text-decoration: none;
}

html.route-product-product #product .product-options .miure-size-chart-link:hover,
html.route-product-product #product .product-options .miure-size-chart-link:focus-visible {
  color: #633d82;
  border-bottom-color: currentColor;
}

html.route-product-product #product .product-options .miure-size-chart-link:focus-visible,
.miure-size-chart-close:focus-visible {
  outline: 2px solid #633d82;
  outline-offset: 3px;
}

body.miure-size-chart-open {
  overflow: hidden !important;
}

.miure-size-chart-modal[hidden] {
  display: none !important;
}

.miure-size-chart-modal {
  position: fixed;
  z-index: 20000;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  overflow: auto;
  background: rgba(17, 16, 15, .76);
  overscroll-behavior: contain;
}

.miure-size-chart-dialog {
  position: relative;
  display: grid;
  width: min(920px, 94vw);
  max-height: 94vh;
  max-height: 94dvh;
  padding: 18px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(17, 16, 15, .16);
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
}

.miure-size-chart-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(17, 16, 15, .24);
  border-radius: 50%;
  color: #11100f;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 5px 18px rgba(17, 16, 15, .14);
  cursor: pointer;
  font-family: Arial, sans-serif !important;
  font-size: 28px;
  font-weight: 300 !important;
  line-height: 1;
}

.miure-size-chart-close:hover {
  color: #fff;
  background: #11100f;
}

.miure-size-chart-figure {
  display: grid;
  width: 100%;
  min-height: 180px;
  margin: 0;
  place-items: center;
}

.miure-size-chart-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(94vh - 36px);
  max-height: calc(94dvh - 36px);
  object-fit: contain;
}

.miure-size-chart-status {
  color: #625e59;
  font-size: 13px;
  letter-spacing: .02em;
}

.miure-size-chart-status[hidden] {
  display: none !important;
}

.miure-size-chart-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 600px) {
  html.route-product-product #product .product-options .miure-size-chart-row {
    margin-top: 8px;
  }

  .miure-size-chart-modal {
    padding: 10px;
  }

  .miure-size-chart-dialog {
    width: 96vw;
    max-height: 96vh;
    max-height: 96dvh;
    padding: 10px;
  }

  .miure-size-chart-image {
    max-height: calc(96vh - 20px);
    max-height: calc(96dvh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .miure-size-chart-link,
  .miure-size-chart-close {
    scroll-behavior: auto;
  }
}
