.product-photo-studio-launch {
  flex: 1 1 210px;
  min-height: 42px;
  justify-content: center;
  color: #fff;
  border-color: rgba(124, 92, 255, .7);
  background: linear-gradient(135deg, #6d4aff, #d41463);
  box-shadow: 0 8px 20px rgba(109, 74, 255, .2);
}

.product-photo-studio-launch:hover:not(:disabled),
.product-photo-studio-launch:focus-visible:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.product-photo-studio-launch:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

body.product-photo-studio-open {
  overflow: hidden;
}

.product-photo-studio-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: #0d0d16;
}

.product-photo-studio-modal.is-open {
  display: flex;
}

.product-photo-studio-shell {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #12121a;
}

.product-photo-studio-header {
  display: flex;
  min-height: 58px;
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left));
  align-items: center;
  gap: 12px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, #171722, #242136);
  box-sizing: border-box;
}

.product-photo-studio-heading {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
}

.product-photo-studio-heading strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-photo-studio-status {
  overflow: hidden;
  color: rgba(255, 255, 255, .7);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-photo-studio-status.is-error {
  overflow: visible;
  color: #ff9c9c;
  text-overflow: clip;
  white-space: normal;
}

.product-photo-studio-retry,
.product-photo-studio-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.product-photo-studio-retry {
  width: auto;
  min-width: 76px;
  padding: 0 13px;
  flex-basis: auto;
  gap: 5px;
  color: #fff;
  border-color: rgba(255, 156, 156, .55);
  background: rgba(181, 45, 63, .24);
  font-size: 13px;
  font-weight: 800;
}

.product-photo-studio-retry:hover:not(:disabled),
.product-photo-studio-retry:focus-visible:not(:disabled) {
  border-color: rgba(255, 156, 156, .9);
  background: rgba(181, 45, 63, .42);
}

.product-photo-studio-retry[hidden] {
  display: none;
}

.product-photo-studio-frame {
  display: block;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  border: 0;
  background: #12121a;
}

@media (min-width: 1100px) {
  .product-photo-studio-modal {
    padding: 14px;
    background: rgba(5, 5, 12, .92);
    box-sizing: border-box;
  }

  .product-photo-studio-shell {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  }
}

@media (max-width: 700px) {
  .product-photo-studio-header {
    min-height: 54px;
  }

  .product-photo-studio-heading strong {
    font-size: 14px;
  }

  .product-photo-studio-retry {
    min-width: 68px;
    padding-inline: 10px;
  }
}
