/* Vertical-agnostic pack surfaces — Bootstrap density by device_class */

.pack-surface {
  --pack-touch-min: 2.75rem;
  max-width: 40rem;
  margin-inline: auto;
}

.pack-surface--laptop {
  max-width: 56rem;
}

.pack-surface--tablet {
  max-width: 48rem;
}

.pack-surface--handheld {
  max-width: 28rem;
  padding-inline: 0.25rem;
}

.pack-surface--touch .form-control,
.pack-surface--touch .form-select,
.pack-surface--touch .btn {
  min-height: var(--pack-touch-min);
  font-size: 1.05rem;
}

.pack-surface--touch .btn-lg,
.pack-surface--handheld .pack-surface__cta .btn {
  min-height: 3.25rem;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

.pack-surface--touch .form-label {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.pack-surface__chrome {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bs-body-bg);
  padding-block: 0.5rem;
}

.pack-surface fieldset {
  border-radius: 0.75rem !important;
}

.pack-surface .signature-pad-container {
  min-height: 10rem;
  touch-action: none;
  background: #fff;
}

.pack-surface .semantic-signature-pad__canvas {
  display: block;
  width: 100%;
  height: 10rem;
  border-radius: 0.5rem;
  cursor: crosshair;
}

@media (max-width: 576px) {
  .pack-surface {
    max-width: 100%;
  }

  .pack-surface .btn {
    width: 100%;
  }

  .pack-surface .d-flex.gap-2 {
    flex-direction: column;
  }
}
