.row {
  margin-right: -15px;
  margin-left: -15px;
}

.hide-if-js {
  display: none;
}

.w-h-30 {
  width: 30px;
  height: 30px;
}

.w-h-20 {
  width: 20px;
  height: 20px;
}

.col, .col-1, .col-10, .col-11, .col-12, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-auto, .col-lg, .col-lg-1, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-auto, .col-md, .col-md-1, .col-md-10, .col-md-11, .col-md-12, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-auto, .col-sm, .col-sm-1, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-auto, .col-xl, .col-xl-1, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-auto {
  padding-right: 15px;
  padding-left: 15px;
}

/* -- Color picker element -- */
.et-color-element {
  position: relative;
}

.et-color-display {
  width: 20px;
  height: 20px;
  position: absolute;
  right: 10px;
  border: 1px solid #6c757d;
  bottom: 10px;
  border-radius: 50%;
}

/**
 * Dropzone Modified
 */
@keyframes passing-through {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  30%, 70% {
    opacity: 1;
    transform: translateY(0px);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}
@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  30% {
    opacity: 1;
    transform: translateY(0px);
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.1);
  }
  20% {
    transform: scale(1);
  }
}
.dropzone, .featured-image * {
  box-sizing: border-box;
}

.featured-image--uploader {
  min-height: 150px;
  border: 2px dashed rgba(0, 0, 0, 0.3);
}

.featured-image .dz-clickable {
  cursor: pointer;
}

.featured-image .dz-clickable * {
  cursor: default;
}

.featured-image .dz-clickable .dz-message, .featured-image .dz-clickable .dz-message * {
  cursor: pointer;
}

.featured-image .dz-started .dz-message {
  display: none;
}

.featured-image .dz-drag-hover {
  border-style: solid;
}

.featured-image .dz-drag-hover .dz-message {
  opacity: 0.5;
}

.featured-image .dz-message {
  text-align: center;
}

.featured-image .dz-message .dz-button {
  background: none;
  color: #ced4da;
  border: none;
  padding: 0;
  font-size: 80%;
  cursor: pointer;
  outline: inherit;
}

.featured-image .dz-preview {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin: 16px;
  min-height: 100px;
}

.featured-image .dz-preview:hover {
  z-index: 1000;
}

.featured-image .dz-preview:hover .dz-details {
  opacity: 1;
}

.featured-image .dz-preview.dz-file-preview .dz-image {
  border-radius: 20px;
  background: #999;
  background: linear-gradient(to bottom, #eee, #ddd);
}

.featured-image .dz-preview.dz-file-preview .dz-details {
  opacity: 1;
}

.featured-image .dz-preview.dz-image-preview {
  background: white;
}

.featured-image .dz-preview.dz-image-preview .dz-details {
  transition: opacity 0.2s linear;
}

.featured-image .dz-preview .dz-remove {
  font-size: 14px;
  text-align: center;
  display: block;
  cursor: pointer;
  border: none;
}

.featured-image .dz-preview .dz-remove:hover {
  text-decoration: underline;
}

.featured-image .dz-preview:hover .dz-details {
  opacity: 1;
}

.featured-image .dz-preview .dz-details {
  z-index: 20;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  font-size: 13px;
  min-width: 100%;
  max-width: 100%;
  padding: 2em 1em;
  text-align: center;
  color: rgba(0, 0, 0, 0.9);
  line-height: 150%;
}

.featured-image .dz-preview .dz-details .dz-size {
  margin-bottom: 1em;
  font-size: 16px;
}

.featured-image .dz-preview .dz-details .dz-filename {
  white-space: nowrap;
}

.featured-image .dz-preview .dz-details .dz-filename:hover span {
  border: 1px solid rgba(200, 200, 200, 0.8);
  background-color: rgba(255, 255, 255, 0.8);
}

.featured-image .dz-preview .dz-details .dz-filename:not(:hover) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-image .dz-preview .dz-details .dz-filename:not(:hover) span {
  border: 1px solid transparent;
}

.featured-image .dz-preview .dz-details .dz-filename span, .featured-image .dz-preview .dz-details .dz-size span {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 0 0.4em;
  border-radius: 3px;
}

.featured-image .dz-preview:hover .dz-image img {
  transform: scale(1.05, 1.05);
  filter: blur(8px);
}

.featured-image .dz-preview .dz-image {
  border-radius: 20px;
  overflow: hidden;
  width: 120px;
  height: 120px;
  position: relative;
  display: block;
  z-index: 10;
}

.featured-image .dz-preview .dz-image img {
  display: block;
}

.featured-image .dz-preview.dz-success .dz-success-mark {
  animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);
}

.featured-image .dz-preview.dz-error .dz-error-mark {
  opacity: 1;
  animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);
}

.featured-image .dz-preview .dz-success-mark, .featured-image .dz-preview .dz-error-mark {
  pointer-events: none;
  opacity: 0;
  z-index: 500;
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  margin-left: -27px;
  margin-top: -27px;
}

.featured-image .dz-preview .dz-success-mark svg, .featured-image .dz-preview .dz-error-mark svg {
  display: block;
  width: 54px;
  height: 54px;
}

.featured-image .dz-preview.dz-processing .dz-progress {
  opacity: 1;
  transition: all 0.2s linear;
}

.featured-image .dz-preview.dz-complete .dz-progress {
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

.featured-image .dz-preview:not(.dz-processing) .dz-progress {
  animation: pulse 6s ease infinite;
}

.featured-image .dz-preview .dz-progress {
  opacity: 1;
  z-index: 1000;
  pointer-events: none;
  position: absolute;
  height: 16px;
  left: 50%;
  top: 50%;
  margin-top: -8px;
  width: 80px;
  margin-left: -40px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-transform: scale(1);
  border-radius: 8px;
  overflow: hidden;
}

.featured-image .dz-preview .dz-progress .dz-upload {
  background: #333;
  background: linear-gradient(to bottom, #666, #444);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0;
  transition: width 300ms ease-in-out;
}

.featured-image .dz-preview.dz-error .dz-error-message {
  display: block;
}

.featured-image .dz-preview.dz-error:hover .dz-error-message {
  opacity: 1;
  pointer-events: auto;
}

.featured-image .dz-preview .dz-error-message {
  pointer-events: none;
  z-index: 1000;
  position: absolute;
  display: block;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 8px;
  font-size: 13px;
  top: 130px;
  left: -10px;
  width: 140px;
  background: #be2626;
  background: linear-gradient(to bottom, #be2626, #a92222);
  padding: 0.5em 1.2em;
  color: white;
}

.featured-image .dz-preview .dz-error-message:after {
  content: "";
  position: absolute;
  top: -6px;
  left: 64px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #be2626;
}

.featured-image .featured-image--uploader {
  cursor: pointer;
}
.featured-image .featured-image--preview {
  position: relative;
}
.featured-image .featured-image--preview .remove {
  position: absolute;
  z-index: 99;
  top: -10px;
  right: -10px;
  background-color: #ddd;
  line-height: 0;
  padding: 10px 5px;
  border-radius: 50%;
  color: red;
  cursor: pointer;
  transition: all 300ms ease-in-out;
}
.featured-image .featured-image--preview .remove:hover {
  box-shadow: 1px 1px 1px #888888;
}

/** -- Select2 modifications -- */
.dark-mode .select2-container--bootstrap4 .select2-selection {
  background-color: transparent;
}

/* Custom Select */
.advanced-select .d-flex {
  overflow-wrap: break-word;
}
.advanced-select .d-flex .select2-item--title {
  min-width: 0;
}
.advanced-select .selection .select2-selection__rendered .d-flex .select2-item--title,
.advanced-select .select2-selection--single .select2-selection__rendered .d-flex .select2-item--title {
  min-width: 0;
}
.advanced-select .selection img,
.advanced-select .select2-selection--single img {
  border-radius: 3px;
}
.advanced-select .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
  border-color: #eee transparent transparent;
}

/** Icon Selector */
.et-icon-group .input-group-text {
  width: 45px;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 5px 0;
}

.icons-list {
  height: 200px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  overflow-y: scroll;
  margin: 15px 0 0;
  padding: 5px;
}

.icons-list span {
  box-sizing: border-box;
  height: 38px;
  width: auto;
  margin: 2px;
  padding: 5px 0 8px 0;
  text-align: center;
  font-size: 18px;
  cursor: pointer;
  border: 1px solid #6c757d;
}

.icons-list span.icon-selected {
  color: #0d9488;
  border: 2px solid #0d9488;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
  height: auto;
}
@media (min-width: 576px) {
  .navbar-nav > .user-menu .user-image {
    margin-top: -5px;
  }
}

.dark-mode .login-page .login-box,
.dark-mode .login-page .register-box,
.dark-mode .register-page .login-box,
.dark-mode .register-page .register-box {
  width: 450px;
}
.dark-mode .login-page,
.dark-mode .register-page {
  background: transparent;
}

/* -- Settings Page -- */
.settings-page .nav-tabs .nav-link {
  color: #b6b8ba;
  font-weight: 400;
}
.settings-page .nav-tabs .nav-link.active {
  font-weight: 500;
}
.settings-page .callout h5 {
  margin-bottom: 0;
}

.envato-connect--page .user-block span {
  margin-left: 15px;
}
.envato-connect--page .user-block .user-display--avatar {
  position: relative;
}
.envato-connect--page .user-block .user-display--avatar i {
  position: absolute;
  color: #21aa02;
  right: -5px;
}

/**
 * Admin Tickets list
 */
.tickets--list .card-body {
  position: relative;
}

.tickets--list .card-body .card-tools {
  position: absolute;
  right: 10px;
  top: 10px;
}

.item--actions button.dropdown-item {
  padding: 0;
}

.tickets--list .card-body .dropdown-toggle::after {
  display: none;
  /* margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent; */
}

.item--details {
  padding: 0 1em;
}

.item--image {
  width: 90px;
}

.item--image img {
  width: 100%;
  border-radius: 3px;
}

.item--details .item--name {
  font-size: 12px;
  letter-spacing: 0.9px;
  font-weight: normal;
}

.item--details .item--title {
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: normal;
}

.item--details .item--title a {
  color: #fff;
}

.item--meta li {
  display: inline-block;
  margin-right: 30px;
}

.item-status {
  color: #0d9488;
}

.item-status::before {
  content: "";
  width: 5px;
  min-width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 5px;
}

.item-status--open::before {
  background-color: #0d9488;
}

/**
 * Admin Products grid
 */
.products-page {
  padding-bottom: 1rem;
}

.products-page__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.products-page__toolbar h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
}

.products-page__eyebrow {
  display: block;
  margin-bottom: 0.15rem;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.products-page__summary {
  flex: 0 0 auto;
  padding: 0.65rem 0.85rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
  color: #6c757d;
  font-size: 0.85rem;
  line-height: 1.1;
  text-align: right;
}

.products-page__summary span {
  display: block;
  color: #212529;
  font-size: 1.15rem;
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.product-card {
  height: 100%;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 123, 255, 0.24);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
}

.product-card__body {
  position: relative;
  display: block;
  min-height: 100%;
  padding: 0;
}

.product-card__actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.product-card__actions .btn-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.68);
  color: #fff;
  backdrop-filter: blur(8px);
}

.product-card__actions .btn-tool:hover {
  background: rgba(0, 123, 255, 0.88);
  color: #fff;
}

.product-card__actions .dropdown-toggle::after {
  display: none;
}

.product-card__media {
  position: relative;
  height: auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111827;
}

.product-card__cover {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.25s ease;
}

.product-card:hover .product-card__cover {
  transform: scale(1.03);
}

.product-card__icon {
  position: absolute;
  left: 1rem;
  bottom: -1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.product-card__icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.product-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  min-height: 245px;
  padding: 2.25rem 1rem 1rem;
}

.product-card__marketplace {
  max-width: calc(100% - 2rem);
  margin-bottom: 0.45rem;
  color: #0d9488;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.product-card__title {
  min-height: 3rem;
  margin: 0 1.75rem 1rem 0;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.28;
}

.product-card__title a {
  color: #212529;
}

.product-card__title a:hover {
  color: #0d9488;
}

.product-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: auto;
}

.product-card__stats div {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  background: #f8f9fa;
}

.product-card__stats span {
  display: block;
  color: #6c757d;
  font-size: 0.72rem;
  line-height: 1.1;
}

.product-card__stats strong {
  display: block;
  overflow: hidden;
  margin-top: 0.25rem;
  color: #212529;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-card__footer .btn {
  flex: 1 1 0;
  border-radius: 6px;
  font-weight: 600;
}

.products-page__empty,
.products-page__pagination {
  grid-column: 1/-1;
}

.products-page__pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
}

.products-page__pagination-meta {
  color: #6c757d;
  font-size: 0.9rem;
}

.products-page__pagination-meta strong {
  color: #212529;
  font-weight: 700;
}

.products-page__pagination-links .pagination {
  margin-bottom: 0;
}

.dark-mode .products-page__summary,
.dark-mode .product-card {
  border-color: rgba(255, 255, 255, 0.05);
  background: #2f363d;
}

.dark-mode .products-page__summary span,
.dark-mode .product-card__title a,
.dark-mode .product-card__stats strong {
  color: #f4f6f9;
}

.dark-mode .product-card__stats div {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.04);
}

.dark-mode .product-card__icon {
  border-color: #2f363d;
  background: #2f363d;
}

.dark-mode .product-card__marketplace,
.dark-mode .product-card__stats span,
.dark-mode .products-page__eyebrow,
.dark-mode .products-page__summary {
  color: #adb5bd;
}

.dark-mode .product-card__marketplace {
  color: #5eead4;
}

.dark-mode .products-page__pagination-meta {
  color: #adb5bd;
}

.dark-mode .products-page__pagination-meta strong {
  color: #f4f6f9;
}

@media (max-width: 575.98px) {
  .products-page__toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .products-page__summary {
    text-align: left;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card__body {
    display: block;
  }
  .product-card__content {
    min-height: 0;
  }
  .products-page__pagination {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (min-width: 576px) and (max-width: 1199.98px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* -- Sidebar -- */
.sidebar {
  padding-left: 0;
  padding-right: 0;
}

.nav-spacer {
  padding: 1rem 1rem 0;
}

.nav-sidebar .nav-link {
  position: relative !important;
}
.nav-sidebar .nav-link p {
  position: static !important;
}
.nav-sidebar .nav-link i.right,
.nav-sidebar .nav-link .right {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  margin-top: 0 !important;
  transform: translateY(-50%) !important;
}
.nav-sidebar .menu-is-opening > .nav-link i.right,
.nav-sidebar .menu-open > .nav-link i.right {
  transform: translateY(-50%) rotate(-90deg) !important;
}

.nav-pills .nav-link {
  border-radius: 0;
}

[class*=sidebar-dark-] > .nav-treeview > .nav-item > .nav-link.active {
  background-color: #0d9488;
  color: #fff;
}
[class*=sidebar-dark-] > .nav-treeview > .nav-item > .nav-link.active:hover {
  background-color: #0d9488;
  color: #fff;
}

/* -- Token generator -- */
.form-group.token-generator {
  position: relative;
}

.generate-token {
  position: absolute;
  right: 10px;
  top: 38px;
  color: #fff;
}

/* -- Summernote: cluster toolbar groups to the left instead of spreading them -- */
.note-editor .note-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
}
.note-editor .note-toolbar .note-btn-group {
  margin-right: 0;
}

/* -- Single checkbox field: render as iOS-style toggle switch -- */
.form-group > .checkbox > label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0;
}
.form-group > .checkbox > label input[type=checkbox] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin: 0;
}
.form-group > .checkbox > label input[type=checkbox]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.form-group > .checkbox > label input[type=checkbox]:checked {
  background: #0d9488;
  border-color: #0d9488;
}
.form-group > .checkbox > label input[type=checkbox]:checked::after {
  transform: translateX(18px);
}
.form-group > .checkbox > label input[type=checkbox]:focus-visible {
  outline: 2px solid rgba(139, 109, 245, 0.5);
  outline-offset: 2px;
}

/* -- checkbox_group field: pill chips in dark theme. Scoped to nested <div> to avoid hitting single checkboxes -- */
.form-group > .checkbox:has(> div) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
}
.form-group > .checkbox:has(> div) > div {
  margin: 0;
}
.form-group > .checkbox:has(> div) > div > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin: 0;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: all 0.15s;
}
.form-group > .checkbox:has(> div) > div > label:hover {
  background: rgba(139, 109, 245, 0.12);
  border-color: rgba(139, 109, 245, 0.35);
  color: #fff;
}
.form-group > .checkbox:has(> div) > div > label input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #0d9488;
  cursor: pointer;
}
