/* Application choices reuse the gallery’s image and capture controls. */
.hc-sites-product .hcpb-app-gallery .workshop-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 24px 40px;
  align-items: stretch;
}

.hcpb-app-gallery .workshop-gallery-heading {
  grid-column: 1 / -1;
  margin: 0;
}

.hc-sites-product .hcpb-app-gallery .workshop-gallery-heading :is(h2, p:last-child) {
  max-width: none;
  text-wrap: pretty;
}

.hc-sites-product .hcpb-app-gallery .workshop-gallery-heading > p:last-child {
  margin-top: 13px;
}

.hc-sites-product .hcpb-app-gallery .hcpb-app-gallery-choices {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.hcpb-app-gallery .workshop-gallery-thumbnail-list {
  gap: 12px;
  margin: 0;
}

.hcpb-app-gallery .workshop-gallery-thumbnail-list button {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 21px;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border-color: #d5dee7;
  border-radius: 11px;
  background: #fff;
  color: #243444;
  text-align: left;
}

.hcpb-app-gallery .workshop-gallery-thumbnail-list button:hover {
  border-color: #adc2d5;
  background: #f4f7fa;
}

.hcpb-app-gallery .workshop-gallery-thumbnail-list button.is-active {
  border-color: #6994bd;
  background: #edf5fb;
  box-shadow: inset 0 0 0 1px #6994bd;
  color: #214c76;
}

.hcpb-app-gallery-label,
.hcpb-app-gallery-device {
  display: block;
  line-height: 1.3;
}

.hcpb-app-gallery-label {
  font-size: 15px;
  font-weight: 700;
}

.hcpb-app-gallery-device {
  margin-top: 4px;
  color: #54677b;
  font-size: 12px;
}

.hcpb-app-gallery-selected {
  display: none;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #356792;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.hcpb-app-gallery .is-active > .hcpb-app-gallery-selected {
  display: grid;
}

.hcpb-app-gallery-mobile-icon {
  display: none;
}

.hcpb-app-gallery .workshop-gallery-primary {
  grid-row: 3;
}

.hc-sites-product .hcpb-app-gallery .workshop-gallery-visual {
  border: 1px solid #d6e0e9;
  border-radius: 14px;
}

.hc-sites-product .hcpb-app-gallery .workshop-gallery-secondary {
  display: flex;
  grid-row: 3;
  gap: 20px;
  margin: 0;
}

.hcpb-app-gallery .workshop-gallery-secondary::before {
  content: none;
}

.hc-sites-product .hcpb-app-gallery .workshop-gallery-position {
  display: block;
  margin-bottom: 10px;
}

.hc-sites-product .hcpb-app-gallery .workshop-gallery-detail > p:not(.workshop-gallery-position) {
  max-width: none;
  margin-top: 16px;
}

.hc-sites-product .hcpb-app-gallery .workshop-gallery-points {
  display: block;
  margin-top: 20px;
  padding-top: 14px;
}

.hc-sites-product .hcpb-app-gallery .workshop-gallery-hd-link {
  position: static;
  align-self: flex-start;
  min-height: 42px;
  border-color: #c5d8e9;
  background: #edf5fb;
  box-shadow: none;
  color: #254e76;
  font-size: 14px;
}

.hc-sites-product .hcpb-app-gallery :is(.workshop-gallery-thumbnail-list button, .workshop-gallery-hd-link):focus-visible {
  outline: 2px solid #4d83b3;
  outline-offset: 2px;
}

.hcpb-app-gallery-next:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #c5d8e9;
  border-radius: 8px;
  background: #edf5fb;
  color: #254e76;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.hcpb-app-gallery-next:focus-visible {
  outline: 2px solid #9fc2df;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .hc-sites-product .hcpb-app-gallery .workshop-gallery-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .hcpb-app-gallery .workshop-gallery-primary {
    grid-row: 2;
  }

  .hc-sites-product .hcpb-app-gallery .hcpb-app-gallery-choices {
    grid-row: 3;
  }

  .hc-sites-product .hcpb-app-gallery .workshop-gallery-secondary {
    grid-column: 1;
    grid-row: 4;
  }

  .hcpb-app-gallery .workshop-gallery-thumbnail-list button {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 5px 5px 7px;
    text-align: center;
  }

  .hcpb-app-gallery-selected {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 1px #fff;
    font-size: 10px;
  }
}

@media (max-width: 640px) {
  .hcpb-app-gallery .workshop-gallery-thumbnail-list [data-hcpb-app-mobile-icon] {
    --tile-tint: #eef6fc;
    --tile-active: #e6f2fb;
    --tile-edge: #d1e2ef;
    --tile-icon: #37688d;
    --tile-label: #42617a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 87px;
    gap: 5px;
    padding: 9px 3px 8px;
    border-color: var(--tile-edge);
    border-radius: 10px;
    background: var(--tile-tint);
    color: var(--tile-icon);
  }

  .hcpb-app-gallery .workshop-gallery-thumbnail-list [data-hcpb-app-mobile-icon="computer"] {
    --tile-tint: #f4effa;
    --tile-active: #efe7f9;
    --tile-edge: #e2d7ee;
    --tile-icon: #725394;
    --tile-label: #68537c;
  }

  .hcpb-app-gallery .workshop-gallery-thumbnail-list [data-hcpb-app-mobile-icon="video"] {
    --tile-tint: #edf6f2;
    --tile-active: #e3f2ea;
    --tile-edge: #d1e5dc;
    --tile-icon: #3f7766;
    --tile-label: #426657;
  }

  .hcpb-app-gallery .workshop-gallery-thumbnail-list [data-hcpb-app-mobile-icon].is-active {
    border-color: var(--tile-icon);
    background: var(--tile-active);
    box-shadow: none;
  }

  .hcpb-app-gallery [data-hcpb-app-mobile-icon] > :is(picture, img, .hcpb-app-gallery-selected) {
    display: none;
  }

  .hcpb-app-gallery [data-hcpb-app-mobile-icon] > .hcpb-app-gallery-mobile-icon {
    display: block;
    width: 28px;
    height: 28px;
  }

  .hcpb-app-gallery [data-hcpb-app-mobile-icon] :is(.hcpb-app-gallery-label, .hcpb-app-gallery-device) {
    color: var(--tile-label);
    font-weight: 400;
    line-height: 1.18;
  }

  .hcpb-app-gallery [data-hcpb-app-mobile-icon] .hcpb-app-gallery-label {
    font-size: 12px;
  }

  .hcpb-app-gallery [data-hcpb-app-mobile-icon] .hcpb-app-gallery-device {
    font-size: 10.5px;
  }

  .hc-sites-product .hcpb-app-gallery .workshop-gallery-visual {
    aspect-ratio: 2 / 1;
  }

  .hcpb-app-gallery-next {
    width: 100%;
  }

  .hc-sites-product .hcpb-app-gallery .workshop-gallery-heading h2 {
    font-size: 33px;
  }

  .hcpb-app-gallery .workshop-gallery-thumbnail-list {
    gap: 7px;
  }

  .hcpb-app-gallery-label {
    font-size: 13px;
  }

  .hcpb-app-gallery-device {
    font-size: 11px;
  }
}
