.ipdf-fill-mobile-bottom-sheet[hidden] {
  display: none !important;
}

.ipdf-fill-mobile-bottom-sheet {
  background: rgba(255, 255, 255, .98);
  border: 1px solid #dbe4f0;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  bottom: calc(var(--ipdf-fill-mobile-bottom-toolbar-height, 72px) + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 42px rgba(15, 23, 42, .16);
  box-sizing: border-box;
  left: 0;
  max-height: min(46dvh, 238px);
  overflow: hidden;
  padding: 7px 12px 12px;
  position: fixed;
  right: 0;
  z-index: 88;
}

.ipdf-fill-mobile-bottom-sheet__handle {
  background: #cbd5e1;
  border-radius: 999px;
  height: 4px;
  margin: 0 auto 7px;
  width: 42px;
}

.ipdf-fill-mobile-bottom-sheet__header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ipdf-fill-mobile-bottom-sheet__title {
  color: #0f172a;
  font-family: var(--ipdf-fill-font);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.ipdf-fill-mobile-bottom-sheet__subtitle {
  color: #64748b;
  font-family: var(--ipdf-fill-font);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
}

.ipdf-fill-mobile-bottom-sheet__close,
.ipdf-fill-mobile-sheet-button {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 9px;
}

.ipdf-fill-mobile-bottom-sheet__close:active,
.ipdf-fill-mobile-sheet-button:active,
.ipdf-fill-mobile-sheet-button.is-active,
.ipdf-fill-mobile-sheet-button[aria-pressed="true"] {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.ipdf-fill-mobile-bottom-sheet__close.ipdf-fill-donor-close-button {
  background: #ffffff;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #111827;
  height: 30px;
  min-height: 30px;
  min-width: 30px;
  padding: 0;
  width: 30px;
}

.ipdf-fill-mobile-bottom-sheet__close.ipdf-fill-donor-close-button:hover {
  background: #e8eefc;
}

.ipdf-fill-mobile-bottom-sheet__close.ipdf-fill-donor-close-button:active {
  background: #e8eefc;
  color: #111827;
}

.ipdf-fill-mobile-bottom-sheet__body {
  display: grid;
  gap: 9px;
  max-height: calc(min(46dvh, 238px) - 67px);
  overflow-y: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.ipdf-fill-mobile-sheet-panel {
  display: grid;
  gap: 9px;
}

.ipdf-fill-mobile-sheet-panel[hidden] {
  display: none !important;
}

.ipdf-fill-mobile-control-group {
  display: grid;
  gap: 6px;
}

.ipdf-fill-mobile-control-title,
.ipdf-fill-mobile-control span {
  color: #334155;
  font-family: var(--ipdf-fill-font);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.ipdf-fill-mobile-color-row,
.ipdf-fill-mobile-segment-row {
  display: flex;
  gap: 7px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1px 1px 3px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ipdf-fill-mobile-color-row::-webkit-scrollbar,
.ipdf-fill-mobile-segment-row::-webkit-scrollbar {
  display: none;
}

.ipdf-fill-mobile-color-row .ipdf-fill-color-swatch {
  flex: 0 0 auto;
  height: 34px;
  width: 34px;
}

.ipdf-fill-mobile-control-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ipdf-fill-mobile-control {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ipdf-fill-mobile-control--wide {
  grid-column: span 2;
}

.ipdf-fill-mobile-select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #475569 50%) calc(100% - 16px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #475569 50%, transparent 50%) calc(100% - 11px) 50% / 6px 6px no-repeat,
    #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  font-family: var(--ipdf-fill-font);
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  min-width: 0;
  padding: 0 28px 0 11px;
}

.ipdf-fill-mobile-select:disabled,
.ipdf-fill-mobile-sheet-button:disabled {
  color: #94a3b8;
  cursor: default;
  opacity: .65;
}

.ipdf-fill-mobile-sheet-button .ipdf-fill-google-icon,
.ipdf-fill-mobile-sheet-button .ipdf-fill-mobile-svg-icon,
.ipdf-fill-mobile-bottom-sheet__close .ipdf-fill-mobile-svg-icon {
  color: currentColor;
  display: block;
  height: 22px;
  line-height: 1;
  width: 22px;
}

.ipdf-fill-mobile-bottom-sheet__close.ipdf-fill-donor-close-button .ipdf-fill-mobile-svg-icon {
  display: none;
}

.ipdf-fill-mobile-sheet-letter {
  color: currentColor;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.ipdf-fill-mobile-align-icon {
  display: grid;
  gap: 3px;
  width: 21px;
}

.ipdf-fill-mobile-align-icon span {
  background: currentColor;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 18px;
}

.ipdf-fill-mobile-align-icon span:nth-child(2) {
  width: 13px;
}

.ipdf-fill-mobile-align-icon--center {
  justify-items: center;
}

.ipdf-fill-mobile-align-icon--right {
  justify-items: end;
}

.ipdf-fill-mobile-action-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ipdf-fill-mobile-action-card {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: var(--ipdf-fill-font);
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 82px;
  padding: 12px;
  text-align: center;
}

.ipdf-fill-mobile-action-card:active,
.ipdf-fill-mobile-action-card.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #2563eb;
}

.ipdf-fill-mobile-action-card--danger:active,
.ipdf-fill-mobile-action-card--danger.is-active {
  background: #fff1f2;
  border-color: #fda4af;
  color: #e11d48;
}

.ipdf-fill-mobile-action-card .ipdf-fill-mobile-svg-icon {
  height: 26px;
  width: 26px;
}

.ipdf-fill-mobile-sheet-hint {
  color: #64748b;
  font-family: var(--ipdf-fill-font);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 420px) {
  .ipdf-fill-mobile-bottom-sheet {
    max-height: min(50dvh, 250px);
  }

  .ipdf-fill-mobile-control-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ipdf-fill-mobile-control--wide {
    grid-column: auto;
  }
}
