body {
  font-family: "Inter", sans-serif;
}

button,
input,
select,
textarea,
.btn,
.tooltip,
.popover {
  font-family: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #5b5c65;
  opacity: 1;
}

.swal2-container.swal2-bottom-end {
  padding: 24px;
}

.swal2-popup.app-toast {
  padding: 12px 14px;
  border: 1px solid #ebecf0;
  border-radius: 12px;
  box-shadow: 0 12px 32px -8px rgba(16, 24, 40, 0.25);
  font-family: "Inter", sans-serif;
}
.swal2-popup.app-toast .swal2-title {
  color: #202125;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
}
.swal2-popup.app-toast .swal2-html-container {
  color: #5d616c;
  font-size: 15px;
}
.swal2-popup.app-toast .swal2-close {
  font-size: 22px;
}

html[data-theme=dark] .swal2-popup.app-toast {
  background: #1b1c21;
  border-color: #2e3038;
}
html[data-theme=dark] .swal2-popup.app-toast .swal2-title {
  color: #ececf1;
}
html[data-theme=dark] .swal2-popup.app-toast .swal2-html-container {
  color: #9a9ba6;
}

@media (max-width: 767px) {
  .swal2-container.swal2-bottom-end {
    padding: 12px 12px 86px;
  }
}
.no-products-message {
  padding: 48px 20px;
  background: #ffffff;
  border: 1px solid #f7f7f7;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #5b5c65;
  font-size: 14px;
  text-align: center;
}
.no-products-message p {
  margin: 0;
}
.no-products-message strong {
  color: #202125;
}

.list-empty__clear {
  min-height: 40px;
  margin-top: 16px;
  padding: 8px 14px;
  border: 1px solid #dcdde1;
  border-radius: 8px;
  background: #ffffff;
  color: #202125;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.list-empty__clear:hover {
  background: #f7f8f9;
}

.footer {
  transition: margin-left 0.25s ease, width 0.25s ease;
}

.top-bar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeeeee;
  background-color: #ffffff;
  transition: margin-left 0.25s ease;
}

.main-container {
  min-height: 85vh;
  transition: margin-left 0.25s ease;
}

#showSidebar {
  width: 52px;
  height: 52px;
  padding: 15px;
  border-radius: 0;
  color: #111111;
  background-color: transparent !important;
  cursor: pointer;
  z-index: 998;
}
#showSidebar img {
  opacity: 0.85;
}
#showSidebar {
  transition: background-color 0.15s ease;
}
#showSidebar:hover {
  background-color: #f7f8f9 !important;
}

.sidebar-toggle .sidebar {
  left: 0;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  z-index: 999;
  width: 240px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: inset -1px 0 0 #ebecf0;
  overflow-y: auto;
  font-family: "Inter", sans-serif;
  transition: left 0.25s ease;
}
.sidebar * {
  font-family: "Inter", sans-serif;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px;
  padding: 12px 0;
}

.sidebar-logo {
  display: inline-flex;
  align-items: center;
  color: #222222;
  font-size: 17px;
  font-weight: 800;
  line-height: 20px;
}
.sidebar-logo:hover, .sidebar-logo:focus {
  color: #222222;
  text-decoration: none;
}
.sidebar-logo img {
  display: block;
  width: 89px;
  height: 25px;
}

.sidebar-collapse-button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #202125;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.sidebar-collapse-button:hover {
  background: #ebecf0;
}
.sidebar-collapse-button img,
.sidebar-collapse-button svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}

.page-title {
  margin: 0 auto 0 0;
  padding-left: 15px;
  color: #000000;
  font-size: 22px;
  transition: padding-left 0.25s ease;
}

@media (min-width: 1200px) {
  #showSidebar {
    display: none;
  }
  .sidebar {
    left: 0;
    box-shadow: none;
  }
  body:not(.sidebar-toggle) .sidebar {
    width: 68px;
    overflow-x: hidden;
    scrollbar-width: none;
  }
  body:not(.sidebar-toggle) .sidebar::-webkit-scrollbar {
    display: none;
  }
  body:not(.sidebar-toggle) .sidebar > * {
    flex-shrink: 0;
  }
  body:not(.sidebar-toggle) .sidebar-brand {
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 14px 0 6px;
  }
  body:not(.sidebar-toggle) .sidebar-logo {
    width: 24px;
    overflow: hidden;
  }
  body:not(.sidebar-toggle) .sidebar-logo img {
    max-width: none;
  }
  body:not(.sidebar-toggle) .sidebar-pin-button {
    display: none;
  }
  body:not(.sidebar-toggle) .sidebar-collapse-button {
    display: flex;
    width: 36px;
    height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
  }
  body:not(.sidebar-toggle) .sidebar-collapse-button img,
  body:not(.sidebar-toggle) .sidebar-collapse-button svg {
    width: 20px;
    height: 20px;
    transform: rotate(180deg);
  }
  body:not(.sidebar-toggle) .sidebar-site-name {
    justify-content: center;
    min-height: 0;
    margin: 8px auto 10px;
    padding: 4px;
    border-radius: 50%;
  }
  body:not(.sidebar-toggle) .site-picker,
  body:not(.sidebar-toggle) .site-picker-icon {
    display: none;
  }
  body:not(.sidebar-toggle) .sidebar-navigation {
    padding: 0 12px 12px;
  }
  body:not(.sidebar-toggle) .nav-pinned-label,
  body:not(.sidebar-toggle) .nav-pin,
  body:not(.sidebar-toggle) .nav-section-title {
    display: none;
  }
  body:not(.sidebar-toggle) .nav-section {
    margin-bottom: 0;
  }
  body:not(.sidebar-toggle) .nav-section::before {
    content: "";
    display: block;
    width: 24px;
    margin: 8px auto;
    border-top: 1px solid #ebecf0;
  }
  body:not(.sidebar-toggle) .nav-section > ul {
    max-height: none;
    margin: 0;
    padding: 0;
    border-left: 0;
    visibility: visible;
  }
  body:not(.sidebar-toggle) .nav-divider {
    display: none;
  }
  body:not(.sidebar-toggle) .sidebar-navigation .nav-item a {
    justify-content: center;
    min-height: 40px;
    margin-bottom: 2px;
    padding: 0;
    font-size: 0;
  }
  body:not(.sidebar-toggle) .sidebar-navigation .nav-item a .nav-item-icon {
    width: 18px;
    height: 18px;
  }
  body:not(.sidebar-toggle) .sidebar-user-area {
    margin: 0 auto 12px;
  }
  body:not(.sidebar-toggle) .account-prefs {
    justify-content: center;
    margin-bottom: 8px;
  }
  body:not(.sidebar-toggle) .account-prefs__row + .account-prefs__row {
    display: none;
  }
  body:not(.sidebar-toggle) .account-prefs__seg {
    flex-direction: column;
  }
  body:not(.sidebar-toggle) .sidebar-user {
    flex-direction: column;
    gap: 6px;
    padding: 6px;
  }
  body:not(.sidebar-toggle) .sidebar-user__text {
    display: none;
  }
  body:not(.sidebar-toggle) .main-container,
  body:not(.sidebar-toggle) .top-bar {
    margin-left: 68px;
  }
  body:not(.sidebar-toggle) .footer {
    width: calc(100% - 68px);
    margin-left: 68px;
  }
  .sidebar-toggle .main-container,
  .sidebar-toggle .top-bar {
    margin-left: 240px;
  }
  .sidebar-toggle .footer {
    width: calc(100% - 240px);
    margin-left: 240px;
  }
  .page-title-padding {
    padding-left: 0;
  }
}
@media screen and (max-width: 1199px) {
  .sidebar {
    width: 240px;
    left: -260px;
    box-shadow: inset -1px 0 0 #ebecf0, 0 2px 19px 0 rgba(211, 211, 211, 0.5);
  }
  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
  }
  body.admin-sidebar-open {
    overflow: hidden;
  }
  body.admin-sidebar-open .admin-sidebar-backdrop {
    display: block;
  }
  body.admin-sidebar-open .sidebar {
    z-index: 1001;
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  body .top-bar {
    display: flex;
    justify-content: flex-start;
    min-height: 56px;
    border-bottom: 1px solid #ebecf0;
  }
  body .top-bar .logo {
    display: none;
  }
}
.top-bar-logo {
  display: none;
}

@media screen and (max-width: 767px) {
  .top-bar {
    min-height: 55px;
  }
  body .top-bar {
    position: relative;
    justify-content: flex-start;
  }
  body .top-bar .top-bar-logo {
    display: inline-flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  body .top-bar .top-bar-logo img {
    display: block;
    width: 125px;
    height: 35px;
  }
  body .top-bar .logo,
  body .top-bar .categories-mobile-search-trigger,
  body .top-bar .products-mobile-search-trigger {
    display: none;
  }
  body .top-bar .categories-mobile-top-actions,
  body .top-bar .products-mobile-top-actions {
    justify-content: flex-end;
  }
  .page-title {
    font-size: 20px;
    font-weight: 700;
  }
}
.sidebar-pin-button {
  display: none;
  width: 24px;
  height: 24px;
  margin-left: auto;
  margin-right: 8px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #93949e;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar-pin-button:hover {
  background: #ebecf0;
  color: #202125;
}
.sidebar-pin-button[aria-pressed=true] {
  color: #2653ee;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .sidebar-pin-button {
    display: inline-flex;
  }
  body.admin-sidebar-pinned {
    overflow: visible;
  }
  body.admin-sidebar-pinned .sidebar {
    left: 0;
    box-shadow: inset -1px 0 0 #ebecf0;
  }
  body.admin-sidebar-pinned .top-bar,
  body.admin-sidebar-pinned .sidebar-collapse-button,
  body.admin-sidebar-pinned #showSidebar,
  body.admin-sidebar-pinned .admin-sidebar-backdrop {
    display: none !important;
  }
  body.admin-sidebar-pinned .main-container,
  body.admin-sidebar-pinned .top-bar {
    margin-left: 240px;
  }
  body.admin-sidebar-pinned .footer {
    width: calc(100% - 240px);
    margin-left: 240px;
  }
}
.sidebar-site-name {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 16px 12px;
  padding: 8px 40px 8px 8px;
  border-radius: 24px;
  background-color: #ebecf0;
  color: #202125;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.sidebar-site-name:hover {
  background-color: #dcdde1;
}

html[data-theme=dark] .sidebar-site-name:hover {
  background-color: #2e3038;
}

.site-avatar,
.user-avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

.site-avatar {
  background-color: #ffce74;
  color: #202125;
}

.site-picker {
  min-width: 0;
  flex: 1;
}

.site-dropdown-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.site-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1001;
  display: none;
  max-height: min(360px, 60vh);
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #ebecf0;
  border-radius: 14px;
  background-color: #ffffff;
  box-shadow: 0 10px 22px rgba(31, 35, 41, 0.12);
}

.sidebar-site-name.is-open .site-dropdown-menu {
  display: block;
}

.site-dropdown-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background-color: transparent;
  color: #202125;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  cursor: pointer;
}
.site-dropdown-option:hover, .site-dropdown-option:focus, .site-dropdown-option.is-selected {
  background-color: #f7f8f9;
  outline: none;
}

.site-option-avatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffce74;
  color: #202125;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.site-name-text,
#availableSitesList {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #202125;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#availableSitesList {
  height: 26px;
  padding: 0;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
#availableSitesList:focus-visible {
  outline: none;
}

.site-picker-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 6px;
  transform: translateY(-50%);
  pointer-events: none;
}

.site-dropdown-search {
  position: sticky;
  top: -7px;
  z-index: 1;
  width: 100%;
  height: 36px;
  margin: -7px 0 6px;
  padding: 0 10px;
  border: 1px solid #ebecf0;
  border-radius: 8px;
  background: #ffffff;
  color: #202125;
  font-size: 14px;
  box-shadow: 0 -7px 0 #ffffff;
}
.site-dropdown-search::placeholder {
  color: #93949e;
}
.site-dropdown-search:focus {
  outline: none;
  border-color: #5c7ffb;
}

.sidebar-site-name {
  margin: 12px;
  padding-right: 36px;
  border: 1px solid #ebecf0;
  border-radius: 12px;
  background-color: #f7f8f9;
}

.site-picker-icon {
  right: 12px;
  width: 16px;
  height: 16px;
}

.site-avatar:has(img),
.site-option-avatar:has(img) {
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: inset 0 0 0 1px #ebecf0;
}

.site-avatar img,
.site-option-avatar img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

.sidebar-navigation {
  flex: 1;
  margin: 0;
  padding: 0 12px 16px;
  list-style: none;
}
.sidebar-navigation ul {
  max-height: 0;
  overflow: hidden;
  margin: 0 0 0 18px;
  padding: 0;
  list-style: none;
  visibility: hidden;
  transition: max-height 0.22s ease, padding-top 0.22s ease, padding-bottom 0.22s ease, visibility 0s linear 0.22s ease;
}
.sidebar-navigation .nav-item a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 32px;
  margin: 0;
  padding: 7px 22px;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: #202125;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}
.sidebar-navigation .nav-item a::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0px;
  width: 1px;
  background-color: #ebecf0;
}
.sidebar-navigation .nav-item a:hover, .sidebar-navigation .nav-item a:focus {
  background-color: #f7f8f9 !important;
  color: #202125 !important;
  text-decoration: none;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section.is-open > ul {
  visibility: visible;
  transition-delay: 0s;
  max-height: 268px;
  padding-top: 0;
  padding-bottom: 8px;
  margin-bottom: 0;
}

.nav-section-title {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  display: grid;
  grid-template-columns: 22px 1fr 18px;
  column-gap: 12px;
  align-items: center;
  min-height: 36px;
  padding: 8px;
  border-radius: 8px;
  color: #202125;
  font-size: 12px;
  font-weight: 600;
  line-height: 15px;
  text-transform: uppercase;
  cursor: pointer;
  letter-spacing: 0;
}
.nav-section-title .nav-section-icon {
  width: 20px;
  height: 20px;
}
.nav-section-title .nav-section-chevron {
  width: 10px;
  height: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  transform-origin: center center;
  transform: rotate(-90deg);
  transition: transform 0.22s ease;
  will-change: transform;
}
.nav-section-title:hover {
  background-color: #f7f8f9;
}
.nav-section-title:focus-visible {
  background-color: #f7f8f9;
  outline: 2px solid #5c7ffb;
  outline-offset: -2px;
}

.nav-section.is-open > .nav-section-title .nav-section-chevron {
  transform: rotate(0deg);
}

.nav-item.admin-active-menu a {
  border-radius: 0 10px 10px 0;
  background-color: #f7f8f9 !important;
  color: #202125 !important;
  text-decoration: none;
}
.nav-item.admin-active-menu a::before {
  width: 3px;
  background-color: #2653ee;
}

.nav-divider {
  height: 1px;
  margin: 0 0 8px;
  background-color: #ebecf0;
}

.nav-pinned {
  margin-bottom: 8px;
}
.nav-pinned .nav-pinned-label {
  display: block;
  padding: 0 10px 4px;
  color: #5b5c65;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-pinned ul {
  max-height: none;
  margin: 0;
  visibility: visible;
}
.nav-pinned .nav-item a {
  gap: 10px;
  padding: 7px 10px;
}
.nav-pinned .nav-item a .nav-item-icon {
  width: 18px;
  height: 18px;
}

.nav-divider {
  margin: 4px 0 12px;
}

.nav-section-title {
  font-size: 14px;
  line-height: 20px;
}
.nav-section-title span {
  text-transform: lowercase;
}
.nav-section-title span::first-letter {
  text-transform: uppercase;
}

.sidebar-navigation .nav-section > ul {
  margin-left: 18px;
  padding-left: 8px;
  border-left: 1px solid #ebecf0;
}

.sidebar-navigation .nav-item a {
  gap: 9px;
  padding: 7px 10px;
  border-radius: 8px;
}
.sidebar-navigation .nav-item a::before {
  content: none;
}

.nav-item-icon {
  flex: none;
}

.nav-item.admin-active-menu a {
  border-radius: 8px;
  background-color: #f3f1ff !important;
  color: #4334c4 !important;
  font-weight: 600;
}

.sidebar-navigation .nav-item {
  position: relative;
}
.sidebar-navigation .nav-item.is-pinned-away {
  display: none;
}
.sidebar-navigation .nav-item a {
  padding-right: 34px;
}

.nav-pin {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5b5c65;
  opacity: 0;
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity 0.22s ease;
}
.nav-pin:hover {
  background-color: #ebecf0;
  color: #202125;
}
.nav-pin:focus-visible {
  opacity: 1;
  outline: 2px solid #5c7ffb;
  outline-offset: -2px;
}
.nav-pin[aria-pressed=true] svg {
  fill: currentColor;
}

.sidebar-navigation .nav-item:hover .nav-pin {
  opacity: 1;
}

@media (hover: none) {
  .nav-pin {
    opacity: 0.7;
  }
}
.nav-pinned.is-empty,
.nav-pinned.is-empty + .nav-divider {
  display: none;
}

.admin-nav-tip {
  position: fixed;
  z-index: 2000;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1f2937;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  transform: translateY(-50%);
  animation: admin-nav-tip-in 0.12s ease-out;
}
.admin-nav-tip::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-right-color: #1f2937;
}

@keyframes admin-nav-tip-in {
  from {
    opacity: 0;
    margin-left: -4px;
  }
}
.sidebar-user-area {
  position: relative;
  margin: 0 12px 12px;
}

.sidebar-user {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background-color: #f7f8f9;
  text-align: left;
}

.sidebar-user__text {
  flex: 1;
  min-width: 0;
}

.sidebar-logout {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.sidebar-logout img {
  width: 18px;
  height: 18px;
}
.sidebar-logout:hover, .sidebar-logout:focus-visible {
  background-color: #ebecf0;
}

.user-avatar {
  background-color: #d3cdc2;
  color: #202125;
}

.user-name {
  max-width: 150px;
  overflow: hidden;
  color: #202125;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-role {
  color: #93949e;
  font-size: 10px;
  font-weight: 500;
  line-height: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-prefs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 4px 0;
  border-top: 1px solid #ebecf0;
}

.account-prefs__row {
  display: flex;
  align-items: center;
}

.account-prefs__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.account-prefs__flag {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: opacity 0.12s ease, filter 0.12s ease;
}

.account-prefs__seg {
  display: inline-flex;
  padding: 2px;
  background: #f7f8f9;
  border: 1px solid #ebecf0;
  border-radius: 8px;
}
.account-prefs__seg button {
  display: inline-flex;
  min-width: 40px;
  height: 28px;
  padding: 0 8px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #71737e;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.account-prefs__seg button:hover {
  color: #202125;
}
.account-prefs__seg button[aria-checked=true] {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  color: #5b45e0;
}
.account-prefs__seg button[aria-checked=false] .account-prefs__flag {
  opacity: 0.45;
  filter: saturate(0.4);
}
.account-prefs__seg button:hover .account-prefs__flag {
  opacity: 1;
  filter: none;
}
.account-prefs__seg button:focus-visible {
  outline: 2px solid #8b7cf8;
  outline-offset: 1px;
}

html[data-theme=dark] .top-bar,
html[data-theme=dark] .sidebar,
html[data-theme=dark] .sidebar-account-menu,
html[data-theme=dark] .site-dropdown-menu,
html[data-theme=dark] .categories-bottom-nav {
  background-color: #1b1c21;
  border-color: #2e3038;
}
html[data-theme=dark] .nav-divider {
  border-color: #2e3038;
}
html[data-theme=dark] .nav-section::before {
  border-color: #2e3038;
}
html[data-theme=dark] .sidebar-site-name,
html[data-theme=dark] .sidebar-user,
html[data-theme=dark] .nav-divider {
  background-color: #24252b;
}
html[data-theme=dark] .sidebar-logo,
html[data-theme=dark] .site-name-text,
html[data-theme=dark] #availableSitesList,
html[data-theme=dark] .nav-section-title,
html[data-theme=dark] .sidebar-navigation .nav-item a,
html[data-theme=dark] .site-dropdown-option,
html[data-theme=dark] .user-name,
html[data-theme=dark] .sidebar-collapse-button,
html[data-theme=dark] #showSidebar,
html[data-theme=dark] .account-prefs__label,
html[data-theme=dark] .categories-bottom-nav button {
  color: #ececf1 !important;
}
html[data-theme=dark] .sidebar-navigation .nav-item a:hover,
html[data-theme=dark] .sidebar-navigation .nav-item a:focus,
html[data-theme=dark] .nav-item.admin-active-menu a,
html[data-theme=dark] .nav-section-title:hover,
html[data-theme=dark] .site-dropdown-option:hover,
html[data-theme=dark] .sidebar-logout:hover,
html[data-theme=dark] #showSidebar:hover {
  background-color: #24252b !important;
}
html[data-theme=dark] .sidebar-navigation .nav-item a::before {
  background-color: #2e3038;
}
html[data-theme=dark] .sidebar img,
html[data-theme=dark] .top-bar #showSidebar img,
html[data-theme=dark] .categories-bottom-nav button:not(.categories-bottom-nav__add) img {
  filter: invert(0.9);
}
html[data-theme=dark] .sidebar .site-avatar img,
html[data-theme=dark] .sidebar .site-option-avatar img {
  filter: none;
}
html[data-theme=dark] .site-dropdown-search {
  background: #121317;
  border-color: #2e3038;
  color: #ececf1;
}
html[data-theme=dark] .account-prefs {
  border-color: #2e3038;
}
html[data-theme=dark] .account-prefs__seg {
  background: #121317;
  border-color: #2e3038;
}
html[data-theme=dark] .account-prefs__seg button {
  color: #9a9ba6;
}
html[data-theme=dark] .account-prefs__seg button:hover, html[data-theme=dark] .account-prefs__seg button[aria-checked=true] {
  color: #ececf1;
}
html[data-theme=dark] .account-prefs__seg button[aria-checked=true] {
  background: #3a3c46;
  box-shadow: none;
}

html[data-theme=dark] .sidebar-site-name {
  border-color: #2e3038;
}
html[data-theme=dark] .sidebar-navigation .nav-section > ul {
  border-color: #2e3038;
}
html[data-theme=dark] .nav-pinned .nav-pinned-label {
  color: #9a9ba6;
}
html[data-theme=dark] .sidebar-navigation .nav-item.admin-active-menu a {
  background-color: rgba(139, 124, 248, 0.18) !important;
  color: #a99dff !important;
}

html[data-theme=dark] img[src*="img/placeholder.svg"] {
  filter: invert(0.88) hue-rotate(180deg);
}

html[data-theme=dark] .admin-skeleton,
html[data-theme=dark] .admin-skeleton__row--head {
  background: #121317;
}
html[data-theme=dark] .admin-skeleton__card {
  background: #1b1c21;
  border-color: #2e3038;
}
html[data-theme=dark] .admin-skeleton__header,
html[data-theme=dark] .admin-skeleton__row {
  border-color: #2e3038;
}
html[data-theme=dark] .admin-skeleton__bone {
  background: linear-gradient(90deg, #24252b 0%, #34353f 50%, #24252b 100%);
  background-size: 200% 100%;
}

@keyframes admin-confirm-spin {
  to {
    transform: rotate(360deg);
  }
}
.admin-confirm-scrim {
  position: fixed;
  inset: 0;
  z-index: 1390;
  background: rgba(0, 0, 0, 0.25);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}
.admin-confirm-scrim.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.admin-confirm {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1400;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(496px, 100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #dcdde1;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: "Inter", sans-serif;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
.admin-confirm * {
  box-sizing: border-box;
}
.admin-confirm.is-open {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%);
  transition-delay: 0s;
}

.admin-confirm__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-confirm__heading {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-confirm__title {
  margin: 0;
  color: #202125;
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
}

.admin-confirm__sub {
  margin: 0;
  color: #5b5c65;
  font-size: 13px;
  line-height: 1.45;
}
.admin-confirm__sub:empty {
  display: none;
}

.admin-confirm__close {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #f7f8f9;
  color: #202125;
  cursor: pointer;
}
.admin-confirm__close:hover {
  background: #ebecf0;
}

.admin-confirm__text {
  margin: 0;
  color: #202125;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-confirm__name {
  display: block;
  margin-bottom: 4px;
  color: #202125;
  font-size: 16px;
  font-weight: 600;
}

.admin-confirm__note {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #c92332;
  font-size: 13px;
  line-height: 1.5;
}
.admin-confirm__note:empty {
  display: none;
}

.admin-confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-confirm__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #dcdde1;
  border-radius: 8px;
  background: #ffffff;
  color: #202125;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.admin-confirm__btn:hover {
  background: #f7f8f9;
}
.admin-confirm__btn:focus-visible {
  outline: 2px solid #5c7ffb;
  outline-offset: 2px;
}

.admin-confirm__btn--danger {
  color: #c92332;
}

.admin-confirm__btn--primary {
  border-color: #5c7ffb;
  color: #2653ee;
}

.admin-confirm__btn.is-loading {
  color: transparent !important;
  pointer-events: none;
}
.admin-confirm__btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(201, 35, 50, 0.2);
  border-top-color: #c92332;
  border-radius: 50%;
  animation: admin-confirm-spin 0.7s linear infinite;
}

html[data-theme=dark] .admin-confirm-scrim {
  background: rgba(0, 0, 0, 0.6);
}
html[data-theme=dark] .admin-confirm {
  background: #1b1c21;
  border-color: #2e3038;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
html[data-theme=dark] .admin-confirm__title,
html[data-theme=dark] .admin-confirm__text,
html[data-theme=dark] .admin-confirm__name {
  color: #ececf1;
}
html[data-theme=dark] .admin-confirm__sub {
  color: #9a9ba6;
}
html[data-theme=dark] .admin-confirm__close {
  background: #24252b;
  color: #ececf1;
}
html[data-theme=dark] .admin-confirm__close:hover {
  background: #2e3038;
}
html[data-theme=dark] .admin-confirm__close img {
  filter: invert(0.9);
}
html[data-theme=dark] .admin-confirm__note {
  background: rgba(244, 63, 94, 0.12);
}
html[data-theme=dark] .admin-confirm__btn {
  background: transparent;
  border-color: #2e3038;
  color: #ececf1;
}
html[data-theme=dark] .admin-confirm__btn:hover {
  background: #24252b;
}
html[data-theme=dark] .admin-confirm__btn--primary {
  border-color: rgba(169, 157, 255, 0.45);
  color: #a99dff;
}
html[data-theme=dark] .admin-confirm__btn--danger {
  color: #ff8a8a;
}

body.admin-confirm-open {
  overflow: hidden;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
}

.toggle-switch__input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.toggle-switch__track {
  position: absolute;
  inset: 0;
  display: block;
  background: #dcdde1;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.toggle-switch__track::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.15s ease;
}

.toggle-switch__track {
  background: #c9cad1;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.12);
}
.toggle-switch__track::before {
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.25);
}

.toggle-switch__input:checked + .toggle-switch__track {
  background: #16a34a;
}
.toggle-switch__input:checked + .toggle-switch__track::before {
  background: #ffffff url("../img/orders/flow-check-green.svg") center/12px no-repeat;
  transform: translateX(20px);
}

.toggle-switch:hover .toggle-switch__track {
  filter: brightness(0.96);
}

.toggle-switch__input:focus-visible + .toggle-switch__track {
  outline: 2px solid #8b7cf8;
  outline-offset: 2px;
}

body .pbtn:is(#saveProductButton, #saveBlacklistButton, #configSaveButton, #saveFolderButton, #saveCategoryButton, #saveStaticPageButton, #bouquetApplyButton, #saveOrderCommentButton, .category-modal__save) {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: 2px solid transparent;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(109, 93, 252, 0.55);
}
body .pbtn:is(#saveProductButton, #saveBlacklistButton, #configSaveButton, #saveFolderButton, #saveCategoryButton, #saveStaticPageButton, #bouquetApplyButton, #saveOrderCommentButton, .category-modal__save) img {
  display: block;
  filter: brightness(0) invert(1);
}
body .pbtn:is(#saveProductButton, #saveBlacklistButton, #configSaveButton, #saveFolderButton, #saveCategoryButton, #saveStaticPageButton, #bouquetApplyButton, #saveOrderCommentButton, .category-modal__save):disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

body .pbtn:is(#saveProductButton, #saveBlacklistButton, #configSaveButton, #saveFolderButton, #saveCategoryButton, #saveStaticPageButton, #bouquetApplyButton, #saveOrderCommentButton, .category-modal__save).is-busy-label {
  background: linear-gradient(135deg, #a5a8f7 0%, #c4abf9 100%);
  box-shadow: none;
}

body .pbtn:is(#productEditPanel .pe__delete, .category-modal__delete, .comments-dialog__delete, .sites-modal__delete) {
  background: #ffffff;
  border: 2px solid #fecdd3;
  border-radius: 24px;
  color: #ff422d;
}

html[data-theme=dark] body .pbtn:is(#productEditPanel .pe__delete, .category-modal__delete, .comments-dialog__delete, .sites-modal__delete) {
  background: transparent !important;
  border-color: rgba(255, 66, 45, 0.45);
}

@media (max-width: 767px) {
  body .pbtn:is(#saveProductButton, #saveBlacklistButton, #configSaveButton, #saveFolderButton, #saveCategoryButton, #saveStaticPageButton, #bouquetApplyButton, #saveOrderCommentButton, .category-modal__save) {
    flex: 1 1 auto;
    justify-content: center;
    height: 48px;
    min-height: 48px;
  }
  body .pbtn:is(#saveProductButton, #saveBlacklistButton, #configSaveButton, #saveFolderButton, #saveCategoryButton, #saveStaticPageButton, #bouquetApplyButton, #saveOrderCommentButton, .category-modal__save) img {
    display: none;
  }
  body .pbtn:is(#productEditPanel .pe__delete, .category-modal__delete, .comments-dialog__delete, .sites-modal__delete) {
    flex: 0 0 48px;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
  }
  body .pbtn:is(#productEditPanel .pe__delete, .category-modal__delete, .comments-dialog__delete, .sites-modal__delete) span {
    display: none;
  }
}
.mselect__native {
  display: none !important;
}

.mselect {
  position: relative;
}

.mselect__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 12px 0 14px;
  background: #ffffff;
  border: 1px solid #dcdde1;
  border-radius: 10px;
  color: #202125;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.mselect__toggle:hover {
  border-color: #c4b5fd;
}
.mselect__toggle:focus-visible {
  outline: 2px solid #8b7cf8;
  outline-offset: 1px;
}
.mselect__toggle[aria-expanded=true] .mselect__chevron {
  transform: rotate(180deg);
}

.mselect__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mselect__chevron {
  flex: 0 0 16px;
  color: #93949e;
  transition: transform 0.15s ease;
}

.mselect__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 100%;
  max-height: 300px;
  margin: 8px 0 0;
  padding: 8px;
  overflow-y: auto;
  list-style: none;
  background: #ffffff;
  border: 1px solid #ebecf0;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(32, 33, 37, 0.16);
}

.mselect__option {
  display: block;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #202125;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}
.mselect__option:hover, .mselect__option:focus-visible, .mselect__option.is-selected {
  background: #f5f3ff;
  color: #5b45e0;
  outline: none;
}
.mselect__option.is-selected {
  font-weight: 600;
}

.gallery-select.has-mselect > img {
  display: none;
}

html[data-theme=dark] .mselect__toggle {
  background: #121317;
  border-color: #2e3038;
  color: #ececf1;
}
html[data-theme=dark] .mselect__chevron {
  color: #9a9ba6;
}
html[data-theme=dark] .mselect__menu {
  background: #1b1c21;
  border-color: #2e3038;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}
html[data-theme=dark] .mselect__option {
  color: #ececf1;
}
html[data-theme=dark] .mselect__option:hover, html[data-theme=dark] .mselect__option:focus-visible, html[data-theme=dark] .mselect__option.is-selected {
  background: rgba(139, 124, 248, 0.18);
  color: #a99dff;
}

@keyframes admin-skeleton-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.admin-skeleton {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 980;
  display: none;
  overflow: hidden;
  padding: 8px 20px 20px;
  background: #f7f8f9;
  font-family: "Inter", sans-serif;
}
.admin-skeleton.is-visible {
  display: block;
}

@media (min-width: 1200px) {
  body.sidebar-toggle .admin-skeleton {
    left: 240px;
  }
  body:not(.sidebar-toggle) .admin-skeleton {
    left: 68px;
  }
}
.admin-skeleton__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-skeleton__bone {
  display: block;
  flex: 0 0 auto;
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ebecf0 0%, #f2f3f5 50%, #ebecf0 100%);
  background-size: 200% 100%;
  animation: admin-skeleton-shimmer 1.3s ease-in-out infinite;
}

.admin-skeleton__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin: 0 -20px 16px;
  padding: 8px 20px;
  border-bottom: 1px solid #ebecf0;
}

.admin-skeleton__bone--title {
  width: 180px;
  height: 22px;
}

.admin-skeleton__bone--button {
  width: 170px;
  height: 44px;
  border-radius: 24px;
}

.admin-skeleton__toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-skeleton__bone--chip {
  width: 120px;
  height: 36px;
}

.admin-skeleton__bone--search {
  width: 240px;
  height: 36px;
  margin-left: auto;
}

.admin-skeleton__card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #f7f7f7;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.admin-skeleton__row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 16px;
  border-bottom: 1px solid #ebecf0;
}
.admin-skeleton__row:last-child {
  border-bottom: 0;
}

.admin-skeleton__row--head {
  min-height: 44px;
  background: #f7f8f9;
}

.admin-skeleton__bone--th {
  width: 90px;
  height: 10px;
}

.admin-skeleton__bone--thumb {
  width: 40px;
  height: 40px;
}

.admin-skeleton__bone--text {
  flex: 1 1 auto;
  max-width: 280px;
}

.admin-skeleton__bone--short {
  width: 120px;
}

.admin-skeleton__bone--pill {
  width: 90px;
  height: 26px;
  margin-left: auto;
  border-radius: 20px;
}

.admin-skeleton__bone--icon {
  width: 32px;
  height: 32px;
}

@media (max-width: 1199px) {
  .admin-skeleton__header {
    padding-left: 64px;
  }
}
@media (max-width: 767px) {
  .admin-skeleton {
    padding: 8px 16px 90px;
  }
  .admin-skeleton__header {
    margin: 0 -16px 16px;
    padding: 8px 16px 8px 60px;
  }
  .admin-skeleton__bone--button {
    width: 44px;
  }
  .admin-skeleton__bone--chip:nth-child(2),
  .admin-skeleton__bone--short,
  .admin-skeleton__row--head {
    display: none;
  }
  .admin-skeleton__bone--search {
    width: auto;
    flex: 1 1 auto;
  }
  .admin-skeleton__row {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-skeleton__bone {
    animation: none;
  }
}
