/* The Shop editor and the public page use the same photo frame and empty artwork. */
:is(.phase6d-shop-page, .dd-shop-identity) {
  --dd-shop-cover-height: clamp(280px, 30vw, 400px);
  --dd-shop-logo-size: 120px;
  --dd-shop-logo-left: 34px;
  --dd-shop-logo-border: 5px;
  --dd-shop-artwork:
    radial-gradient(circle at 84% 18%, #ffd9e6 0 58px, transparent 59px),
    radial-gradient(circle at 12% 86%, #d9f2ff 0 46px, transparent 47px),
    #f8fbff;
}

.phase6d-commerce-page.phase6d-shop-page .phase6d-editor-hero {
  min-height: var(--dd-shop-cover-height);
}

body.dd-discovery-v2 .detail-hero.dd-shop-identity {
  gap: 0;
}

body.dd-discovery-v2 .dd-business-detail-hero.dd-shop-identity > .dd-business-hero-media {
  height: var(--dd-shop-cover-height) !important;
  background: transparent;
}

:is(.phase6d-shop-page, .dd-shop-identity) :is(
  .phase6d-editor-hero > .dd-inline-cover,
  .phase6d-business-profile-overlay > .dd-inline-profile,
  .dd-business-hero-cover,
  .dd-business-hero-profile
) {
  background: var(--dd-shop-artwork);
}

.dd-shop-identity .dd-business-hero-cover {
  border-radius: 18px;
}

.phase6d-shop-page .phase6d-business-profile-overlay,
body.dd-discovery-v2 .dd-shop-identity .dd-business-hero-profile {
  left: var(--dd-shop-logo-left);
  bottom: calc(var(--dd-shop-logo-size) / -2);
}

.phase6d-shop-page .phase6d-business-profile-overlay .dd-inline-profile,
body.dd-discovery-v2 .dd-shop-identity .dd-business-hero-profile {
  box-sizing: border-box;
  width: var(--dd-shop-logo-size);
  height: var(--dd-shop-logo-size);
  border-width: var(--dd-shop-logo-border);
}

body.dd-discovery-v2 .dd-business-detail-hero.dd-shop-identity > div:first-child {
  align-self: stretch;
  min-width: 0;
  padding: calc(var(--dd-shop-logo-size) / 2 + 20px) clamp(18px, 2.5vw, 34px) 24px;
}

body.dd-discovery-v2 .dd-shop-identity h1 {
  margin: 8px 0 12px;
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.dd-shop-identity img[data-shop-photo][hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  :is(.phase6d-shop-page, .dd-shop-identity) {
    --dd-shop-cover-height: 220px;
    --dd-shop-logo-size: 84px;
    --dd-shop-logo-left: 16px;
    --dd-shop-logo-border: 4px;
  }
}
