#shareDesignDialog {
  box-sizing: border-box;
  width: min(660px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid #ded6c8;
  border-radius: 18px;
  background: #fffdf8;
  color: #29352d;
}
#shareDesignDialog::backdrop { background: #26241db0; }
#shareDesignDialog form { float: right; }
#shareDesignDialog h2 { margin: 0 48px 16px 0; min-height: 38px; display: flex; align-items: center; }
#shareDesignStatus:empty { display: none; }
#shareDesignDialog [hidden],
#shareDesignDialog .share-design-actions > [hidden] { display: none; }
#shareDesignImage { display: block; width: 100%; height: auto; border-radius: 10px; }
.share-design-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#shareDesignDialog button, .share-design-actions a {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #385044;
  border-radius: 24px;
  color: #385044;
  background: #fffdf8;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

#builderShareDesign {
  display: block;
  margin: 12px auto;
  padding: 8px 16px;
  border: 1px solid #385044;
  border-radius: 24px;
  background: #fffdf8;
  color: #385044;
  font: inherit;
  cursor: pointer;
}
#builderShareDesign[hidden] { display: none; }

.share-design-help { text-align: center; margin: 8px 0 0; font-size: .875rem; line-height: 1.45; color: #4b594e; }

@media (max-width: 480px) {
  #shareDesignDialog .share-design-actions :is(a, button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 5px 10px;
    font-size: .8125rem;
    line-height: 1.25;
  }
}

#shareEmailText {
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid #ded6c8;
  border-radius: 8px;
  background: #fffdf8;
  color: inherit;
  font: inherit;
}
