/* Kisa TCG admin layout fixes. Loaded as a same-origin stylesheet to avoid dependence on inline styles/nonces. */
html body header.site-header {
  position: relative !important;
  z-index: 1000 !important;
  overflow: visible !important;
}
html body header.site-header .header-actions { position: relative !important; z-index: 1001 !important; }
html body header.site-header details.account-menu { position: relative !important; z-index: 1002 !important; }
html body header.site-header details.account-menu[open] > div.account-pop {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(356px, calc(100vw - 24px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 96px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 18px !important;
  box-sizing: border-box !important;
  z-index: 2000 !important;
}
html body header.site-header details.account-menu[open] > div.account-pop,
html body header.site-header details.account-menu[open] > div.account-pop * {
  box-sizing: border-box !important;
  min-width: 0 !important;
}
html body header.site-header details.account-menu[open] > div.account-pop form.quick-login-form {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 11px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 0 !important;
}
html body header.site-header details.account-menu[open] > div.account-pop form.quick-login-form > label {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
html body header.site-header details.account-menu[open] > div.account-pop form.quick-login-form > label > input {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
}
html body header.site-header details.account-menu[open] > div.account-pop form.quick-login-form > button {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  box-sizing: border-box !important;
}
html body header.site-header details.account-menu[open] > div.account-pop .account-turnstile {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 66px !important;
  overflow: hidden !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
}
html body header.site-header details.account-menu[open] > div.account-pop .account-turnstile > .cf-turnstile {
  display: block !important;
  width: 300px !important;
  max-width: none !important;
  transform: scale(.90) !important;
  transform-origin: top left !important;
}
html body header.site-header details.account-menu[open] > div.account-pop .account-turnstile iframe {
  max-width: none !important;
}
html body header.site-header details.account-menu[open] > div.account-pop > a,
html body header.site-header details.account-menu[open] > div.account-pop > strong,
html body header.site-header details.account-menu[open] > div.account-pop > form:not(.quick-login-form) {
  display: block !important;
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}

/* Inventory/product listing filters: stacked fields and compact buttons. */
html body main.container form.admin-list-filters:not(.compact) {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)) !important;
  align-items: end !important;
  justify-content: start !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 14px 0 !important;
  padding: 14px !important;
  box-sizing: border-box !important;
}
html body main.container form.admin-list-filters:not(.compact) > label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 1.35 !important;
}
html body main.container form.admin-list-filters:not(.compact) > label > input,
html body main.container form.admin-list-filters:not(.compact) > label > select {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  box-sizing: border-box !important;
}
html body main.container form.admin-list-filters:not(.compact) > button,
html body main.container form.admin-list-filters:not(.compact) > a.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: end !important;
  width: auto !important;
  min-width: 88px !important;
  max-width: 100% !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 9px 14px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}
html body main.container form.admin-list-filters:not(.compact) > input[type="hidden"] { display: none !important; }

/* Product editor: predictable two-column fields, full-width description and media, separate featured control/save. */
html body main.container .admin-layout.admin-products-layout {
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr) !important;
  align-items: start !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
}
html body main.container .admin-layout.admin-products-layout > .admin-product-card,
html body main.container .admin-layout.admin-products-layout > .admin-stock-products {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html body main.container form.admin-product-editor {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: start !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html body main.container form.admin-product-editor > label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 1.35 !important;
}
html body main.container form.admin-product-editor > label > input:not([type="checkbox"]):not([type="hidden"]),
html body main.container form.admin-product-editor > label > select,
html body main.container form.admin-product-editor > label > textarea {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
html body main.container form.admin-product-editor > label > input:not([type="checkbox"]):not([type="hidden"]),
html body main.container form.admin-product-editor > label > select { min-height: 40px !important; padding: 8px 10px !important; }
html body main.container form.admin-product-editor > label > textarea { min-height: 110px !important; resize: vertical !important; }
html body main.container form.admin-product-editor > input[type="hidden"] { display: none !important; }
html body main.container form.admin-product-editor > label:has(textarea),
html body main.container form.admin-product-editor > label:has(input[type="file"]),
html body main.container form.admin-product-editor > #custom-product-filters,
html body main.container form.admin-product-editor > .admin-featured-block,
html body main.container form.admin-product-editor > .admin-product-form-actions { grid-column: 1 / -1 !important; }
html body main.container form.admin-product-editor .admin-featured-block {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  background: #faf8fc !important;
  border: 1px solid #e5dced !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}
html body main.container form.admin-product-editor .admin-featured-block > label.admin-featured-toggle {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}
html body main.container form.admin-product-editor .admin-featured-block > label.admin-featured-toggle > input[type="checkbox"] {
  display: inline-block !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}
html body main.container form.admin-product-editor .admin-featured-count {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}
html body main.container form.admin-product-editor .admin-product-form-actions {
  display: flex !important;
  grid-column: 1 / -1 !important;
  justify-content: flex-end !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 2px 0 0 !important;
}
html body main.container form.admin-product-editor .admin-product-form-actions > .admin-product-save {
  display: inline-flex !important;
  width: auto !important;
  min-width: 155px !important;
  max-width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 10px 18px !important;
}

/* Compact inventory movement controls; do not stretch the select across the whole panel. */
html body main.container section.stock-movement-history > form.admin-list-filters.compact {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: end !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 12px 0 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
}
html body main.container section.stock-movement-history > form.admin-list-filters.compact > label {
  display: flex !important;
  flex: 0 0 170px !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 170px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}
html body main.container section.stock-movement-history > form.admin-list-filters.compact select[name="mov_per_page"] {
  width: 170px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 40px !important;
  box-sizing: border-box !important;
}
html body main.container section.stock-movement-history > form.admin-list-filters.compact > button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 90px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 9px 14px !important;
}

html body main.container .table-wrap,
html body main.container .admin-stock-products .table-wrap { width: 100% !important; max-width: 100% !important; overflow-x: auto !important; }
html body main.container nav.admin-pagination { display: flex !important; justify-content: center !important; align-items: center !important; gap: 12px !important; flex-wrap: wrap !important; margin: 18px 0 !important; }
html body main.container nav.admin-pagination > .button { display: inline-flex !important; width: auto !important; min-width: 90px !important; padding: 9px 14px !important; }

@media (max-width: 1100px) {
  html body main.container .admin-layout.admin-products-layout { grid-template-columns: minmax(0, 1fr) !important; }
  html body main.container form.admin-product-editor { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  html body main.container form.admin-product-editor { grid-template-columns: minmax(0, 1fr) !important; }
  html body main.container form.admin-product-editor > label:has(textarea),
  html body main.container form.admin-product-editor > label:has(input[type="file"]),
  html body main.container form.admin-product-editor > #custom-product-filters,
  html body main.container form.admin-product-editor > .admin-featured-block,
  html body main.container form.admin-product-editor > .admin-product-form-actions { grid-column: 1 !important; }
  html body main.container form.admin-list-filters:not(.compact) { grid-template-columns: minmax(0, 1fr) !important; }
  html body main.container section.stock-movement-history > form.admin-list-filters.compact { width: 100% !important; }
  html body main.container section.stock-movement-history > form.admin-list-filters.compact > label { flex: 1 1 150px !important; width: auto !important; }
  html body main.container section.stock-movement-history > form.admin-list-filters.compact select[name="mov_per_page"] { width: 100% !important; }
  html body header.site-header details.account-menu[open] > div.account-pop {
    position: fixed !important;
    top: 78px !important;
    right: 12px !important;
    left: auto !important;
    width: min(356px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 96px) !important;
    overflow-y: auto !important;
  }
}
@media (max-width: 340px) {
  html body header.site-header details.account-menu[open] > div.account-pop { padding: 14px !important; }
  html body header.site-header details.account-menu[open] > div.account-pop .account-turnstile > .cf-turnstile { transform: scale(.82) !important; }
}


/* Public storefront account popup: the storefront uses .topbar/.account-menu-wrap,
   which is different from the admin header selectors above. */
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar {
  position: relative !important;
  z-index: 1000 !important;
  overflow: visible !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .header-actions {
  position: relative !important;
  z-index: 1001 !important;
  overflow: visible !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap {
  position: relative !important;
  z-index: 1002 !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  width: min(360px, calc(100vw - 24px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 96px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 18px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  z-index: 2000 !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover,
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover * {
  box-sizing: border-box !important;
  min-width: 0 !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover > form {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 11px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 12px 0 0 !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover > form > label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover > form input {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 42px !important;
  padding: 10px 12px !important;
  margin: 0 !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-turnstile {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 68px !important;
  overflow: hidden !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-turnstile > .cf-turnstile {
  display: block !important;
  width: 300px !important;
  max-width: none !important;
  transform: scale(.96) !important;
  transform-origin: top left !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-turnstile iframe {
  max-width: none !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-popover-submit {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-popover-link,
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-popover-register,
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-popover-guest-tracking {
  max-width: 100% !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 600px) {
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover {
    position: fixed !important;
    top: 78px !important;
    right: 12px !important;
    left: auto !important;
    width: min(360px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-turnstile > .cf-turnstile {
    transform: scale(.92) !important;
  }
}
@media (max-width: 360px) {
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover { padding: 14px !important; }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar details.account-menu-wrap[open] > .account-popover .account-turnstile > .cf-turnstile { transform: scale(.82) !important; }
}

/* KISA storefront header v4: compact, evenly spaced icon actions. */
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar {
  gap: clamp(10px, 1.8vw, 24px) !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(8px, 1.2vw, 14px) !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .instagram-header-button,
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .account-link,
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .cart-button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  border: 1px solid #dedfe3 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #202124 !important;
  box-sizing: border-box !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .account-link > span {
  display: none !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .instagram-header-button {
  color: #c8101e !important;
  border-color: #f0c8cb !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .cart-button {
  position: relative !important;
  gap: 0 !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .cart-button > span:first-child {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .cart-button > span:nth-child(2) {
  display: none !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .cart-button > strong {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 4px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  line-height: 19px !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .header-search {
  flex: 1 1 180px !important;
  min-width: 0 !important;
  max-width: 440px !important;
}

/* Reduce the prominence and vertical footprint of the home-page benefits strip. */
html body:is(.kisa-home-page, .kisa-inner-page) main .benefits {
  padding: 14px clamp(16px, 5vw, 72px) !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) main .benefits > div {
  gap: 10px !important;
  padding: 0 12px !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) main .benefit-icon {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 9px !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) main .benefits b {
  font-size: 11px !important;
}
html body:is(.kisa-home-page, .kisa-inner-page) main .benefits small {
  font-size: 9px !important;
  margin-top: 2px !important;
}
@media (max-width: 700px) {
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar {
    gap: 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .brand {
    flex: 0 1 118px !important;
    min-width: 78px !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .brand-logo {
    width: 100% !important;
    max-width: 118px !important;
    height: auto !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .header-search {
    flex: 1 1 60px !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .header-search input {
    min-width: 0 !important;
    width: 100% !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .header-actions {
    gap: 7px !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .instagram-header-button,
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .account-link,
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .cart-button {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 10px !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) main .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0 !important;
    padding: 12px 8px !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) main .benefits > div {
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 5px !important;
    text-align: center !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) main .benefits > div:last-child {
    border-right: 0 !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) main .benefit-icon {
    width: 30px !important;
    height: 30px !important;
    flex-basis: 30px !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) main .benefits b {
    font-size: 9px !important;
    line-height: 1.35 !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) main .benefits small {
    display: none !important;
  }
}
@media (max-width: 390px) {
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .brand {
    flex-basis: 88px !important;
    min-width: 72px !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .header-actions {
    gap: 5px !important;
  }
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .instagram-header-button,
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .account-link,
  html body:is(.kisa-home-page, .kisa-inner-page) header.topbar .cart-button {
    width: 33px !important;
    height: 33px !important;
    min-width: 33px !important;
  }
}
