.pixa-icon,
.pixa-csf-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

.csf-modal.hidden {
  display: none !important;
}

.csf-modal {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: block;
}

.csf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
}

.csf-modal-table {
  position: relative;
  z-index: 1;
  display: table;
  width: 100%;
  height: 100%;
  table-layout: fixed;
}

.csf-modal-table-cell {
  display: table-cell;
  padding: 32px 20px;
  text-align: center;
  vertical-align: middle;
}

.csf-modal-inner {
  position: relative;
  display: inline-block;
  width: min(860px, calc(100vw - 40px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  text-align: start;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.csf-modal-title {
  position: relative;
  padding: 16px 52px 16px 20px;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid #dcdcde;
}

.rtl .csf-modal-title {
  padding-right: 20px;
  padding-left: 52px;
}

.csf-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  border-radius: 999px;
}

.rtl .csf-modal-close {
  right: auto;
  left: 12px;
}

.csf-modal-close::before,
.csf-modal-close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 8px;
  width: 16px;
  height: 2px;
  background: #50575e;
}

.csf-modal-close::before {
  transform: rotate(45deg);
}

.csf-modal-close::after {
  transform: rotate(-45deg);
}

.csf-modal-header {
  padding: 14px 20px;
  background: #f6f7f7;
  border-bottom: 1px solid #dcdcde;
}

.csf-icon-search {
  width: 100%;
  max-width: none;
  min-height: 36px;
}

.csf-modal-content {
  position: relative;
  max-height: min(560px, calc(100vh - 190px));
  overflow: auto;
  padding: 16px 18px;
}

.csf-modal-load {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 8px;
}

.csf-modal-loading {
  display: none;
  padding: 30px;
  text-align: center;
}

.csf-loading {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  border: 3px solid #dcdcde;
  border-top-color: #2271b1;
  border-radius: 999px;
  animation: pixa-csf-spin 0.8s linear infinite;
}

@keyframes pixa-csf-spin {
  to {
    transform: rotate(360deg);
  }
}

.csf-modal-icon .csf-modal-load i {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d2327;
  cursor: pointer;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  background: #fff;
}

.csf-modal-icon .csf-modal-load i:hover,
.csf-modal-icon .csf-modal-load i:focus {
  color: #2271b1;
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
}

.csf-modal-icon .csf-modal-load i .pixa-csf-icon {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.csf-icon-preview i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}

.csf-icon-preview i .pixa-csf-icon {
  width: 24px;
  height: 24px;
}

.pixa-product-cat-icon-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #1d2327;
}

.pixa-product-cat-icon-preview .pixa-csf-icon {
  width: 28px;
  height: 28px;
}
