/* Shorter checkout brief.
   Phones previously showed every choice tile on its own row, which made step 2
   several screens long. Keep two tiles per row down to small phones, and keep
   the optional parts of the brief behind a closed "Optional" disclosure. */

@media (max-width: 700px) and (min-width: 340px) {
  .checkout-feature-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .checkout-feature-choices label {
    min-height: 0;
    gap: 8px;
    padding: 9px 10px;
  }

  .checkout-feature-choices input {
    width: 17px;
    height: 17px;
  }
}

.checkout-optional {
  margin-top: 16px;
  border: 2px solid var(--line);
  background: var(--white);
}

.checkout-optional > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.checkout-optional > summary::-webkit-details-marker {
  display: none;
}

.checkout-optional > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.3rem;
  line-height: 1;
}

.checkout-optional[open] > summary::after {
  content: "\2212";
}

.checkout-optional[open] > summary {
  border-bottom: 2px solid var(--line);
}

.checkout-optional > summary:hover {
  background: var(--cream);
}

.checkout-optional > summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.checkout-optional__body {
  padding: 14px 15px 16px;
}

.checkout-optional__body > .checkout-requirement-group > .checkout-feature-group-title {
  margin-top: 0;
  border-top: 0;
}
