/* ===== Campaign Grid (karaca.com "En Avantajlı Fırsatlar" referanslı) ===== */
.cc_P9TFLHKOgp_hULq1mR9oO .cg {
  width: 100%;
  padding: 16px 0;
  font-family: var(--mu-font);
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--mu-container, 1440px);
  margin: 0 auto;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-title {
  margin: 0;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-rail {
  position: relative;
  min-width: 0;
}

/* ---------- Slider ---------- */
/*
 * Cards have the merchant's height (default 180px mobile / 370px desktop, karaca)
 * and take their width from the ratio, so as many as fit are visible. Grid columns instead of
 * flex: the card wrappers IkasComponentRenderer injects (behind a display:
 * contents list) become columns at any depth.
 */
.cc_P9TFLHKOgp_hULq1mR9oO .cg {
  --cg-foot-h: 56px;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg--slider {
  --cg-h: var(--cg-mh, 180px);
  --cg-w: auto;
  --cg-media-h: 100%;
  /* Cards with a footer: the image gets what the footer leaves of the card height. */
  --cg-foot-media-h: calc(100% - var(--cg-foot-h));
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg--grid {
  --cg-h: auto;
  --cg-w: 100%;
  --cg-media-h: auto;
  --cg-foot-media-h: auto;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-track {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: start;
  gap: var(--cg-mgap, 12px);
  padding: 0 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding: 0 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-track::-webkit-scrollbar {
  display: none;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-track:focus-visible {
  outline: 2px solid var(--mu-ink, #383838);
  outline-offset: 2px;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-track.is-dragging {
  cursor: grabbing;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-track.is-dragging * {
  pointer-events: none;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-arrows {
  display: none;
}

/* Loop copies are only shown once there is more than a viewport of cards. */
.cc_P9TFLHKOgp_hULq1mR9oO .cg-track:not(.is-looping) .cg-copy {
  display: none;
}

.cc_P9TFLHKOgp_hULq1mR9oO .cg-copy, .cc_P9TFLHKOgp_hULq1mR9oO .cg-main {
  display: contents;
}

/* ---------- Grid ---------- */
/* As many columns as fit */
.cc_P9TFLHKOgp_hULq1mR9oO .cg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--cg-mgap, 12px);
  padding: 0 12px;
}

/* ---------- Desktop ---------- */
@media (min-width: 821px) {
  .cc_P9TFLHKOgp_hULq1mR9oO .cg {
    padding: 20px 0;
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-inner {
    gap: 20px;
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-title {
    font-size: 20px;
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg {
    --cg-foot-h: 72px;
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg--slider {
    --cg-h: var(--cg-dh, 370px);
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-track {
    gap: var(--cg-dgap, 20px);
    cursor: grab;
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: var(--cg-dgap, 20px);
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-arrows {
    position: absolute;
    inset: 50% 0 auto;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-rail:hover .cg-arrows, .cc_P9TFLHKOgp_hULq1mR9oO .cg-rail:focus-within .cg-arrows {
    opacity: 1;
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-arrow {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(13, 13, 13, 0.3);
    color: var(--mu-white, #ffffff);
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-arrow:hover {
    background: rgba(13, 13, 13, 0.5);
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-arrow:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-arrow:disabled:hover {
    background: rgba(13, 13, 13, 0.3);
  }

  .cc_P9TFLHKOgp_hULq1mR9oO .cg-arrow:focus-visible {
    outline: 2px solid var(--mu-white, #ffffff);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--mu-black, #0d0d0d);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_P9TFLHKOgp_hULq1mR9oO .cg-arrows, .cc_P9TFLHKOgp_hULq1mR9oO .cg-arrow {
    transition: none;
  }
}
