.content-restrictions-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.add-restriction-form {
  background: var(--surface-ground);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--surface-border);

  .form-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;

    .form-field {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      min-width: 140px;

      label {
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--text-color-secondary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
      }

      &.form-field-wide {
        flex: 1;
        min-width: 200px;
      }

      &.form-field-button {
        min-width: auto;
      }
    }
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--text-color-secondary);

  i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--green-500);
  }

  p {
    margin: 0;
    font-weight: 500;
  }

  .empty-hint {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0.8;
  }
}

.restrictions-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.restrictions-group {
  background: var(--surface-ground);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--surface-border);

  .group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 600;

    i {
      font-size: 0.9rem;
    }
  }

  .group-description {
    margin: 0 0 0.75rem 0;
    font-size: 0.8rem;
    color: var(--text-color-secondary);
  }
}

.restrictions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.restriction-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s ease;

  &.mode-exclude {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--red-500);

    .chip-type {
      color: var(--red-400);
    }
  }

  &.mode-allow {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--green-500);

    .chip-type {
      color: var(--green-400);
    }
  }

  .chip-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .chip-value {
    font-weight: 500;
  }

  .chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 50%;
    padding: 0;
    margin-left: 0.25rem;
    transition: all 0.2s ease;

    i {
      font-size: 0.7rem;
    }

    &:hover {
      background: rgba(0, 0, 0, 0.1);
    }
  }
}

.restrictions-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--blue-500);

  i {
    font-size: 0.9rem;
  }
}
