:root{
  --seal439-red:#b51f2a;
  --seal439-red-soft:#fff4f5;
  --seal439-ink:#172f4f;
  --seal439-muted:#52617a;
  --seal439-line:#cbd8e6;
}

/* Booking creation: the sealing plan is a complete form section, never half a grid cell. */
.workflow-seal-plan.wide{
  grid-column:1/-1!important;
  box-sizing:border-box;
  width:100%;
  min-width:0;
  container-type:inline-size;
}

.workflow-seal-plan .workflow-choice-row{
  grid-template-columns:minmax(0,1fr) repeat(2,minmax(82px,96px))!important;
  box-sizing:border-box;
  width:100%;
}

.workflow-seal-plan .workflow-choice-row>span{
  padding-right:8px;
}

.workflow-seal-plan .workflow-choice-row label{
  box-sizing:border-box;
  gap:7px!important;
  border-color:var(--seal439-line)!important;
  color:var(--seal439-ink)!important;
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}

.workflow-seal-plan .workflow-choice-row label:has(input:checked){
  border-color:var(--seal439-red)!important;
  background:var(--seal439-red-soft)!important;
  box-shadow:0 0 0 1px rgba(181,31,42,.08);
}

.workflow-seal-plan .workflow-choice-row label:focus-within{
  outline:2px solid rgba(181,31,42,.2);
  outline-offset:2px;
}

.workflow-seal-plan .workflow-choice-row input{
  flex:0 0 auto;
}

.workflow-seal-plan>label[data-joint-sealing-party]{
  grid-column:1/-1!important;
}

.workflow-seal-plan>label.wide{
  grid-column:1/-1!important;
}

.workflow-seal-plan>label textarea{
  box-sizing:border-box;
  min-height:74px!important;
  resize:vertical;
}

@container (max-width:430px){
  .workflow-seal-plan .workflow-choice-row{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .workflow-seal-plan .workflow-choice-row>span{
    grid-column:1/-1;
    padding-right:0;
  }
}

