/* Compact Young Driver Fee controls. Keeps the primary toggle beside DOB and
   prevents the generic .nr-grid input rule from stretching checkboxes. */
.nr-grid label#primaryYoungDriverFeeControl{
  grid-column:2!important;
  justify-self:start;
  align-self:end;
  width:min(100%,430px);
  min-height:44px;
  margin:0 0 18px;
  padding:9px 12px;
  display:flex!important;
  grid-template-columns:none!important;
  flex-direction:row;
  align-items:center;
  gap:9px!important;
  border:1px solid #d9e4de;
  border-radius:10px;
  background:#f5faf7;
  color:#315742;
  font-size:12px;
  line-height:1.3;
}

.young-driver-fee-toggle input[type="checkbox"],
.nr-grid .young-driver-fee-toggle input[type="checkbox"]{
  appearance:auto;
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  max-width:18px!important;
  padding:0!important;
  margin:0!important;
  border-radius:4px!important;
  box-shadow:none!important;
  accent-color:#1f6a48;
  flex:0 0 18px;
}

#primaryYoungDriverFeeControl span{
  display:block;
  min-width:0;
  font-weight:800;
}

#primaryYoungDriverFeeControl.fee-inactive{
  opacity:.58;
  background:#f7f9f8;
  border-color:#e3e9e6;
  color:#718078;
}

#primaryYoungDriverFeeControl:has(input:checked){
  opacity:1;
  border-color:#a8cfb7;
  background:#edf8f1;
  color:#24583b;
}

.additional-driver-card > .young-driver-fee-toggle{
  display:inline-flex;
  width:auto;
  max-width:100%;
  margin-top:10px;
  padding:8px 10px;
  border:1px solid #dce5e0;
  border-radius:9px;
  background:#f6faf7;
  font-size:12px;
  line-height:1.3;
}

[data-theme="dark"] .nr-grid label#primaryYoungDriverFeeControl,
[data-theme="dark"] .additional-driver-card > .young-driver-fee-toggle{
  background:#17241d;
  border-color:#355043;
  color:#c4dfcf;
}

[data-theme="dark"] #primaryYoungDriverFeeControl.fee-inactive{
  background:#141d19;
  border-color:#2a3730;
  color:#82928a;
}

@media(max-width:760px){
  .nr-grid label#primaryYoungDriverFeeControl{
    grid-column:1!important;
    width:100%;
    margin:0;
  }
}
