/* Shared premium filter drawer — campaigns / projects / talents */

.fd2 {
  --fd2-ink: #1E242E;
  --fd2-body: #4A4F57;
  --fd2-muted: #6B7280;
  --fd2-border: #EBECEE;
  --fd2-surface: #ffffff;
  --fd2-canvas: #F8F9FB;
  --fd2-brand: #e20246;
  --fd2-radius: 0.85rem;
  --fd2-ease: cubic-bezier(0.22, 1, 0.36, 1);
  width: min(400px, 88vw);
  max-width: 88vw;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--fd2-surface) !important;
  color: var(--fd2-ink);
  box-shadow: none;
  overflow: hidden;
  padding: 0 !important;
  gap: 0 !important;
}

html[data-theme="dark"] .fd2 {
  --fd2-ink: #F3F4F6;
  --fd2-body: #A1A1AA;
  --fd2-muted: #8B909A;
  --fd2-border: #2A2C34;
  --fd2-surface: #181A20;
  --fd2-canvas: #111111;
  box-shadow: none;
}

.fd2__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem 1.1rem;
  border-bottom: 1px solid var(--fd2-border);
  background:
    linear-gradient(135deg, rgba(226, 2, 70, 0.05), transparent 48%),
    var(--fd2-surface);
  flex-shrink: 0;
}

.fd2__head-copy {
  min-width: 0;
}

.fd2__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fd2-muted);
}

.fd2__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fd2-ink);
}

.fd2__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  border: 1px solid var(--fd2-border);
  background: #fff;
  color: var(--fd2-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fd2__close:hover {
  background: var(--fd2-canvas);
  border-color: #D0D5DD;
}

html[data-theme="dark"] .fd2__close {
  background: var(--fd2-surface);
}

.fd2__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1.15rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.fd2__section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.fd2__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--fd2-ink);
}

.fd2__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--fd2-muted);
}

.fd2__search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  padding: 0 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--fd2-border);
  background: var(--fd2-canvas);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fd2__search:focus-within {
  border-color: rgba(226, 2, 70, 0.4);
  background: #fff;
}

html[data-theme="dark"] .fd2__search:focus-within {
  background: var(--fd2-surface);
}

.fd2__search-icon {
  flex-shrink: 0;
  color: var(--fd2-muted);
}

.fd2__search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--fd2-ink) !important;
  font-size: 0.9375rem;
  height: 2.85rem;
  padding: 0 !important;
}

.fd2__control,
.fd2 select.fd2__control,
.fd2 input.fd2__control {
  width: 100%;
  min-width: 0;
  height: 2.85rem;
  padding: 0 0.9rem;
  border-radius: 0.7rem !important;
  border: 1px solid var(--fd2-border) !important;
  background-color: var(--fd2-canvas) !important;
  color: var(--fd2-ink) !important;
  font-size: 0.9375rem;
  box-shadow: none !important;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.fd2 select.fd2__control {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-right: 2.5rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%231E242E' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  background-size: 0.9rem !important;
  cursor: pointer;
}

html[data-theme="dark"] .fd2 select.fd2__control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23F3F4F6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E") !important;
}

.fd2__control:focus,
.fd2 select.fd2__control:focus,
.fd2 input.fd2__control:focus {
  border-color: rgba(226, 2, 70, 0.4) !important;
  background-color: #fff !important;
}

html[data-theme="dark"] .fd2__control:focus,
html[data-theme="dark"] .fd2 select.fd2__control:focus,
html[data-theme="dark"] .fd2 input.fd2__control:focus {
  background-color: var(--fd2-surface) !important;
}

.fd2__control:disabled,
.fd2 input.fd2__control:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Category fixed by the landing page (category / subcategory projects) */
.fd2__fixed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.85rem;
  padding: 0 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid var(--fd2-border);
  background-color: var(--fd2-canvas);
  color: var(--fd2-ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.fd2__fixed-link {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--fd2-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.fd2__fixed-link:hover {
  color: var(--fd2-ink);
}

.fd2__range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.fd2__check-list {
  max-height: 12.5rem;
  overflow-y: auto;
  border: 1px solid var(--fd2-border);
  border-radius: 0.7rem;
  background: var(--fd2-canvas);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.fd2__check-list.is-disabled,
.fd2__check-list.opacity-60 {
  opacity: 0.65;
}

.fd2__check-option,
.fd2 .v2-campaign-sub-option,
.fd2 .v2-project-sub-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.fd2__check-option:hover,
.fd2 .v2-campaign-sub-option:hover,
.fd2 .v2-project-sub-option:hover {
  background: #fff;
}

html[data-theme="dark"] .fd2__check-option:hover,
html[data-theme="dark"] .fd2 .v2-campaign-sub-option:hover,
html[data-theme="dark"] .fd2 .v2-project-sub-option:hover {
  background: var(--fd2-surface);
}

.fd2__check-option span,
.fd2 .v2-campaign-sub-option span,
.fd2 .v2-project-sub-option span {
  font-size: 0.875rem;
  color: var(--fd2-ink);
  line-height: 1.35;
}

.fd2__check-option input,
.fd2 .v2-campaign-subcategory-cb,
.fd2 .v2-project-subcategory-cb {
  width: 1rem;
  height: 1rem;
  accent-color: var(--fd2-brand);
  flex-shrink: 0;
}

.fd2__empty,
.fd2 .v2-campaign-sub-empty,
.fd2 .v2-project-sub-empty {
  margin: 0;
  padding: 0.85rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--fd2-muted);
  text-align: center;
}

.fd2__foot {
  flex-shrink: 0;
  display: flex;
  gap: 0.65rem;
  padding: 1rem 1.35rem 1.2rem;
  border-top: 1px solid var(--fd2-border);
  background: var(--fd2-canvas);
}

.fd2__btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.85rem;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s var(--fd2-ease), border-color 0.15s ease, color 0.15s ease;
}

.fd2__btn--ghost {
  border: 1px solid var(--fd2-border);
  background: #fff;
  color: var(--fd2-ink);
}

.fd2__btn--ghost:hover {
  border-color: #D0D5DD;
  background: #fff;
}

html[data-theme="dark"] .fd2__btn--ghost {
  background: var(--fd2-surface);
}

.fd2__btn--primary {
  border: 0;
  background: #111111;
  color: #fff;
}

.fd2__btn--primary:hover {
  background: #2A2C34;
  color: #fff;
}

html[data-theme="dark"] .fd2__btn--primary {
  background: #F3F4F6;
  color: #111111;
}

html[data-theme="dark"] .fd2__btn--primary:hover {
  background: #fff;
}
