/* Publication dialog: address, payment with Wave, then the link */
.modal-box.pd-box {
  width: min(400px, calc(100vw - 24px));
  padding: 22px 24px 20px;
}
.pd-box .modal-title {
  margin-bottom: 14px;
}
.pd-box .modal-title h2 {
  font-size: 21px;
  line-height: 1.25;
}
.pd-root {
  display: grid;
  gap: 14px;
}
.pd-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 650;
  font-size: 13.5px;
}
.address-input.pd-address {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  margin: 0;
  padding: 0 6px 0 12px;
  border: 1px solid var(--si-line, #d7dfe6);
  border-radius: 10px;
  background: #fff;
}
.address-input.pd-address:focus-within {
  border-color: var(--accent, #2f6687);
  box-shadow: 0 0 0 3px rgb(47 102 135 / 16%);
}
.address-input.pd-address.is-locked {
  background: var(--si-soft, #f4f8fb);
}
.address-input.pd-address input {
  /* The input is as wide as its text, so that ".inv.ci" stays right after the name */
  field-sizing: content;
  flex: 0 1 auto;
  width: auto;
  min-width: 4ch;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.pd-padlock {
  display: none;
  color: var(--si-muted, #5b6b78);
}
.is-locked .pd-padlock {
  display: inline-grid;
}
.pd-padlock .icon {
  width: 18px;
  height: 18px;
}
.pd-suffix {
  color: var(--si-muted, #5b6b78);
}
.pd-toggle {
  flex: none;
  margin-left: auto;
  width: 34px;
  height: 34px;
}
.pd-toggle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.address-status {
  min-height: 18px;
  margin: 6px 0 0;
  color: var(--si-muted, #5b6b78);
  font-size: 12.5px;
}
.address-status[data-state='available'] {
  color: var(--si-yes, #1f7a5a);
  font-weight: 600;
}
.address-status[data-state='available']::before {
  content: '✓';
  margin-right: 5px;
}
.address-status[data-state='error'] {
  color: #8a1f17;
}
.pd-done {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}
.pd-tick {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--si-yes, #1f7a5a);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.pd-lead {
  margin: 0;
  color: var(--si-muted, #5b6b78);
}
.pd-edit {
  border-top: 1px solid var(--si-line, #e3e9ee);
  padding-top: 14px;
}
.pd-edit > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.pd-edit form {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}
.pd-edit .btn {
  margin: 10px 0 0;
}
.pp-help,
.pp-muted {
  margin: 8px 0 0;
  color: var(--si-muted, #5b6b78);
  font-size: 12.5px;
  text-align: center;
}
.pp-wave {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #1dc8ff;
  color: #04283a;
  font-weight: 700;
  font-size: 15.5px;
}
.pp-wave:hover:not(:disabled) {
  background: #12b9f0;
}
.pp-wave:focus-visible {
  outline: 3px solid #04283a;
  outline-offset: 2px;
}
.pp-wave:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pp-wave-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #04283a;
  box-shadow:
    inset 0 0 0 4px #1dc8ff,
    0 0 0 2px #04283a;
}
.pp-ok {
  margin: 0;
  color: var(--si-yes, #1f7a5a);
  font-weight: 700;
}
.pp-wait,
.pp-warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.pp-wait {
  background: #fff6e5;
  color: var(--si-wait, #94570a);
}
.pp-warn {
  background: #fdecea;
  color: #8a1f17;
}
.pp-alt {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
}
.pp-publish {
  width: 100%;
  min-height: 50px;
  font-size: 16px;
}
.pp-link {
  display: flex;
  gap: 8px;
}
.pp-link input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--si-line, #e3e9ee);
  border-radius: 10px;
  background: var(--si-soft, #f4f8fb);
}
.pp-link .btn {
  margin: 0;
}
.pp-share {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.pp-share .btn {
  margin: 0;
  min-height: 44px;
  justify-content: center;
  text-align: center;
}
.pp-whatsapp {
  background: #25d366;
  border-color: #25d366;
  color: #04301a;
  text-decoration: none;
}
.pp-more {
  margin: 0;
  text-align: center;
  font-size: 13px;
}
.gd .si-hint {
  margin-top: 0;
}
.pp-check {
  border: 1px solid var(--si-line, #e3e9ee);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13.5px;
}
.pp-check > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  cursor: pointer;
  list-style: none;
  color: var(--si-muted, #5b6b78);
  font-weight: 600;
}
.pp-check > summary::-webkit-details-marker {
  display: none;
}
.pp-check > summary::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c3ccd4;
}
.pp-check[data-state='todo'] > summary {
  color: #7a4a06;
}
.pp-check[data-state='todo'] > summary::before {
  background: #e09a1f;
}
.pp-check[data-state='ok'] > summary {
  color: var(--si-yes, #1f7a5a);
}
.pp-check[data-state='ok'] > summary::before {
  background: var(--si-yes, #1f7a5a);
}
.pp-check > summary::after {
  content: '';
  flex: none;
  margin-left: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  transform: rotate(45deg);
  opacity: 0.6;
}
.pp-check[open] > summary::after {
  transform: rotate(-135deg);
}
.pp-check[open] {
  padding-bottom: 8px;
}
.pp-link {
  margin-top: 4px;
}

/* What would reach the guests as it is: shown once before the payment, to correct or to keep */
.pp-risk {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e0b25a;
  border-radius: 10px;
  background: #fff8e8;
  color: #5a3f08;
  font-size: 13.5px;
}
.pp-risk ul {
  margin: 8px 0;
  padding-left: 18px;
}
.pp-risk li {
  margin: 3px 0;
}
.pp-risk p {
  margin: 6px 0 10px;
}
.pp-risk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The warning above already says what to check: the checklist row would repeat it */
.pd-root:has(.pp-risk) > .pp-check {
  display: none;
}
.pp-risk li {
  font-size: 13px;
}

/* Other addresses for the invitation, under the field */
.pd-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 2px 0 12px;
}
.pd-suggest-label {
  color: var(--muted, #5f6368);
  font-size: 12px;
}
.pd-chip {
  padding: 5px 11px;
  border: 1px solid #c5d1db;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #2d2d2d);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.pd-chip:hover,
.pd-chip:focus-visible {
  border-color: var(--accent, #39799f);
  color: var(--accent, #39799f);
}
