.brant-gift-box {
  display: grid;
  gap: 1.25rem;
}

.brant-gift-box[hidden],
.brant-gift-box [hidden] {
  display: none !important;
}

.brant-gift-box-picker {
  display: grid;
  gap: .35rem;
}

.brant-gift-box-picker label {
  font-weight: 600;
}

.brant-gift-box-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .5rem;
}

.brant-gift-box-picker select {
  min-width: 0;
  width: 100%;
}

.brant-gift-box-picker p {
  margin: 0;
}

.brant-gift-box-contents h3 {
  margin: 0 0 .25rem;
}

.brant-gift-box-contents > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.brant-gift-box-product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .375rem .875rem;
  border-bottom: 1px solid rgba(127, 127, 127, .35);
  padding: .625rem 0;
}

.brant-gift-box-product-info {
  flex: 1 1 11rem;
}

.brant-gift-box-product-info small {
  display: block;
}

.brant-gift-box-product-actions,
.brant-gift-box-quantity {
  display: flex;
  align-items: center;
}

.brant-gift-box-product-actions {
  gap: .625rem;
}

.brant-gift-box-quantity button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
}

.brant-gift-box-quantity span {
  min-width: 2rem;
  text-align: center;
}

.brant-gift-box-product-actions .brant-gift-box-remove {
  padding: .5rem .25rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
}

.brant-gift-box-summary {
  display: grid;
  gap: .375rem;
}

.brant-gift-box-summary progress {
  --brant-progress-fill: var(--theme-palette-color-2, #ee4423);
  --brant-progress-track: var(--theme-border-color, #edeff2);
  appearance: none;
  width: 100%;
  height: .5rem;
  margin-bottom: .25rem;
  border: 0;
  border-radius: 1rem;
  background: var(--brant-progress-track);
  overflow: hidden;
}

.brant-gift-box-summary progress::-webkit-progress-bar {
  background: transparent;
}

.brant-gift-box-summary progress::-webkit-progress-value {
  background: var(--brant-progress-fill);
}

.brant-gift-box-summary progress::-moz-progress-bar {
  background: var(--brant-progress-fill);
}

.brant-gift-box-capacity,
.brant-gift-box-price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .75rem;
}

.brant-gift-box-price output {
  white-space: nowrap;
}

.brant-gift-box-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .625rem;
}

.brant-gift-box-order-quantity {
  align-self: center;
}

.brant-gift-box-order-quantity input[type="number"] {
  appearance: textfield;
  width: max(2rem, 4ch);
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
}

.brant-gift-box-order-quantity input::-webkit-inner-spin-button,
.brant-gift-box-order-quantity input::-webkit-outer-spin-button {
  appearance: none;
}

.brant-gift-box [data-box-limit] {
  margin: 0;
}

@media (max-width: 480px) {
  .brant-gift-box-picker-controls {
    grid-template-columns: minmax(0, 1fr);
  }
}
