.popomee-install-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: start;
  gap: 8px;
}

body.page.page-child .popomee-install-title-row > .entry-title {
  min-width: 0;
  margin: 0;
  line-break: strict;
  overflow-wrap: anywhere;
}

body.page.page-child .popomee-install-title-row {
  margin: 10px 0;
}

.popomee-install-button {
  box-sizing: border-box;
  display: flex;
  width: 52px;
  height: 44px;
  min-height: 44px;
  padding: 3px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid #31585b;
  border-radius: 6px;
  background: #fffdf8;
  color: #254548;
  font: inherit;
}

.popomee-install-button[hidden] {
  display: none;
}

.popomee-install-button:hover {
  background: #f5f1e6;
}

.popomee-install-button:focus-visible,
.popomee-install-dialog button:focus-visible {
  outline: 3px solid #31585b;
  outline-offset: 3px;
}

.popomee-install-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.popomee-install-button span {
  font-size: 0.6875rem;
  line-height: 1;
}

.popomee-install-button[data-install-mode="help"] span {
  font-size: 0.625rem;
  white-space: nowrap;
}

.popomee-install-dialog {
  width: min(420px, calc(100% - 32px));
  padding: 20px;
  border: 1px solid #768789;
  border-radius: 6px;
  background: #fffdf8;
  color: #243638;
}

.popomee-install-dialog::backdrop {
  background: rgb(0 0 0 / 25%);
}

.popomee-install-dialog h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1.4;
}

.popomee-install-dialog p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.popomee-install-dialog button {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #768789;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
}

@media screen and (max-width: 480px) {
  .popomee-install-title-row {
    grid-template-columns: minmax(0, 1fr) 50px;
    gap: 3px;
  }

  .popomee-install-button {
    width: 50px;
    padding-inline: 2px;
  }

  body.page.page-child .popomee-install-title-row {
    margin: 0 0 4px;
    padding-block: 7px;
  }

  body.page.page-child .popomee-install-title-row[data-install-app="collab-calendar"] > .entry-title {
    /* Cocoonの左右16pxを残すと、320〜360px幅で末尾だけ改行されるため、このタイトル行に限って除去する。 */
    padding-inline: 0;
    font-size: 1.4rem;
    white-space: nowrap;
  }
}
