/* MISCHEL 03.11.2026 – scoped visual fixes, no shipping/order logic. */
/* Align all address identity checkboxes on the LEFT, immediately beside text. */
#test-customer-profile label.checkout-check,
#shop-checkout-form label.checkout-check,
#test-profile-register label.checkout-check,
label.mischel-inline-address-check {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 9px !important;
  width: auto !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  vertical-align: middle !important;
  cursor: pointer;
}
#test-customer-profile label.checkout-check input[type="checkbox"],
#shop-checkout-form label.checkout-check input[type="checkbox"],
#test-profile-register label.checkout-check input[type="checkbox"],
label.mischel-inline-address-check input[type="checkbox"] {
  appearance: auto;
  position: static !important;
  float: none !important;
  flex: 0 0 auto !important;
  order: -1 !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 0 !important;
  transform: none !important;
  vertical-align: middle !important;
}
/* A checkbox sometimes arrives in a two-column address form. Occupy one row. */
.mischel-inline-address-check { grid-column: 1 / -1 !important; justify-self: start !important; }
.mischel-inline-address-check :is(span,small){margin:0;}
/* Consistent warm white fields; do not recolor order statuses or disabled/invalid inputs. */
:is(#catalog-admin,#sets-admin,#admin,#promo-admin,#stats-admin,#test-orders-admin,
    #mischel-shipping-admin,#business-admin,#mischel-community-admin,
    #mischel-notifications-admin,#mischel-security-admin,
    #test-customer-profile,#shop-checkout-form)
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),select,textarea)
  :not(:disabled):not([aria-invalid="true"]) {
    background-color:#fffdf9 !important;
    color:#30291f;
    border-color:#d8c7b3;
}
:is(#catalog-admin,#sets-admin,#admin,#promo-admin,#stats-admin,#test-orders-admin,
    #mischel-shipping-admin,#business-admin,#mischel-community-admin,
    #mischel-notifications-admin,#mischel-security-admin,#test-customer-profile)
  :is(input,select,textarea):focus-visible {
    outline:2px solid #b88a44 !important;
    outline-offset:1px;
}
/* Control consistency. Do not override state colors, badge colors or tab sizes. */
:is(#catalog-admin,#sets-admin,#admin,#promo-admin,#stats-admin,#test-orders-admin,
    #mischel-shipping-admin,#business-admin,#mischel-community-admin,
    #mischel-notifications-admin,#mischel-security-admin)
  button:not(.close):not(.icon):not(.mischel-workspace-tab):not(.mischel-workspace-close)
  {border-radius:7px;min-height:34px;}
:is(#catalog-admin,#sets-admin,#admin,#promo-admin,#stats-admin,#test-orders-admin,
    #mischel-shipping-admin,#business-admin,#mischel-community-admin,
    #mischel-notifications-admin,#mischel-security-admin)
  button:focus-visible {outline:2px solid #b88a44;outline-offset:2px;}
/* Keep promo price-preview filters visible; expose roughly 5-6 rows. */
#promo-preview .mischel-price-preview-table-scroll{
  max-height:min(65vh,650px);
  min-height:260px;
  overflow-y:auto;
  overflow-x:auto;
}
@media(max-width:640px){
  #promo-preview .mischel-price-preview-table-scroll{max-height:58vh;min-height:180px;}
  label.mischel-inline-address-check{white-space:normal;}
}


/* 03.11.2026 v2: unify the two product editor UIs. The underlying
   product/set record logic, autofill and focus/disabled state are untouched. */
:is(#catalog-admin, #sets-admin) :is(
 input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
 select, textarea):not(:disabled):not([aria-invalid="true"]) {
  box-sizing: border-box !important;
  background: #fffdf9 !important;
  border: 1px solid #d8c7b3 !important;
  border-radius: 5px !important;
  color: #30291f !important;
}
:is(#catalog-admin #catalog-form, #sets-admin #set-editor)
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select):not(:disabled) {
  min-height: 43px !important;
}
:is(#catalog-admin #catalog-form, #sets-admin #set-editor)
  textarea:not(:disabled) {min-height: 86px;}
:is(#catalog-admin #catalog-new, #sets-admin #set-new) {
  box-sizing: border-box !important;
  min-height: 42px !important;
  border-radius: 8px !important;
  border-color: #d2b994 !important;
  background: #fffaf4 !important;
  color: #49331e !important;
}
:is(#catalog-admin #catalog-new, #sets-admin #set-new):hover {
  background: #efe2cd !important;
}
/* The two proposed numbers may both be 7. Show only one *identical*
   offer; re-use-of-free-numbers and all other number controls stay intact. */
#sets-admin #set-number-tools .mischel-number-actions > button.mischel-same-number-choice {
  display: none !important;
}
/* Prevent anchor targets or form headings jumping under fixed admin tabs. */
:is(#catalog-admin, #sets-admin) :is(h2, .form-row, #set-number-tools) {
  scroll-margin-top: 90px;
}
@media(max-width:750px){
 :is(#catalog-admin #catalog-new, #sets-admin #set-new){width:100%;}
}
