.warranty-label {
  margin: 16px 0;
}

.warranty-label__trigger {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.warranty-label__trigger:hover,
.warranty-label__trigger:focus {
  color: inherit;
  text-decoration: none;
}

.warranty-label__preview {
  display: block;
  width: 335px;
  max-width: 100%;
  height: auto;
  transition: opacity .2s ease, transform .2s ease;
}

.warranty-label__trigger:hover .warranty-label__preview,
.warranty-label__trigger:focus .warranty-label__preview {
  opacity: .82;
  transform: translateY(-2px);
}

.warranty-label-modal {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.warranty-label-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
}

.warranty-label-modal__dialog {
  position: relative;
    width: 100%;
    max-height: calc(100vh - 48px);
    padding: 42px 0 0;
    overflow: auto;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
    max-width: 482px;
}

.warranty-label-modal__image {
  display: block;
  width: min(100%, 480px);
  height: auto;
  margin: 0 auto;
}

.warranty-label-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font: 30px/32px Arial, sans-serif;
  cursor: pointer;
}

.warranty-label-modal__close:hover,
.warranty-label-modal__close:focus {
  color: #777;
  outline: 2px solid currentColor;
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .warranty-label-modal {
    padding: 12px;
  }

  .warranty-label-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 40px 14px 14px;
  }
}
