// ================================================================
//  FLOATING CART — Admin SCSS
//  Font-family is intentionally omitted everywhere so WordPress
//  (and the OS) default font stack is inherited throughout.
// ================================================================


// ── Design tokens ─────────────────────────────────────────────
:root {
  // Brand
  --p:        #6c47ff;
  --p-dark:   #4f35cc;
  --p-light:  #f0edff;
  --p-glow:   rgba(108, 71, 255, .18);

  // Surfaces
  --bg:       #f1f3f8;
  --surface:  #ffffff;
  --surface2: #f8f9fc;
  --border:   #e3e7f0;
  --border2:  #edf0f8;

  // Text
  --t1: #111827;
  --t2: #374151;
  --t3: #6b7280;
  --t4: #9ca3af;

  // Status
  --green:    #16a34a;  --green-bg: #f0fdf4;
  --amber:    #d97706;  --amber-bg: #fffbeb;
  --red:      #dc2626;  --red-bg:   #fef2f2;

  // Radius
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  // Shadows
  --sh-xs: 0 1px 3px  rgba(0, 0, 0, .06);
  --sh-sm: 0 2px 10px rgba(0, 0, 0, .08);
  --sh-md: 0 4px 24px rgba(0, 0, 0, .10);
  --sh-lg: 0 8px 40px rgba(0, 0, 0, .14);

  // Motion
  --ease: all .18s cubic-bezier(.4, 0, .2, 1);

  // Monospace only (used for code / hex values — not UI text)
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }


// ── Outer shell ───────────────────────────────────────────────
.fcpfw_admin_wrapper {
  background: var(--bg);
  min-height: 100vh;
}

.fcpfw-app {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 100px;
  color: var(--t1);
}


// ── Header ────────────────────────────────────────────────────
.fcpfw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 20px;
  gap: 16px;
  flex-wrap: wrap;

  &__left {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  &__title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--t1) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    line-height: 1.2;
  }

  &__sub {
    font-size: 13px;
    color: var(--t3);
    margin: 2px 0 0;
  }

  &__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  &__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: var(--ease);
    white-space: nowrap;
    cursor: pointer;

    &--outline {
      background: var(--surface);
      border: 1.5px solid var(--border);
      color: var(--t2) !important;
      box-shadow: var(--sh-xs);

      &:hover {
        border-color: var(--p);
        color: var(--p) !important;
        transform: translateY(-1px);
      }
    }

    &--star {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      border: none;
      color: #fff !important;
      box-shadow: 0 3px 12px rgba(245, 158, 11, .3);

      &:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 18px rgba(245, 158, 11, .4);
      }
    }
  }
}


// ── Tab bar ───────────────────────────────────────────────────
.fcpfw-tabbar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md) var(--r-md) 0 0;
  box-shadow: var(--sh-xs);
  border-bottom: none;
}

.fc-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;

  &__tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t3);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 14px 22px;
    cursor: pointer;
    transition: var(--ease);
    white-space: nowrap;
    border-radius: 0;

    &:hover {
      color: var(--p);
      background: var(--p-light);
    }

    &--active {
      color: var(--p) !important;
      border-bottom-color: var(--p) !important;
      background: var(--p-light) !important;
    }
  }

  &__icon { font-size: 15px; }
}


// ── Content area ──────────────────────────────────────────────
.fcpfw-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 24px;
  box-shadow: var(--sh-sm);
}

.fc-tab-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}


// ── Card ──────────────────────────────────────────────────────
.fc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-xs);
  transition: box-shadow .18s ease;

  &:hover { box-shadow: var(--sh-sm); }

  &__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    background: var(--surface2);
    border-bottom: 1px solid var(--border2);
    font-size: 13px;
    font-weight: 700;
    color: var(--t1);
  }

  &__icon  { font-size: 15px; }
  &__title { font-weight: 700; }
}

.fc-card-desc {
  font-size: 12.5px;
  color: var(--t3);
  padding: 10px 18px 0;
  margin: 0;
  font-style: italic;
}


// ── Section Row ───────────────────────────────────────────────
.fc-row {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border2);
  gap: 16px;
  min-height: 48px;
  transition: background .12s ease;

  &:last-child { border-bottom: none; }
  &:hover { background: var(--surface2); }

  &--indent {
    padding-left: 36px;
    background: var(--surface2);
  }

  &__label {
    flex: 0 0 230px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  &__label-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--t2);
  }

  &__hint {
    font-size: 11px;
    color: var(--t4);
    font-style: italic;
  }

  &__control {
    flex: 1;
    min-width: 0;
  }
}


// ── Indent group (page checkboxes) ────────────────────────────
.fc-indent-group {
  background: var(--surface2);
  border-top: 1px solid var(--border2);
  padding: 12px 18px 14px 24px;
}

.fc-group-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 10px;
}

.fc-check-item {
  margin-bottom: 8px;
  &:last-child { margin-bottom: 0; }
}


// ── Check grid (loop items, footer) ───────────────────────────
.fc-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  padding: 4px 0;

  &__item {
    padding: 10px 18px;
    border-right: 1px solid var(--border2);
    border-bottom: 1px solid var(--border2);

    &:nth-child(2n) { border-right: none; }
  }
}


// ── Toggle ────────────────────────────────────────────────────
.fc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;

  &--disabled { opacity: .45; pointer-events: none; }

  &__input { position: absolute; opacity: 0; width: 0; height: 0; }

  &__track {
    position: relative;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 50px;
    transition: background .18s ease;
    cursor: pointer;
    flex-shrink: 0;
  }

  &__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: left .18s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  }

  &__label {
    font-size: 13px;
    color: var(--t2);
  }

  // Checked state via :has()
  &:has(input:checked) {
    .fc-toggle__track  { background: var(--p); }
    .fc-toggle__thumb  { left: 21px; }
  }
}


// ── Text Input ────────────────────────────────────────────────
.fc-input {
  width: 100%;
  max-width: 420px;
  font-size: 13px;
  color: var(--t1);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  height: 36px;
  outline: none;
  transition: var(--ease);
  box-shadow: var(--sh-xs);

  &:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 3px var(--p-glow);
  }

  &--disabled { opacity: .45; pointer-events: none; }
}


// ── Number Input ──────────────────────────────────────────────
.fc-number {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--sh-xs);
  max-width: 140px;

  &:focus-within {
    border-color: var(--p);
    box-shadow: 0 0 0 3px var(--p-glow);
  }

  &__btn {
    width: 32px;
    height: 34px;
    background: var(--surface2);
    border: none;
    font-size: 16px;
    color: var(--t3);
    cursor: pointer;
    transition: var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    &:hover {
      background: var(--p-light);
      color: var(--p);
    }
  }

  &__input {
    width: 56px;
    text-align: center;
    border: none;
    outline: none;
    font-family: var(--mono); // mono okay for numeric inputs
    font-size: 13px;
    font-weight: 600;
    color: var(--t1);
    background: var(--surface);
    padding: 0 4px;
    height: 34px;
    -moz-appearance: textfield;

    &::-webkit-inner-spin-button,
    &::-webkit-outer-spin-button { -webkit-appearance: none; }
  }
}


// ── Select ────────────────────────────────────────────────────
.fc-select-wrap {
  position: relative;
  display: inline-block;
  max-width: 320px;
  width: 100%;

  &--disabled { opacity: .45; pointer-events: none; }
}

.fc-select {
  width: 100%;
  font-size: 13px;
  color: var(--t1);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 36px 7px 12px;
  height: 36px;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: var(--ease);
  box-shadow: var(--sh-xs);

  &:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 3px var(--p-glow);
  }

  // &__arrow {
  //   position: absolute;
  //   right: 10px;
  //   top: 50%;
  //   transform: translateY(-50%);
  //   pointer-events: none;
  //   color: var(--t3);
  //   width: 14px;

  //   svg { width: 14px; height: 14px; display: block; }
  // }
}


// ── Radio Group ───────────────────────────────────────────────
.fc-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#fcpfw_admin_app .fc-radio {
  display: inline-flex;
  align-items: center;
  // gap: 8px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--ease);
  font-size: 13px;
  font-weight: 500;
  color: var(--t2);
  background: var(--surface);
  user-select: none;

  &:hover {
    border-color: var(--p);
    color: var(--p);
    background: var(--p-light);
  }

  &--active {
    border-color: var(--p) !important;
    background: var(--p-light) !important;
    color: var(--p) !important;
  }

  &--disabled { opacity: .45; pointer-events: none; }

  &__input { display: none; }

  // &__dot {
  //   width: 14px;
  //   height: 14px;
  //   border: 2px solid currentColor;
  //   border-radius: 50%;
  //   flex-shrink: 0;
  //   position: relative;
  //   transition: var(--ease);
  // }

  // &--active &__dot::after {
  //   content: '';
  //   position: absolute;
  //   inset: 2px;
  //   background: var(--p);
  //   border-radius: 50%;
  // }
}


// ── Icon Picker ───────────────────────────────────────────────
body .fc-icon-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;

  &__item {
    position: relative;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: var(--ease);
    background: var(--surface);
    overflow: hidden;

    &:hover {
      border-color: var(--p);
      background: var(--p-light);
    }

    &--active {
      border-color: var(--p) !important;
      background: var(--p-light) !important;
      box-shadow: 0 0 0 3px var(--p-glow);
    }

    &--disabled { opacity: .4; pointer-events: none; }

    img {
      width: 26px;
      height: 26px;
      object-fit: contain;
      transition: var(--ease);
      opacity: .7;
    }

    &--active img,
    &:hover img { opacity: 1; }
  }

  &__input { display: none; }
}


// ── Color Picker ──────────────────────────────────────────────
.fc-color {
  position: relative;
  display: inline-block;

  &--disabled { opacity: .45; pointer-events: none; }

  &__swatch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 6px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
    transition: var(--ease);
    box-shadow: var(--sh-xs);
    height: 36px;

    &:hover {
      border-color: var(--p);
      box-shadow: 0 0 0 3px var(--p-glow);
    }

    &::before {
      content: '';
      width: 22px;
      height: 22px;
      border-radius: 4px;
      background: currentColor;
      border: 1px solid rgba(0, 0, 0, .1);
      flex-shrink: 0;
    }
  }

  &__hex {
    font-family: var(--mono); // mono for hex code — intentional
    font-size: 12px;
    color: var(--t2);
    letter-spacing: .5px;
  }

  // &__arrow {
  //   width: 12px;
  //   color: var(--t3);
  //   svg { width: 12px; height: 12px; display: block; }
  // }

  &__popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    padding: 12px;
    z-index: 9999;
    min-width: 240px;
    animation: fc-fade .12s ease;
  }

  &__presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 12px;
  }

  &__preset {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--ease);
    box-shadow: var(--sh-xs);

    &:hover { transform: scale(1.12); border-color: var(--border); }

    &--active {
      border-color: var(--p) !important;
      box-shadow: 0 0 0 3px var(--p-glow);
    }
  }

  &__custom {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border2);
  }

  &__custom-label {
    font-size: 12px;
    color: var(--t3);
    white-space: nowrap;
  }

  &__native {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 2px;
    cursor: pointer;
    background: none;
  }

  &__text {
    flex: 1;
    font-family: var(--mono); // mono for hex input — intentional
    font-size: 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 8px;
    outline: none;
    height: 32px;
    transition: var(--ease);

    &:focus {
      border-color: var(--p);
      box-shadow: 0 0 0 3px var(--p-glow);
    }
  }
}


// ── Button ────────────────────────────────────────────────────
.fc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 28px;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--ease);
  white-space: nowrap;

  &--primary {
    background: linear-gradient(135deg, var(--p) 0%, var(--p-dark) 100%);
    color: #fff !important;
    box-shadow: 0 4px 14px var(--p-glow);

    &:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108, 71, 255, .28); }
    &:active { transform: translateY(0); }
  }

  &--loading { opacity: .75; pointer-events: none; }

  &__spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: fc-spin .65s linear infinite;
  }
}


// ── Save bar ──────────────────────────────────────────────────
.fc-save-bar {
  position: sticky;
  bottom: 20px;
  z-index: 50;
  display: flex;
  justify-content: flex-start;
  padding-top: 8px;
}


// ── Toast ─────────────────────────────────────────────────────
.fc-toast {
  position: fixed;
  top: 40px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  transform: translateY(-6px);
  opacity: 0;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
  min-width: 260px;

  &--visible  { opacity: 1; transform: translateY(0); }

  &--success  { background: var(--green-bg); color: var(--green); border: 1px solid #86efac; }
  &--error    { background: var(--red-bg);   color: var(--red);   border: 1px solid #fca5a5; }
  &--warning  { background: var(--amber-bg); color: var(--amber); border: 1px solid #fcd34d; }

  &__icon { font-size: 16px; }
}


// ── Loader ────────────────────────────────────────────────────
.fc-loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(241, 243, 248, .82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;

  &__box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-lg);
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  &__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--p);
    border-radius: 50%;
    animation: fc-spin .7s linear infinite;
  }

  &__text {
    font-size: 13px;
    font-weight: 600;
    color: var(--t3);
    letter-spacing: .3px;
  }
}


// ── Notice ────────────────────────────────────────────────────
.fc-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  margin: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  line-height: 1.5;
  border-left: 3px solid;

  &--info    { background: #eff6ff; border-color: #3b82f6; color: #1e40af; }
  &--warning { background: var(--amber-bg); border-color: #f59e0b; color: #92400e; }
  &--success { background: var(--green-bg); border-color: #22c55e; color: #166534; }

  &__icon { flex-shrink: 0; font-size: 15px; }

  &__body {
    flex: 1;

    code {
      font-family: var(--mono); // mono for inline code — intentional
      font-size: 11px;
      font-style: normal;
      background: rgba(0, 0, 0, .07);
      padding: 1px 5px;
      border-radius: 4px;
    }
  }
}


// ── Divider ───────────────────────────────────────────────────
.fc-divider {
  height: 1px;
  background: var(--border2);
  margin: 4px 0;
}


// ── Keyframes ─────────────────────────────────────────────────
@keyframes fc-spin {
  to { transform: rotate(360deg); }
}

@keyframes fc-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}


// ── Legacy PHP tab / postbox fallback styles ──────────────────
.fcpfw_container,
.fgw_container { width: 100%; }

li.nav-tab {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer;
  color: var(--t3) !important;
  border-radius: var(--r-sm) var(--r-sm) 0 0 !important;
  padding: 10px 20px !important;
  border: 1px solid transparent !important;
  transition: var(--ease) !important;
  margin-bottom: 0 !important;

  &:hover { color: var(--p) !important; background: var(--p-light) !important; }

  &.nav-tab-active {
    color: var(--p) !important;
    background: #fff !important;
    border-color: var(--border) var(--border) #fff !important;
    margin-bottom: -1px !important;
  }
}

.fcpfw_container .tab-content,
.fcpfw-container .tab-content {
  display: none;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--r-md) var(--r-md);

  &.current { display: block; }
}

.fcpfw-container {
  margin-top: 20px;
  width: 85%;

  h2 {
    margin: 0 !important;
    padding: 13px 18px !important;
    background: linear-gradient(90deg, var(--p) 0%, #9333ea 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .6px;
    text-transform: uppercase;
    border-radius: var(--r-md) var(--r-md) 0 0;
  }
}

.cover_div {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-md) !important;
  margin-bottom: 14px !important;
  overflow: hidden;
  box-shadow: var(--sh-xs) !important;
}

.data_table {
  width: 100%;
  border-collapse: collapse;

  tr {
    border-bottom: 1px solid var(--border2);

    th,
    td {
      padding: 9px 8px;
      font-size: 13px;
      text-align: left;
    }

    th { min-width: 220px; font-weight: 600; color: var(--t2); }
  }

  select,
  input[type="number"] {
    width: 100%;
    font-size: 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 6px 10px;
    height: 34px;
    transition: var(--ease);

    &:focus {
      border-color: var(--p);
      box-shadow: 0 0 0 3px var(--p-glow);
      outline: none;
    }
  }
}

p.fcpfw-tips {
  font-style: italic;
  margin: 0;
  font-size: 12px !important;
  color: var(--t4) !important;
}

.pqd-pro-badge {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  background: #6c47ff;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-left: 8px;
  line-height: 1.4 !important;
}


// Select2 Styling
/* Wrapper */
.fc-tab-content .select2-container {
  width: 100% !important;
  font-size: 13px;
}

/* Main selection box */
.fc-tab-content .select2-selection--multiple {
  min-height: 42px !important;
  border: 1px solid #dcdcde !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 6px 8px !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  transition: all 0.2s ease;
}

/* Focus state (purple theme) */
.fc-tab-content .select2-container--focus .select2-selection--multiple {
  border-color: #6c5ce7 !important;
  box-shadow: 0 0 0 1px #6c5ce7;
}

/* Selected tags */
.fc-tab-content .select2-selection__choice {
  background: #f4f3ff !important;
  color: #2c2c2c !important;
  border: 1px solid #d6d4ff !important;
  border-radius: 6px !important;
  padding: 4px 8px !important;
  margin: 4px 4px 0 0 !important;
  font-size: 12px;
  display: flex;
  align-items: center;
}

/* Remove (×) button */
.fc-tab-content .select2-selection__choice__remove {
  color: #6c5ce7 !important;
  margin-right: 6px;
  font-weight: bold;
  transition: color 0.2s ease;
}

.fc-tab-content .select2-selection__choice__remove:hover {
  color: #ff4d4f !important;
}

/* Input field */
.fc-tab-content .select2-search__field {
  margin-top: 4px !important;
  font-size: 13px;
}

/* Placeholder */
.fc-tab-content .select2-search__field::placeholder {
  color: #9aa0a6;
}

/* Dropdown */
.select2-dropdown {
  border-radius: 8px !important;
  border: 1px solid #dcdcde !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Dropdown options */
.select2-results__option {
  padding: 8px 12px;
  font-size: 13px;
}

/* Hover / active option */
.select2-results__option--highlighted {
  background: #6c5ce7 !important;
  color: #fff !important;
}

/* Selected option */
.select2-results__option[aria-selected="true"] {
  background: #f4f3ff !important;
  color: #6c5ce7;
}

/* Fix z-index (important in WP admin UI) */
.select2-container {
  z-index: 9 !important;
}


// ── Responsive ────────────────────────────────────────────────
@media (max-width: 840px) {
  .fcpfw-app { padding: 0 12px 100px; }

  .fc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    &__label { flex: none; width: 100%; }
  }

  .fc-check-grid { grid-template-columns: 1fr; }

  .fcpfw-header {
    padding: 16px 0 14px;
    &__actions { display: none; }
  }
}
