.jv-options-wrapper {
  margin: 1rem 0;
}

.jv-opt-group {
  border: 1px solid #ddd;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.jv-opt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.jv-opt-row input[type="checkbox"],
.jv-opt-row input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  cursor: pointer;
  flex: 0 0 auto;
}

.jv-opt-thumb img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.jv-opt-label {
  flex: 1;
}

.jv-opt-price {
  font-size: 0.9em;
  opacity: 0.85;
}

.jv-opt-totals {
  margin-top: 1rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #fafafa;
}

.jv-opt-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.2rem;
}

.jv-opt-totals > div:last-child {
  margin-bottom: 0;
  font-size: 1.05em;
}

.jv-admin-group input[type="text"] {
  min-width: 320px;
}

.jv-admin-group-header-grid {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) minmax(130px, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.8rem;
}

.jv-admin-group-header-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.jv-admin-label {
  font-size: 12px;
  font-weight: 600;
  color: #50575e;
}

.jv-admin-group-label-input,
.jv-admin-group-header-grid select {
  width: 100%;
  max-width: none;
}

.jv-admin-group-required {
  justify-content: center;
}

.jv-admin-group-required .jv-admin-label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.jv-admin-options {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.jv-admin-option {
  display: grid;
  grid-template-columns: minmax(250px, 2fr) minmax(110px, 0.8fr) minmax(180px, 1.2fr) minmax(130px, 0.9fr) auto;
  gap: 0.75rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  background: #fff;
}

.jv-admin-option > div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.jv-admin-option-label {
  width: 100%;
  max-width: none;
}

.jv-linked-product-id {
  width: 100%;
}

.jv-admin-price-override {
  width: 100%;
}

.jv-admin-linked-title {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

.jv-admin-option-remove {
  justify-content: center;
}

.jv-options-deposit-notice {
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f6f7f7;
  border-left: 3px solid #2271b1;
  font-size: 0.9em;
}

.jv-options-deposit-amount {
  margin: 0.6rem 0 0;
  padding: 0.6rem 0.75rem;
  background: #eef6ee;
  border-left: 3px solid #46b450;
  font-weight: 600;
}

tr.jv-cart-remaining th,
tr.jv-cart-remaining td {
  font-weight: 700;
}

/* Cart / checkout: highlight informational total rows under line items */
.woocommerce-cart-form .cart_item dl.variation dd p,
.woocommerce-checkout-review-order-table .cart_item dl.variation dd p {
  margin: 0;
}

.woocommerce-cart-form .cart_item dl.variation dt,
.woocommerce-checkout-review-order-table .cart_item dl.variation dt {
  font-weight: 600;
}

.woocommerce-cart-form .cart_item dl.variation dt:last-of-type,
.woocommerce-cart-form .cart_item dl.variation dd:last-of-type,
.woocommerce-checkout-review-order-table .cart_item dl.variation dt:nth-last-child(2),
.woocommerce-checkout-review-order-table .cart_item dl.variation dd:nth-last-child(2) {
  font-weight: 700;
}
