/* Copyright (C) Rein Ytterberg */
.media-page h1,
.media-page h2,
.media-page h3,
.media-page h4,
.media-page p {
  margin: 0;
}
.media-page em {
  color: var(--blue);
  font-style: normal;
}
.media-opening {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 38px;
  align-items: end;
  padding-top: 42px;
  padding-bottom: 32px;
}
.media-opening h1 {
  font-size: clamp(2.65rem, 4.7vw, 4.6rem);
  letter-spacing: -0.05em;
  line-height: 1.03;
}
.media-opening p {
  font-size: 18px;
}
.source-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.source-top b {
  display: block;
  font-size: 20px;
}
.source-top span {
  font-size: 14px;
}
.approval-stamp {
  color: #146545;
  font-weight: 700;
}
.source-rail {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: center;
}
.source-views {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.source-views button,
.gallery-thumbnails button {
  min-width: 0;
  border: 1px solid #c9d4e5;
  background: white;
  padding: 4px;
  border-radius: 6px;
}
.source-views button[aria-pressed='true'],
.gallery-thumbnails button[aria-pressed='true'] {
  border-color: #255fe4;
  box-shadow: 0 0 0 2px #255fe4;
}
.helmet-photo {
  display: block;
  aspect-ratio: 1;
  background-image: url('assets/media-34d32f9b8710.webp');
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.view-front {
  background-position: 0% 0%;
}
.view-right {
  background-position: 50% 0%;
}
.view-rear {
  background-position: 100% 0%;
}
.view-left {
  background-position: 0% 100%;
}
.view-top {
  background-position: 50% 100%;
}
.view-underside {
  background-position: 100% 100%;
}
.source-views small,
.gallery-thumbnails small {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #233854;
  margin-top: 4px;
}
.source-documents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.source-documents button {
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 10px;
  text-align: left;
  align-items: center;
}
.source-documents b {
  font-size: 14px;
}
.source-documents small {
  font-size: 12px;
  grid-column: 2;
  color: #53657b;
}
.file-icon {
  grid-row: span 2;
  height: 53px;
  display: grid;
  place-items: center;
  background: #e9f0ff;
  color: #174ee0;
  border: 1px solid #aac0ec;
  border-radius: 3px;
  font: bold 12px Arial;
}
.private-file {
  background: #fff0df;
  color: #9b4b0c;
  border-color: #e4bd87;
}
.media-connection {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  font-size: 14px;
  color: #174ee0;
}
.connection-line {
  height: 2px;
  background: #9ab6ef;
  flex: 1;
}
.api-label {
  background: #174ee0;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.example-context {
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
  color: #405777;
}
.shop-window {
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid #d8d3e5;
  box-shadow: 0 16px 50px #25194413;
  background: white;
  color: #18132f;
}
.shop-promo {
  background: #e8ff42;
  color: #22230a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 11px 20px;
  font-size: 15px;
}
.shop-promo b {
  font-size: 13px;
  background: #242513;
  color: #e8ff42;
  padding: 4px 8px;
  transform: rotate(-2deg);
}
.shop-promo strong {
  font-size: 13px;
}
.shop-header {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #281348;
  color: white;
  padding: 20px 26px;
}
.shop-logo {
  display: flex;
  align-items: center;
  gap: 9px;
}
.shop-mark {
  font-weight: 900;
  font-size: 32px;
  color: #e8ff42;
  letter-spacing: -0.12em;
  padding-right: 8px;
}
.shop-logo b {
  font-size: 23px;
  letter-spacing: -0.035em;
}
.shop-logo b > span {
  color: #c5a9f5;
  margin-left: 4px;
}
.shop-tagline {
  color: #e2d7f1;
  font-size: 14px;
}
.basket-open {
  margin-left: auto;
  background: #432761;
  color: #fff;
  border: 1px solid #69498b;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
}
.basket-open b {
  background: #e8ff42;
  color: #281348;
  border-radius: 20px;
  padding: 2px 6px;
  margin-left: 6px;
}
.shop-benefits {
  display: flex;
  justify-content: space-around;
  gap: 12px;
  padding: 10px 16px;
  background: #f2eaff;
  font-size: 13px;
  color: #4b286e;
  font-weight: 700;
}
.shop-product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  padding: 28px;
}
.product-stage {
  position: relative;
  border-radius: 10px;
  background: white;
  border: 1px solid #ece8f2;
  padding: 42px 18px 45px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.product-stage:active {
  cursor: grabbing;
}
.product-stage:focus-visible {
  outline: 3px solid #7738dc;
  outline-offset: 3px;
}
#helmet-view {
  width: min(100%, 345px);
  margin: auto;
}
.gallery-badges {
  position: absolute;
  left: 14px;
  top: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.gallery-badges span {
  font-size: 11px;
  font-weight: 800;
  background: #6d37be;
  color: white;
  padding: 5px 8px;
  letter-spacing: 0.06em;
}
.gallery-badges b {
  background: #ff713f;
  color: #221207;
  padding: 5px 8px;
  font-size: 12px;
  transform: rotate(-3deg);
}
#save-product {
  position: absolute;
  right: 10px;
  top: 9px;
  border: 1px solid #ded6e9;
  background: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  padding: 0;
  color: #582a8e;
  font-size: 24px;
  line-height: 1;
}
#save-product[aria-pressed='true'] {
  color: #d82f61;
  background: #fff0f5;
}
.viewer-hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: #514462;
}
.viewer-hint b {
  color: #412263;
}
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.gallery-thumbnails .helmet-photo {
  max-height: 62px;
  width: 100%;
}
.gallery-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 13px;
}
.gallery-tools button {
  border: 0;
  border-bottom: 1px solid #bbb0cd;
  background: transparent;
  color: #553286;
  font-size: 13px;
  padding: 4px 0;
}
.shop-brand {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #6d37be;
}
.shop-details h2 {
  font-size: clamp(2.25rem, 3.7vw, 3.55rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  margin: 12px 0;
}
.product-subtitle {
  font-size: 16px;
  color: #4d425b;
}
.shop-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: none;
  border: 0;
  padding: 12px 0;
  font-size: 13px;
  color: #3b2f4a;
}
.shop-rating > span {
  color: #d17d00;
  font-size: 20px;
  letter-spacing: 1px;
}
.shop-price {
  display: flex;
  align-items: center;
  gap: 14px;
}
.shop-price strong {
  font-size: 43px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.shop-price del {
  color: #766980;
  font-size: 22px;
}
.shop-price > span {
  background: #ffebee;
  color: #ad2143;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}
.price-note {
  font-size: 12px;
  color: #6b567b;
  margin-top: 3px !important;
}
.shop-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}
.shop-highlights > span {
  font-size: 12px;
  padding: 4px 7px;
  background: #f1eef5;
  color: #524362;
  border-radius: 4px;
}
.size-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 9px;
}
.size-label span {
  color: #62526f;
}
.shop-sizes {
  display: flex;
  gap: 10px;
}
.shop-sizes button {
  width: 55px;
  height: 38px;
  border: 1px solid #c1b5cf;
  background: white;
  border-radius: 6px;
  font-weight: 700;
}
.shop-sizes button[aria-pressed='true'] {
  color: #fff;
  background: #5c2bb1;
  border-color: #5c2bb1;
}
.purchase-line {
  display: flex;
  gap: 12px;
  margin-top: 17px;
}
.purchase-line label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.purchase-line input {
  width: 52px;
  padding: 10px 5px;
  border: 1px solid #baadca;
  border-radius: 6px;
  font: inherit;
}
#add-basket {
  flex: 1;
  background: #e85221;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border: 0;
  padding: 12px;
  border-radius: 7px;
  box-shadow: 0 4px 0 #b33711;
}
.delivery-offer {
  display: flex;
  align-items: center;
  gap: 11px;
  background: #ecf7e8;
  color: #2b6027;
  border-radius: 6px;
  margin: 18px 0 12px;
  padding: 11px 13px;
}
.delivery-offer > span {
  font-size: 25px;
}
.delivery-offer b {
  display: block;
  font-size: 14px;
}
.delivery-offer p > span {
  display: block;
  font-size: 12px;
  margin-top: 3px;
}
.retail-docs button {
  font-size: 14px;
  font-weight: 700;
  border: 0;
  border-bottom: 1px solid #926bbb;
  color: #653997;
  padding: 0 0 2px;
  background: transparent;
}
.retail-docs > span {
  display: block;
  color: #62526f;
  font-size: 12px;
  margin-top: 4px;
}
.shop-status {
  font-size: 13px;
  min-height: 20px;
  padding-top: 8px;
  color: #653997;
}
.shop-provenance {
  background: #f8f6fc;
  border-top: 1px solid #e7dfef;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 12px 16px;
  font-size: 12px;
  color: #675477;
}
.dimension-section {
  padding-top: 48px;
  padding-bottom: 48px;
}
.dimension-title,
.section-heading {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
}
.dimension-title h2,
.section-heading h2,
.media-close h2 {
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.dimension-flow {
  display: grid;
  grid-template-columns: 1fr 25px 1fr 25px 1fr;
  gap: 22px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #bfd0e8;
}
.dimension-flow b {
  display: block;
  color: #164bbd;
  font-size: 18px;
}
.dimension-flow span {
  display: block;
  font-size: 14px;
  margin-top: 6px;
}
.dimension-flow i {
  font-style: normal;
  color: #164bbd;
  font-size: 26px;
  align-self: center;
}
.document-section {
  background: #edf2f8;
  padding: 46px 0;
}
.section-heading {
  margin-bottom: 25px;
}
.document-workspace {
  border: 1px solid #bfcbdb;
  background: #dce5f0;
  border-radius: 8px;
  overflow: hidden;
}
.document-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 15px 20px;
  background: #1e212b;
  color: white;
}
.document-toolbar b {
  display: block;
  font-size: 16px;
}
.document-toolbar span {
  display: block;
  font-size: 12px;
  color: #c9d3e0;
}
.language-switch {
  display: flex;
  gap: 5px;
}
.language-switch button {
  border: 1px solid #626b7d;
  color: #fff;
  background: #383e4d;
  padding: 7px 11px;
  font-size: 13px;
}
.language-switch button[aria-pressed='true'] {
  background: #1761c2;
  border-color: #1761c2;
}
.document-pair {
  display: grid;
  grid-template-columns: 1fr 110px 1fr;
  gap: 24px;
  padding: 28px;
  align-items: stretch;
}
.paper {
  background: white;
  padding: 24px;
  box-shadow: 0 5px 15px #172b4422;
}
.paper-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: #426180;
  border-bottom: 2px solid #1761c2;
  padding-bottom: 10px;
}
.paper h3 {
  font-size: 21px;
  margin-top: 15px;
  line-height: 1.3;
}
.paper h4 {
  font-size: 15px;
  margin: 12px 0 8px;
}
.paper p {
  font-size: 14px;
  line-height: 1.55;
}
.manual-product {
  width: 105px;
  margin: 12px auto;
}
.paper-rule {
  height: 1px;
  background: #ccd7e3;
  margin-top: 24px;
}
.paper-version {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #587087;
}
.translation-bridge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #3c597c;
}
.translation-bridge > b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: #1761c2;
  font-size: 20px;
}
.translation-bridge i {
  font-style: normal;
  font-size: 26px;
  color: #1761c2;
}
.translation-bridge strong {
  color: #207049;
  font-size: 12px;
  margin-top: 5px;
}
.document-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #f5f7fb;
  font-size: 14px;
}
.document-actions button {
  font-size: 13px;
  padding: 8px 11px;
  background: #1761c2;
  color: white;
  border: 0;
}
.permissions-section {
  padding-top: 48px;
  padding-bottom: 28px;
}
.permission-list {
  border-top: 1px solid #c5d0df;
}
.permission-list > button {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid #c5d0df;
  background: white;
  padding: 20px 0;
}
.permission-symbol {
  font-size: 27px;
  width: 40px;
  text-align: center;
}
.allowed {
  color: #237349;
}
.restricted {
  color: #b45309;
}
.permission-list b {
  display: block;
  font-size: 18px;
}
.permission-list div > span {
  display: block;
  font-size: 14px;
  margin-top: 5px;
}
.permission-list strong {
  margin-left: auto;
  color: #1761c2;
  font-size: 14px;
}
.media-close {
  padding-top: 28px;
  padding-bottom: 55px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}
.media-close p {
  margin-bottom: 20px;
}
#media-dialog {
  width: min(680px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid #bac5d6;
  border-radius: 7px;
  font-family: Arial, sans-serif;
  box-shadow: 0 16px 80px #13294355;
}
#media-dialog::backdrop {
  background: #1e193d99;
}
.media-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #edf1f7;
  padding: 13px 20px;
}
.media-dialog-top button {
  font-size: 26px;
  background: none;
  border: 0;
  line-height: 1;
}
#media-dialog-body {
  padding: 24px;
}
#media-dialog-body h3 {
  font-size: 24px;
  margin-bottom: 15px;
}
#media-dialog-body p {
  margin: 12px 0;
}
#media-dialog-body .dialog-note {
  font-size: 13px;
  color: #53657b;
}
#media-dialog-body .dialog-alert {
  padding: 15px;
  background: #fff0cf;
  border-left: 4px solid #b86b13;
}
#media-dialog-body button {
  background: #1761c2;
  color: #fff;
  border: 0;
  padding: 10px 14px;
  font-size: 14px;
}
.basket-row {
  display: grid;
  grid-template-columns: 65px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #d5dfec;
  font-size: 15px;
}
.basket-total {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 20px;
}
.review-score {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.review-score b {
  font-size: 50px;
}
.review-score span {
  color: #c97800;
  font-size: 24px;
}
.rating-distribution {
  display: grid;
  grid-template-columns: 50px 1fr 45px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  margin: 10px 0;
}
.rating-distribution meter {
  width: 100%;
  height: 14px;
}
.reserved-copy {
  display: grid;
}
.reserved-copy > span {
  grid-area: 1 / 1;
}
.reserved-copy .size-reserve {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 900px) {
  .media-opening,
  .dimension-title,
  .section-heading,
  .media-close {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .source-rail {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .source-documents {
    max-width: 520px;
  }
  .shop-product-layout {
    gap: 22px;
    padding: 20px;
  }
  .shop-tagline {
    display: none;
  }
  .shop-details h2 {
    font-size: 2.6rem;
  }
  .viewer-hint {
    flex-wrap: wrap;
    gap: 1px 10px;
  }
  .document-pair {
    gap: 14px;
    padding: 20px;
    grid-template-columns: 1fr 80px 1fr;
  }
  .paper {
    padding: 18px;
  }
}
@media (max-width: 620px) {
  .media-opening {
    padding-top: 30px;
  }
  .media-opening p {
    font-size: 16px;
  }
  .source-top {
    flex-wrap: wrap;
  }
  .source-views {
    gap: 5px;
  }
  .source-views small {
    font-size: 10px;
  }
  .media-connection {
    font-size: 12px;
    gap: 9px;
  }
  .example-context {
    flex-wrap: wrap;
    font-size: 12px;
    gap: 0;
  }
  .shop-promo {
    gap: 8px 14px;
    flex-wrap: wrap;
    padding: 10px;
  }
  .shop-promo strong {
    font-size: 11px;
  }
  .shop-header {
    padding: 14px;
  }
  .shop-logo b {
    font-size: 19px;
  }
  .shop-mark {
    font-size: 27px;
  }
  .shop-benefits {
    font-size: 11px;
    gap: 8px;
    text-align: center;
  }
  .shop-product-layout {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 24px;
  }
  .product-stage {
    padding-top: 45px;
  }
  .gallery-thumbnails .helmet-photo {
    max-height: none;
  }
  .gallery-thumbnails {
    gap: 6px;
  }
  .gallery-thumbnails small {
    font-size: 10px;
  }
  .shop-details h2 {
    font-size: 3rem;
  }
  .dimension-section {
    padding: 36px 0;
  }
  .dimension-flow {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .dimension-flow i {
    display: none;
  }
  .document-section {
    padding: 34px 0;
  }
  .document-toolbar {
    flex-wrap: wrap;
  }
  .document-pair {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .translation-bridge {
    flex-direction: row;
    padding: 3px 0;
  }
  .translation-bridge > b {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .paper {
    padding: 22px;
  }
  .manual-product {
    width: 90px;
  }
  .document-actions {
    flex-wrap: wrap;
  }
  .permission-list > button {
    gap: 10px;
    flex-wrap: wrap;
  }
  .permission-list b {
    font-size: 16px;
  }
  .permission-list strong {
    margin-left: 50px;
  }
  .permission-list div {
    flex: 1;
  }
  .permissions-section {
    padding-top: 34px;
  }
  .media-close {
    padding-bottom: 36px;
  }
}
