/* Abone paneli — dosya klasörleri marka seçici (2026-10-21, v3)
   Dar sağ kolonda (≈220px) uzun marka adları kesilmesin diye dikey "radyo listesi" görünümü.
   Panelin açık temasıyla uyumlu; admin.css içindeki "#customer-files > div" grid kurallarını ezer. */

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-brand-switch {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 2px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 4px !important;
  margin: 0 !important;
  background: var(--cc-soft, #f6fafb) !important;
  border: 1px solid var(--cc-line, #d9e3e7) !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: none !important;
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-brand-switch .cc-brand-switch__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--cc-muted, #66757d);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  overflow: visible;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-brand-switch .cc-brand-switch__item::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-brand-switch .cc-brand-switch__item:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--cc-text, #111827);
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-brand-switch .cc-brand-switch__item.is-active {
  background: #ffffff;
  border-color: var(--cc-line, #d9e3e7);
  color: var(--cc-text, #111827);
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-brand-switch .cc-brand-switch__item.is-active::before {
  background: var(--cc-accent, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-brand-switch .cc-brand-switch__item:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 1px;
}

/* Secici basligi: kullaniciya "bu bir secim" oldugunu soyler */
body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-brand-switch .cc-brand-switch__caption {
  display: block;
  padding: 2px 8px 6px 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-muted, #66757d);
}

/* Icerik basligi: kartlarin hangi markaya ait oldugunu kartlarin hemen ustunde yazar */
body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-files-heading {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 2px 2px 0 2px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: none !important;
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-files-heading > span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-muted, #66757d);
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-files-heading > strong {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--cc-text, #111827);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-files-heading.is-switched {
  animation: ccBrandFilesPulse 1.25s ease;
  border-radius: 8px;
}

body.subscriber-logged-in #subscriber-cockpit-root #customer-files > .cc-files-heading.is-switched + div {
  animation: ccBrandFilesIn 0.32s ease;
}

@keyframes ccBrandFilesPulse {
  0% { background: rgba(15, 118, 110, 0.18); }
  55% { background: rgba(15, 118, 110, 0.1); }
  100% { background: transparent; }
}

@keyframes ccBrandFilesIn {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
