/* Affiliates listing — ported from recreate-static/assets/css/main.css. */
.affiliates-page .page-section,
.affiliates-page #main-content {
  background-color: #fff !important;
}

.affiliates-page .page-hero-content h1,
.affiliates-page .page-hero-text {
  overflow-wrap: break-word;
}

.rtl.affiliates-page .page-hero-content {
  direction: rtl;
  text-align: right;
}

.rtl.affiliates-page .hero-divider {
  margin-left: auto;
  margin-right: 0;
}

.affiliates-page .sidebar {
  background-color: #f0f0f0;
  border-radius: 20px;
  padding: 34px 20px;
  position: sticky;
  top: 87px;
}

.affiliates-page .filter-tab-wrapper {
  margin-bottom: 30px;
}

.affiliates-page .sidebar .form-check {
  margin-bottom: unset;
  padding-left: 30px;
}

.affiliates-page .sidebar .channelCheckboxes {
  display: flex;
  flex-wrap: wrap;
  margin-top: 16px;
}

.affiliates-page .filter-tab-title {
  align-items: center;
  display: flex;
  margin-bottom: 10px;
}

.affiliates-page .filter-tab-title img {
  height: 24px;
  margin-right: 5px;
  width: 24px;
}

.affiliates-page .filter-tab-title h2 {
  color: #4a4a49;
  font-size: 16px;
  font-weight: 500;
  line-height: 23px;
  margin: 0;
}

.affiliates-page .filter-tab-wrapper .form-select {
  color: #4a4a49;
  height: 44px !important;
}

.affiliates-page .channel-select-wrapper {
  margin-bottom: 16px;
  position: relative;
}

.affiliates-page .channel-select-toggle {
  align-items: center;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0;
  box-sizing: border-box;
  color: #b9b9b9;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 400;
  height: 44px;
  padding: 0 12px;
  position: relative;
  width: 100%;
}

.affiliates-page .channel-options {
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 2px 9px 10px 0 #0003;
  box-sizing: border-box;
  color: #4a4a49;
  display: none;
  left: 0;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  top: 100%;
  width: 100%;
  z-index: 10;
}

.affiliates-page .channel-select-wrapper.active .channel-options {
  display: block;
}

.affiliates-page .channel-options #regionTree {
  padding: 10px;
}

.affiliates-page .channel-options label {
  color: #000;
  cursor: pointer;
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.26px;
  line-height: 1.2;
  margin-bottom: 10px;
  padding: 0 10px;
}

.affiliates-page .channel-options input[type="checkbox"] {
  margin-right: 10px;
}

.affiliates-page .main-option {
  border-bottom: 1px solid #00000040;
  cursor: pointer;
  padding: 10px 0;
  position: relative;
}

.affiliates-page .main-option .icon::before {
  content: "+";
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  margin-right: 8px;
  transition: all 0.3s ease;
}

.affiliates-page .main-option.active .icon::before {
  content: "-";
}

.affiliates-page .main-option .sub-menu {
  align-items: center;
  color: #4a4a49;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.32px;
  line-height: 100%;
}

.affiliates-page .sub-options {
  display: none;
  padding-left: 10px;
  padding-top: 20px;
}

.affiliates-page .sub-options label {
  align-items: center;
  color: #4a4a49;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.26px;
  line-height: 100%;
  margin-bottom: 10px;
}

.affiliates-page .sidebar .form-check-input {
  height: 15px;
  width: 15px;
}

.affiliates-page .sidebar .form-check-input:checked {
  background-color: #2661ab;
}

.affiliates-page .main-option.active .sub-options {
  display: block;
}

.affiliates-page .navigation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: space-between;
}

.affiliates-page .filtered-results-text {
  font-size: 16px;
}

.affiliates-page .content {
  margin-top: 35px;
}

.affiliates-page .aff-heading {
  margin-bottom: 20px;
  margin-top: 50px;
  text-transform: uppercase;
}

.affiliates-page .aff-card {
  flex: 1;
  padding: 50px 21px 0;
}

.affiliates-page .aff-logo-wrap {
  align-items: center;
  display: flex;
  height: 147.2px;
  justify-content: center;
  margin-bottom: 64px;
  margin-left: auto;
  margin-right: auto;
  width: 230px;
}

.affiliates-page .aff-badge,
.affiliates-page .aff-badge-disabled {
  background: transparent;
  border: 1px solid #c9c9c9;
  color: inherit;
  font-size: 13px;
  line-height: inherit;
  padding: 0 5px;
  text-decoration: none;
}

.affiliates-page .aff-badge {
  cursor: pointer;
}

.affiliates-page .aff-badge-disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.affiliates-page .aff-footer {
  background-color: #f9f9f9;
  border-radius: 0 0 20px 20px;
  margin-top: auto;
  padding: 10px 21px 12px;
  width: 100%;
}

.affiliates-page .aff-see-more {
  align-items: center;
  color: #4a4a49 !important;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: end;
  margin-bottom: unset;
  margin-top: 12px;
}

.affiliates-page .aff-see-more a {
  color: inherit;
  text-decoration: underline;
}

.affiliates-page .sub-grid-layout {
  background-color: #fff;
  border: 1px solid #dadbdb;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  overflow: hidden;
  position: relative;
}

.affiliates-page .sub-grid-layout:hover {
  box-shadow: 0 4px 10px #0000004d;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.affiliates-page .aff-logo-wrap img {
  object-fit: contain;
  transition: transform 0.4s ease-in-out;
}

.affiliates-page .sub-grid-layout:hover .aff-logo-img {
  transform: scale(1.6);
}

.affiliates-page .aff-logo-img {
  height: 60px;
  max-width: 142px;
  transform: scale(1.5);
}

.affiliates-page .aff-logo-fallback {
  color: #4a4a49;
  font-weight: 600;
  text-align: center;
}

.affiliates-page .aff-info-grid {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: start;
  margin-bottom: 0;
}

.affiliates-page .aff-info-grid p {
  margin-bottom: unset;
}

.affiliates-page .aff-tag-badge {
  font-size: 16px;
  margin-bottom: 5px;
  padding: 8px;
}

.affiliates-page .aff-tags-row {
  display: flex;
  gap: 5px;
  justify-content: start;
  margin-bottom: 25px;
}

.affiliates-page .aff-tags-row p {
  margin-bottom: 0;
}

.affiliates-page .aff-info-grid-3 {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: auto auto auto;
  justify-content: end;
}

.affiliates-page .aff-info-grid-3 p {
  margin-bottom: 0;
}

.affiliates-page .aff-item-title {
  color: #4a4a49 !important;
  display: -webkit-box;
  font-size: 16px;
  line-height: 1.4;
  max-width: 300px;
  overflow: hidden;
  padding: 0 !important;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.affiliates-page .aff-underline-link {
  color: inherit;
  text-decoration: underline;
}

.affiliates-page .aff-text-sm {
  font-size: 1rem;
}

.affiliates-page .aff-text-xs {
  font-size: 0.8125rem;
}

.affiliates-page .aff-disabled {
  color: #888;
}

.affiliates-page .affiliate-results {
  min-height: 420px;
}

.affiliates-page .aff-empty {
  margin: 70px 0;
}

@media (max-width: 991px) {
  .affiliates-page .sidebar {
    position: static;
  }

  .affiliates-page .content {
    margin-top: 55px;
  }
}

@media (max-width: 767px) {
  .affiliates-page .navigation-grid {
    gap: 15px;
    grid-template-columns: 1fr;
  }

  .affiliates-page .aff-info-grid-3 {
    justify-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .affiliates-page .aff-logo-img {
    transition: none;
  }
}
